Skip to content

Commit 83453ca

Browse files
harics24Hari Prasad Perabattula
andauthored
Adding the toplevel resource for querying the onboarded resources (Azure#15230)
* Defining the APIs for the new NSP resource * Update networkSecurityPerimeter.json Adding the definition of the new location based endpoint for getting the list of resources onboarded to use the network security perimeter feature. * Create PerimeterAssociableResourcesList.json Adding the example response for the resource endpoint * Deleting the NSP files from the earlier release folder * Update readme.md * Fixed validation errors * added a custom word * Update networkSecurityPerimeter.json * Update networkSecurityPerimeter.json Fixing a duplicate definition error. * Update networkSecurityPerimeter.json * Fixing the prettier check * Update PerimeterAssociableResourcesList.json * Update networkSecurityPerimeter.json * Update networkSecurityPerimeter.json Co-authored-by: Hari Prasad Perabattula <[email protected]>
1 parent 980ac88 commit 83453ca

File tree

3 files changed

+156
-0
lines changed

3 files changed

+156
-0
lines changed

custom-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ asciifolding
139139
Asns
140140
aspnet
141141
assessmentprojects
142+
Associable
142143
Asturian
143144
asyncinfo
144145
asyncoperation
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"title": "List of resources onboarded for network security perimeter feature (perimeter associable resources).",
3+
"parameters": {
4+
"api-version": "2021-03-01-preview",
5+
"subscriptionId": "subId",
6+
"location": "westus"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"name": "Microsoft.Sql.servers",
14+
"id": "/subscriptions/{subscriptionID}/providers/Microsoft.Network/perimeterAssociableResourceTypes/Microsoft.Sql.servers",
15+
"type": "Microsoft.Network/PerimeterAssociableResourceTypes",
16+
"properties": {
17+
"resourceType": "Microsoft.Sql/servers",
18+
"displayName": "Microsoft.Sql/servers",
19+
"publicDnsZones": [
20+
"database.windows.net"
21+
]
22+
}
23+
},
24+
{
25+
"name": "Microsoft.Storage.accounts",
26+
"id": "/subscriptions/{subscriptionId}/providers/Microsoft.Network/perimeterAssociableResourceTypes/Microsoft.Storage.storageAccounts",
27+
"type": "Microsoft.Network/PerimeterAssociableResourceTypes",
28+
"properties": {
29+
"resourceType": "Microsoft.Storage/accounts",
30+
"displayName": "Microsoft.Storage/accounts",
31+
"publicDnsZones": [
32+
"blob.core.windows.net",
33+
"table.core.windows.net",
34+
"queue.core.windows.net",
35+
"file.core.windows.net"
36+
]
37+
}
38+
}
39+
],
40+
"nextLink": "{baseurl}/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/perimeterAssociableResourceTypes?api-version=2021-03-01-preview&$skipToken=10"
41+
}
42+
}
43+
}
44+
}

specification/network/resource-manager/Microsoft.Network/preview/2021-03-01-preview/networkSecurityPerimeter.json

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,46 @@
237237
}
238238
}
239239
}
240+
},
241+
"/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/perimeterAssociableResourceTypes": {
242+
"get": {
243+
"operationId": "PerimeterAssociableResourceTypes_Get",
244+
"description": "Gets the list of resources that are onboarded with NSP. These resources can be associated with a network security perimeter",
245+
"parameters": [
246+
{
247+
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
248+
},
249+
{
250+
"name": "location",
251+
"in": "path",
252+
"required": true,
253+
"type": "string",
254+
"description": "The location of the where the association is present."
255+
},
256+
{
257+
"$ref": "./network.json#/parameters/ApiVersionParameter"
258+
}
259+
],
260+
"responses": {
261+
"200": {
262+
"description": "Request successful. Returns the list of resources that are onboarded with network security perimeter feature.",
263+
"schema": {
264+
"$ref": "#/definitions/PerimeterAssociableResourcesListResult"
265+
}
266+
},
267+
"default": {
268+
"description": "Error response describing why the operation failed.",
269+
"schema": {
270+
"$ref": "./network.json#/definitions/CloudError"
271+
}
272+
}
273+
},
274+
"x-ms-examples": {
275+
"Check Dns Name Availability": {
276+
"$ref": "./examples/PerimeterAssociableResourcesList.json"
277+
}
278+
}
279+
}
240280
}
241281
},
242282
"definitions": {
@@ -310,6 +350,77 @@
310350
}
311351
},
312352
"description": "Properties of network security perimeter."
353+
},
354+
"PerimeterAssociableResource": {
355+
"type": "object",
356+
"properties": {
357+
"properties": {
358+
"x-ms-client-flatten": true,
359+
"$ref": "#/definitions/PerimeterAssociableResourceProperties",
360+
"description": "Properties of the perimeter associable resource."
361+
},
362+
"name": {
363+
"type": "string",
364+
"description": "The name of the resource that is unique within a resource group. This name can be used to access the resource."
365+
},
366+
"id": {
367+
"readOnly": true,
368+
"type": "string",
369+
"description": "Identifier of the perimeter associable resource."
370+
},
371+
"type": {
372+
"readOnly": true,
373+
"type": "string",
374+
"description": "Resource type."
375+
}
376+
},
377+
"allOf": [
378+
{
379+
"$ref": "./network.json#/definitions/Resource"
380+
}
381+
],
382+
"description": "Resource that is onboarded to use network security perimeter. Also referred as perimeter associable resource."
383+
},
384+
"PerimeterAssociableResourcesListResult": {
385+
"type": "object",
386+
"properties": {
387+
"value": {
388+
"type": "array",
389+
"items": {
390+
"$ref": "#/definitions/PerimeterAssociableResource"
391+
},
392+
"description": "Gets paged list of perimeter associable resources."
393+
},
394+
"nextLink": {
395+
"type": "string",
396+
"description": "Gets the URL to get the next page of results."
397+
}
398+
},
399+
"description": "Paged list of perimeter associable resources."
400+
},
401+
"PerimeterAssociableResourceProperties": {
402+
"type": "object",
403+
"properties": {
404+
"displayName": {
405+
"readOnly": true,
406+
"type": "string",
407+
"description": "A friendly name for the properties of perimeter associable resources."
408+
},
409+
"resourceType": {
410+
"readOnly": true,
411+
"type": "string",
412+
"description": "Resource type/provider name."
413+
},
414+
"publicDnsZones": {
415+
"readOnly": true,
416+
"type": "array",
417+
"items": {
418+
"type": "string"
419+
},
420+
"description": "Public DNS zone names of the resources."
421+
}
422+
},
423+
"description": "Properties of the perimeter associable resources."
313424
}
314425
},
315426
"parameters": {

0 commit comments

Comments
 (0)