Skip to content

Commit 8573a6e

Browse files
[Hub Generated] Public private branch 'dev-security-Microsoft.Security-2021-12-01-preview' (#18267)
* Adds base for updating Microsoft.Security from version preview/2021-07-01-preview to version 2021-12-01-preview * Updates readme * Updates API version in new specs and examples * Keep only Securityconnectors in the API version * Adding CspmMonitorGcp offering * minors * Adding Security connector * Fix prettier issue * Adding information protection offering * Adding suppression rule * added github configuration, fixed bugs * updated examples * added example * fixed bugs in offering inheritnece, added org data for aws/gcp objects, updated discriminators * added discriminator for orgmembershipType on environmentData object, updated aws to awsAccount on examples for aws env data * fixed discriminator position * all example validations + schema validations pass, BEFORE adding updated examples * fixed null aws env data property * Adding DefenderForDatabases * Run prettier * Small renamings * Fix native cloud conection * update servers offerings * adding containers * Remove DefenderForDatabases offerings * Adding Qualys as known word * Update the VA type to enum * small changes for servers offering and gcpproject properties * added missing enum types * Servers P1P2 * Add P1P2 to servers GCP * subPlan fixes * Remove supression * add suppression rule back * Adding operations to the default tag * Add x-ms-identifiers Co-authored-by: Sapir Elmakayes <saelmaka@microsoft.com> Co-authored-by: chemishumacher <chemishumacher@gmail.com>
1 parent 1624606 commit 8573a6e

File tree

9 files changed

+1563
-3
lines changed

9 files changed

+1563
-3
lines changed

custom-words.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2504,4 +2504,5 @@ Tbps
25042504
Vuln
25052505
IAASVM
25062506
Quickbase
2507-
Smartsheet
2507+
Smartsheet
2508+
Qualys
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-12-01-preview",
4+
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
5+
"resourceGroupName": "myRg",
6+
"securityConnectorName": "mySecurityConnectorName"
7+
},
8+
"responses": {
9+
"200": {},
10+
"204": {}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-12-01-preview",
4+
"subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5",
5+
"resourceGroupName": "exampleResourceGroup",
6+
"securityConnectorName": "exampleSecurityConnectorName"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorName",
12+
"name": "exampleSecurityConnectorName",
13+
"type": "Microsoft.Security/securityConnectors",
14+
"etag": "etag value",
15+
"kind": "",
16+
"location": "Central US",
17+
"tags": {},
18+
"systemData": {
19+
"createdBy": "user@contoso.com",
20+
"createdByType": "User",
21+
"createdAt": "2021-08-31T13:47:50.328Z",
22+
"lastModifiedBy": "user@contoso.com",
23+
"lastModifiedByType": "User",
24+
"lastModifiedAt": "2021-08-31T13:47:50.328Z"
25+
},
26+
"properties": {
27+
"environmentData": {
28+
"environmentType": "AwsAccount"
29+
},
30+
"hierarchyIdentifier": "exampleHierarchyId",
31+
"environmentName": "AWS",
32+
"offerings": [
33+
{
34+
"offeringType": "CspmMonitorAws",
35+
"nativeCloudConnection": {
36+
"cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor"
37+
}
38+
}
39+
]
40+
}
41+
}
42+
}
43+
}
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-12-01-preview",
4+
"subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5",
5+
"resourceGroupName": "exampleResourceGroup"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorAws",
13+
"name": "exampleSecurityConnectorAws",
14+
"type": "Microsoft.Security/securityConnectors",
15+
"etag": "etag value",
16+
"kind": "",
17+
"location": "Central US",
18+
"tags": {},
19+
"systemData": {
20+
"createdBy": "user@contoso.com",
21+
"createdByType": "User",
22+
"createdAt": "2021-08-31T13:47:50.328Z",
23+
"lastModifiedBy": "user@contoso.com",
24+
"lastModifiedByType": "User",
25+
"lastModifiedAt": "2021-08-31T13:47:50.328Z"
26+
},
27+
"properties": {
28+
"hierarchyIdentifier": "exampleHierarchyId",
29+
"environmentData": {
30+
"environmentType": "AwsAccount"
31+
},
32+
"environmentName": "AWS",
33+
"offerings": [
34+
{
35+
"offeringType": "CspmMonitorAws",
36+
"nativeCloudConnection": {
37+
"cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor"
38+
}
39+
}
40+
]
41+
}
42+
},
43+
{
44+
"id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorAwsOrganization",
45+
"name": "exampleSecurityConnectorAwsOrganization",
46+
"type": "Microsoft.Security/securityConnectors",
47+
"etag": "etag value",
48+
"kind": "",
49+
"location": "Central US",
50+
"tags": {},
51+
"systemData": {
52+
"createdBy": "user@contoso.com",
53+
"createdByType": "User",
54+
"createdAt": "2021-12-15T13:47:50.328Z",
55+
"lastModifiedBy": "user@contoso.com",
56+
"lastModifiedByType": "User",
57+
"lastModifiedAt": "2021-12-15T13:47:50.328Z"
58+
},
59+
"properties": {
60+
"hierarchyIdentifier": "exampleHierarchyId",
61+
"environmentData": {
62+
"environmentType": "AwsAccount",
63+
"organizationalData": {
64+
"organizationMembershipType": "Organization",
65+
"stacksetName": "myStackSetName",
66+
"excludedAccountIds": [
67+
"excludedAccountIdExample"
68+
]
69+
}
70+
},
71+
"environmentName": "AWS",
72+
"offerings": [
73+
{
74+
"offeringType": "CspmMonitorAws",
75+
"nativeCloudConnection": {
76+
"cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor"
77+
}
78+
}
79+
]
80+
}
81+
},
82+
{
83+
"id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorGcp",
84+
"name": "exampleSecurityConnectorGcp",
85+
"type": "Microsoft.Security/securityConnectors",
86+
"etag": "etag value",
87+
"kind": "",
88+
"location": "Central US",
89+
"tags": {},
90+
"systemData": {
91+
"createdBy": "user@contoso.com",
92+
"createdByType": "User",
93+
"createdAt": "2021-12-15T13:47:50.328Z",
94+
"lastModifiedBy": "user@contoso.com",
95+
"lastModifiedByType": "User",
96+
"lastModifiedAt": "2021-12-15T13:47:50.328Z"
97+
},
98+
"properties": {
99+
"hierarchyIdentifier": "exampleHierarchyId",
100+
"environmentData": {
101+
"environmentType": "GcpProject",
102+
"projectDetails": {
103+
"projectNumber": "exampleHierarchyId",
104+
"projectId": "My-0GCP-Project",
105+
"workloadIdentityPoolId": "My-workload-identity-federation-pool-id"
106+
}
107+
},
108+
"environmentName": "GCP",
109+
"offerings": [
110+
{
111+
"offeringType": "CspmMonitorGcp",
112+
"nativeCloudConnection": {
113+
"workloadIdentityProviderId": "My workload identity provider Id",
114+
"serviceAccountEmailAddress": "capm@projectName.com"
115+
}
116+
}
117+
]
118+
}
119+
}
120+
]
121+
}
122+
}
123+
}
124+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-12-01-preview",
4+
"subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup1/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorAws",
12+
"name": "exampleSecurityConnectorAws",
13+
"type": "Microsoft.Security/securityConnectors",
14+
"etag": "etag value",
15+
"kind": "",
16+
"location": "Central US",
17+
"tags": {},
18+
"systemData": {
19+
"createdBy": "user@contoso.com",
20+
"createdByType": "User",
21+
"createdAt": "2021-08-31T13:47:50.328Z",
22+
"lastModifiedBy": "user@contoso.com",
23+
"lastModifiedByType": "User",
24+
"lastModifiedAt": "2021-08-31T13:47:50.328Z"
25+
},
26+
"properties": {
27+
"hierarchyIdentifier": "exampleHierarchyId",
28+
"environmentData": {
29+
"environmentType": "AwsAccount"
30+
},
31+
"environmentName": "AWS",
32+
"offerings": [
33+
{
34+
"offeringType": "CspmMonitorAws",
35+
"nativeCloudConnection": {
36+
"cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor"
37+
}
38+
}
39+
]
40+
}
41+
},
42+
{
43+
"id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup2/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorAwsOrganization",
44+
"name": "exampleSecurityConnectorAwsOrganization",
45+
"type": "Microsoft.Security/securityConnectors",
46+
"etag": "etag value",
47+
"kind": "",
48+
"location": "Central US",
49+
"tags": {},
50+
"systemData": {
51+
"createdBy": "user@contoso.com",
52+
"createdByType": "User",
53+
"createdAt": "2021-12-15T13:47:50.328Z",
54+
"lastModifiedBy": "user@contoso.com",
55+
"lastModifiedByType": "User",
56+
"lastModifiedAt": "2021-12-15T13:47:50.328Z"
57+
},
58+
"properties": {
59+
"hierarchyIdentifier": "exampleHierarchyId",
60+
"environmentData": {
61+
"environmentType": "AwsAccount",
62+
"organizationalData": {
63+
"organizationMembershipType": "Organization",
64+
"stacksetName": "myStackSetName",
65+
"excludedAccountIds": [
66+
"excludedAccountIdExample"
67+
]
68+
}
69+
},
70+
"environmentName": "AWS",
71+
"offerings": [
72+
{
73+
"offeringType": "CspmMonitorAws",
74+
"nativeCloudConnection": {
75+
"cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor"
76+
}
77+
}
78+
]
79+
}
80+
},
81+
{
82+
"id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup3/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorGithub",
83+
"name": "githubTest",
84+
"etag": "etag value",
85+
"type": "Microsoft.Security/securityconnectors",
86+
"location": "centralus",
87+
"kind": "",
88+
"tags": {},
89+
"systemData": {
90+
"createdBy": "user@contoso.com",
91+
"createdByType": "User",
92+
"createdAt": "2021-12-15T13:47:50.328Z",
93+
"lastModifiedBy": "user@contoso.com",
94+
"lastModifiedByType": "User",
95+
"lastModifiedAt": "2021-12-15T13:47:50.328Z"
96+
},
97+
"properties": {
98+
"hierarchyIdentifier": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup3/providers/Microsoft.SecurityDevops/githubConnectors/exampleGithubConnector",
99+
"environmentName": "Github",
100+
"environmentData": {
101+
"environmentType": "GithubScope"
102+
},
103+
"offerings": [
104+
{
105+
"offeringType": "CspmMonitorGithub"
106+
}
107+
]
108+
}
109+
},
110+
{
111+
"id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup3/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorGcp",
112+
"name": "exampleSecurityConnectorGcp",
113+
"type": "Microsoft.Security/securityConnectors",
114+
"etag": "etag value",
115+
"kind": "",
116+
"location": "Central US",
117+
"tags": {},
118+
"systemData": {
119+
"createdBy": "user@contoso.com",
120+
"createdByType": "User",
121+
"createdAt": "2021-12-15T13:47:50.328Z",
122+
"lastModifiedBy": "user@contoso.com",
123+
"lastModifiedByType": "User",
124+
"lastModifiedAt": "2021-12-15T13:47:50.328Z"
125+
},
126+
"properties": {
127+
"hierarchyIdentifier": "exampleHierarchyId",
128+
"environmentData": {
129+
"environmentType": "GcpProject",
130+
"projectDetails": {
131+
"projectNumber": "exampleHierarchyId",
132+
"projectId": "My-0GCP-Project",
133+
"workloadIdentityPoolId": "6c78da41157548d3b1d8b3c72effdf8c"
134+
}
135+
},
136+
"environmentName": "GCP",
137+
"offerings": [
138+
{
139+
"offeringType": "CspmMonitorGcp",
140+
"nativeCloudConnection": {
141+
"workloadIdentityProviderId": "My workload identity provider Id",
142+
"serviceAccountEmailAddress": "capm@projectName.com"
143+
}
144+
}
145+
]
146+
}
147+
}
148+
]
149+
}
150+
}
151+
}
152+
}

0 commit comments

Comments
 (0)