Skip to content

Commit ce7090b

Browse files
authored
[Hub Generated] Review request for Microsoft.Security to add version preview/2021-07-01-preview (Azure#15856)
* Adds base for updating Microsoft.Security from version preview/2021-05-01-preview to version 2021-07-01-preview * Updates readme * Updates API version in new specs and examples * . * . * . * . * . * . * . * . * . * . * . * . * . * . * . * . * . * . * . * . * Revert "." This reverts commit 9aa27d4. * . * .
1 parent cfd43d7 commit ce7090b

File tree

7 files changed

+486
-0
lines changed

7 files changed

+486
-0
lines changed
Lines changed: 345 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,345 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "Security Center",
5+
"description": "API spec for Microsoft.Security (Azure Security Center) resource provider",
6+
"version": "2021-07-01-preview"
7+
},
8+
"host": "management.azure.com",
9+
"schemes": [
10+
"https"
11+
],
12+
"consumes": [
13+
"application/json"
14+
],
15+
"produces": [
16+
"application/json"
17+
],
18+
"security": [
19+
{
20+
"azure_auth": [
21+
"user_impersonation"
22+
]
23+
}
24+
],
25+
"securityDefinitions": {
26+
"azure_auth": {
27+
"type": "oauth2",
28+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
29+
"flow": "implicit",
30+
"description": "Azure Active Directory OAuth2 Flow",
31+
"scopes": {
32+
"user_impersonation": "impersonate your user account"
33+
}
34+
}
35+
},
36+
"paths": {
37+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Security/customEntityStoreAssignments/{customEntityStoreAssignmentName}": {
38+
"get": {
39+
"summary": "Gets a custom entity store assignment",
40+
"description": "Gets a single custom entity store assignment by name for the provided subscription and resource group.",
41+
"tags": [
42+
"customEntityStoreAssignments"
43+
],
44+
"operationId": "CustomEntityStoreAssignments_Get",
45+
"parameters": [
46+
{
47+
"$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
48+
},
49+
{
50+
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
51+
},
52+
{
53+
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName"
54+
},
55+
{
56+
"$ref": "#/parameters/customEntityStoreAssignmentName"
57+
}
58+
],
59+
"x-ms-examples": {
60+
"Get a custom entity store assignment": {
61+
"$ref": "./examples/CustomEntityStoreAssignments/customEntityStoreAssignmentGet_example.json"
62+
}
63+
},
64+
"responses": {
65+
"200": {
66+
"description": "OK",
67+
"schema": {
68+
"$ref": "#/definitions/CustomEntityStoreAssignment"
69+
}
70+
},
71+
"default": {
72+
"description": "Error response describing why the operation failed.",
73+
"schema": {
74+
"$ref": "../../../common/v1/types.json#/definitions/CloudError"
75+
}
76+
}
77+
}
78+
},
79+
"put": {
80+
"summary": "Creates a custom entity store assignment",
81+
"description": "Creates a custom entity store assignment for the provided subscription, if not already exists.",
82+
"tags": [
83+
"customEntityStoreAssignments"
84+
],
85+
"operationId": "CustomEntityStoreAssignments_Create",
86+
"parameters": [
87+
{
88+
"$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
89+
},
90+
{
91+
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
92+
},
93+
{
94+
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName"
95+
},
96+
{
97+
"$ref": "#/parameters/customEntityStoreAssignmentName"
98+
},
99+
{
100+
"$ref": "#/parameters/customEntityStoreAssignmentRequestBody"
101+
}
102+
],
103+
"x-ms-examples": {
104+
"Create a custom entity store assignment": {
105+
"$ref": "./examples/CustomEntityStoreAssignments/customEntityStoreAssignmentCreate_example.json"
106+
}
107+
},
108+
"responses": {
109+
"201": {
110+
"description": "Created",
111+
"schema": {
112+
"$ref": "#/definitions/CustomEntityStoreAssignment"
113+
}
114+
},
115+
"200": {
116+
"description": "OK - Updated",
117+
"schema": {
118+
"$ref": "#/definitions/CustomEntityStoreAssignment"
119+
}
120+
},
121+
"default": {
122+
"description": "Error response describing why the operation failed.",
123+
"schema": {
124+
"$ref": "../../../common/v1/types.json#/definitions/CloudError"
125+
}
126+
}
127+
}
128+
},
129+
"delete": {
130+
"summary": "Deleted a custom entity store assignment",
131+
"description": "Delete a custom entity store assignment by name for a provided subscription",
132+
"tags": [
133+
"customEntityStoreAssignments"
134+
],
135+
"operationId": "CustomEntityStoreAssignments_Delete",
136+
"parameters": [
137+
{
138+
"$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
139+
},
140+
{
141+
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
142+
},
143+
{
144+
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName"
145+
},
146+
{
147+
"$ref": "#/parameters/customEntityStoreAssignmentName"
148+
}
149+
],
150+
"x-ms-examples": {
151+
"Delete a custom entity store assignment": {
152+
"$ref": "./examples/CustomEntityStoreAssignments/customEntityStoreAssignmentDelete_example.json"
153+
}
154+
},
155+
"responses": {
156+
"200": {
157+
"description": "OK - Custom Entity Store Assignment was deleted"
158+
},
159+
"204": {
160+
"description": "No Content - Custom Entity Store Assignment does not exist"
161+
},
162+
"default": {
163+
"description": "Error response describing why the operation failed.",
164+
"schema": {
165+
"$ref": "../../../common/v1/types.json#/definitions/CloudError"
166+
}
167+
}
168+
}
169+
}
170+
},
171+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Security/customEntityStoreAssignments": {
172+
"get": {
173+
"summary": "List custom entity store assignments in a subscription and a resource group",
174+
"description": "List custom entity store assignments by a provided subscription and resource group",
175+
"tags": [
176+
"customEntityStoreAssignments"
177+
],
178+
"operationId": "CustomEntityStoreAssignments_ListByResourceGroup",
179+
"parameters": [
180+
{
181+
"$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
182+
},
183+
{
184+
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
185+
},
186+
{
187+
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName"
188+
}
189+
],
190+
"x-ms-examples": {
191+
"List custom entity store assignments in a subscription and a resource group": {
192+
"$ref": "./examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListByResourceGroup_example.json"
193+
}
194+
},
195+
"responses": {
196+
"200": {
197+
"description": "OK - Returns a collection of custom entity store assignments",
198+
"schema": {
199+
"$ref": "#/definitions/CustomEntityStoreAssignmentsListResult"
200+
}
201+
},
202+
"default": {
203+
"description": "Error response that describes why the operation failed.",
204+
"schema": {
205+
"$ref": "../../../common/v1/types.json#/definitions/CloudError"
206+
}
207+
}
208+
},
209+
"x-ms-pageable": {
210+
"nextLinkName": "nextLink"
211+
}
212+
}
213+
},
214+
"/subscriptions/{subscriptionId}/providers/Microsoft.Security/customEntityStoreAssignments": {
215+
"get": {
216+
"summary": "List custom entity store assignments in a subscription",
217+
"description": "List custom entity store assignments by provided subscription",
218+
"tags": [
219+
"customEntityStoreAssignments"
220+
],
221+
"operationId": "CustomEntityStoreAssignments_ListBySubscription",
222+
"parameters": [
223+
{
224+
"$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
225+
},
226+
{
227+
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
228+
}
229+
],
230+
"x-ms-examples": {
231+
"List custom entity store assignments in a subscription": {
232+
"$ref": "./examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListBySubscription_example.json"
233+
}
234+
},
235+
"responses": {
236+
"200": {
237+
"description": "OK - Returns a collection of custom entity store assignments",
238+
"schema": {
239+
"$ref": "#/definitions/CustomEntityStoreAssignmentsListResult"
240+
}
241+
},
242+
"default": {
243+
"description": "Error response that describes why the operation failed.",
244+
"schema": {
245+
"$ref": "../../../common/v1/types.json#/definitions/CloudError"
246+
}
247+
}
248+
},
249+
"x-ms-pageable": {
250+
"nextLinkName": "nextLink"
251+
}
252+
}
253+
}
254+
},
255+
"definitions": {
256+
"CustomEntityStoreAssignmentsListResult": {
257+
"type": "object",
258+
"description": "A list of custom entity store assignments",
259+
"properties": {
260+
"value": {
261+
"description": "Collection of custom entity store assignments",
262+
"readOnly": true,
263+
"type": "array",
264+
"items": {
265+
"$ref": "#/definitions/CustomEntityStoreAssignment"
266+
}
267+
},
268+
"nextLink": {
269+
"description": "The link used to get the next page of operations.",
270+
"type": "string"
271+
}
272+
}
273+
},
274+
"CustomEntityStoreAssignment": {
275+
"type": "object",
276+
"description": "Custom entity store assignment",
277+
"properties": {
278+
"properties": {
279+
"x-ms-client-flatten": true,
280+
"description": "describes custom entity store assignment properties.",
281+
"$ref": "#/definitions/CustomEntityStoreAssignmentProperties"
282+
}
283+
},
284+
"allOf": [
285+
{
286+
"$ref": "../../../common/v1/types.json#/definitions/Resource"
287+
}
288+
]
289+
},
290+
"CustomEntityStoreAssignmentProperties": {
291+
"type": "object",
292+
"description": "describes the custom entity store assignment properties",
293+
"properties": {
294+
"principal": {
295+
"description": "The principal assigned with entity store. Format of principal is: [AAD type]=[PrincipalObjectId];[TenantId]",
296+
"type": "string"
297+
},
298+
"entityStoreDatabaseLink": {
299+
"description": "The link to entity store database.",
300+
"type": "string"
301+
}
302+
}
303+
},
304+
"CustomEntityStoreAssignmentRequest": {
305+
"type": "object",
306+
"description": "describes the custom entity store assignment request",
307+
"properties": {
308+
"properties": {
309+
"x-ms-client-flatten": true,
310+
"$ref": "#/definitions/CustomEntityStoreAssignmentRequestProperties"
311+
}
312+
}
313+
},
314+
"CustomEntityStoreAssignmentRequestProperties": {
315+
"type": "object",
316+
"description": "describes properties of custom entity store assignment request",
317+
"properties": {
318+
"principal": {
319+
"description": "The principal assigned with entity store. If not provided, will use caller principal. Format of principal is: [AAD type]=[PrincipalObjectId];[TenantId]",
320+
"type": "string"
321+
}
322+
}
323+
}
324+
},
325+
"parameters": {
326+
"customEntityStoreAssignmentName": {
327+
"name": "customEntityStoreAssignmentName",
328+
"in": "path",
329+
"required": true,
330+
"type": "string",
331+
"description": "Name of the custom entity store assignment. Generated name is GUID.",
332+
"x-ms-parameter-location": "method"
333+
},
334+
"customEntityStoreAssignmentRequestBody": {
335+
"name": "customEntityStoreAssignmentRequestBody",
336+
"in": "body",
337+
"description": "Custom entity store assignment body",
338+
"required": true,
339+
"schema": {
340+
"$ref": "#/definitions/CustomEntityStoreAssignmentRequest"
341+
},
342+
"x-ms-parameter-location": "method"
343+
}
344+
}
345+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-07-01-preview",
4+
"subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b",
5+
"resourceGroupName": "TestResourceGroup",
6+
"customEntityStoreAssignmentName": "33e7cc6e-a139-4723-a0e5-76993aee0771",
7+
"customEntityStoreAssignmentRequestBody": {
8+
"properties": {
9+
"principal": "aaduser=f3923a3e-ad57-4752-b1a9-fbf3c8e5e082;72f988bf-86f1-41af-91ab-2d7cd011db47"
10+
}
11+
}
12+
},
13+
"responses": {
14+
"200": {
15+
"body": {
16+
"id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customEntityStoreAssignments/33e7cc6e-a139-4723-a0e5-76993aee0771",
17+
"name": "33e7cc6e-a139-4723-a0e5-76993aee0771",
18+
"type": "Microsoft.Security/customEntityStoreAssignments",
19+
"properties": {
20+
"principal": "aaduser=f3923a3e-ad57-4752-b1a9-fbf3c8e5e082;72f988bf-86f1-41af-91ab-2d7cd011db47",
21+
"entityStoreDatabaseLink": "https://dataexplorer.azure.com/clusters/securitydatastore.centralus/databases/DiscoveryAwsKedamari?query=H4sIAAAAAAAAAwtILC4uzy9KCcjPyUyu5OWqUShJzE5VMAQAlMJzABgAAAA="
22+
}
23+
}
24+
},
25+
"201": {
26+
"body": {
27+
"id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customEntityStoreAssignments/33e7cc6e-a139-4723-a0e5-76993aee0771",
28+
"name": "33e7cc6e-a139-4723-a0e5-76993aee0771",
29+
"type": "Microsoft.Security/customEntityStoreAssignments",
30+
"properties": {
31+
"principal": "aaduser=f3923a3e-ad57-4752-b1a9-fbf3c8e5e082;72f988bf-86f1-41af-91ab-2d7cd011db47",
32+
"entityStoreDatabaseLink": "https://dataexplorer.azure.com/clusters/securitydatastore.centralus/databases/DiscoveryAwsKedamari?query=H4sIAAAAAAAAAwtILC4uzy9KCcjPyUyu5OWqUShJzE5VMAQAlMJzABgAAAA="
33+
}
34+
}
35+
}
36+
}
37+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-07-01-preview",
4+
"subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b",
5+
"resourceGroupName": "TestResourceGroup",
6+
"customEntityStoreAssignmentName": "33e7cc6e-a139-4723-a0e5-76993aee0771"
7+
},
8+
"responses": {
9+
"200": {},
10+
"204": {}
11+
}
12+
}

0 commit comments

Comments
 (0)