Skip to content

Commit d57ea5f

Browse files
karthik-gumpuKarthik Gumpu (from Dev Box)
andauthored
[Network] Add service tags api (#35942)
* Add service tags api * Apply prettier --------- Co-authored-by: Karthik Gumpu (from Dev Box) <[email protected]>
1 parent 64b80b1 commit d57ea5f

File tree

2 files changed

+100
-0
lines changed

2 files changed

+100
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"title": "List of service tags supported by NSP.",
3+
"parameters": {
4+
"api-version": "2024-07-01",
5+
"subscriptionId": "subId",
6+
"location": "westus"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"serviceTags": [
14+
"ActionGroup",
15+
"AppConfigurationInternal",
16+
"AzureCloud",
17+
"PRIVATE",
18+
"ApiManagement",
19+
"MicrosoftPublicIPSpace",
20+
"MicrosoftPrivateIPSpace"
21+
]
22+
}
23+
],
24+
"nextLink": "{baseurl}/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/nspServiceTags?api-version=2024-07-01&$skipToken=10"
25+
}
26+
}
27+
}
28+
}

specification/network/resource-manager/Microsoft.Network/stable/2024-07-01/networkSecurityPerimeter.json

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,6 +1493,48 @@
14931493
}
14941494
}
14951495
}
1496+
},
1497+
"/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/nspServiceTags": {
1498+
"get": {
1499+
"tags": [
1500+
"NetworkSecurityPerimeterServiceTags"
1501+
],
1502+
"operationId": "NetworkSecurityPerimeterServiceTags_List",
1503+
"description": "Gets the list of service tags supported by NSP. These service tags can be used to create access rules in NSP.",
1504+
"x-ms-pageable": {
1505+
"nextLinkName": "nextLink"
1506+
},
1507+
"parameters": [
1508+
{
1509+
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
1510+
},
1511+
{
1512+
"$ref": "#/parameters/LocationParameter"
1513+
},
1514+
{
1515+
"$ref": "./network.json#/parameters/ApiVersionParameter"
1516+
}
1517+
],
1518+
"responses": {
1519+
"200": {
1520+
"description": "Request successful. Returns the list of service tags supported by NSP.",
1521+
"schema": {
1522+
"$ref": "#/definitions/NspServiceTagsListResult"
1523+
}
1524+
},
1525+
"default": {
1526+
"description": "Error response describing why the operation failed.",
1527+
"schema": {
1528+
"$ref": "./network.json#/definitions/CloudError"
1529+
}
1530+
}
1531+
},
1532+
"x-ms-examples": {
1533+
"NSPServiceTagsList": {
1534+
"$ref": "./examples/NspServiceTagsList.json"
1535+
}
1536+
}
1537+
}
14961538
}
14971539
},
14981540
"definitions": {
@@ -2244,6 +2286,36 @@
22442286
}
22452287
},
22462288
"description": "Result of the request to list NSP logging configuration. Contains a list of NSP logging configurations and a URL link to get the next set of results."
2289+
},
2290+
"NspServiceTagsListResult": {
2291+
"type": "object",
2292+
"properties": {
2293+
"value": {
2294+
"type": "array",
2295+
"items": {
2296+
"$ref": "#/definitions/NspServiceTagsResource"
2297+
},
2298+
"description": "Gets paged list of NSP service tags."
2299+
},
2300+
"nextLink": {
2301+
"type": "string",
2302+
"description": "Gets the URL to get the next page of results."
2303+
}
2304+
},
2305+
"description": "Result of the request to list NSP service tags."
2306+
},
2307+
"NspServiceTagsResource": {
2308+
"type": "object",
2309+
"properties": {
2310+
"serviceTags": {
2311+
"type": "array",
2312+
"items": {
2313+
"type": "string"
2314+
},
2315+
"description": "NSP service tags."
2316+
}
2317+
},
2318+
"description": "Resource containing list of NSP service tags."
22472319
}
22482320
},
22492321
"parameters": {

0 commit comments

Comments
 (0)