Skip to content

Commit 244ba1f

Browse files
Add network management v2 to cog services swagger (#37793)
* Copy files from preview/2025-07-01-preview Copied the files in a separate commit. This allows reviewers to easily diff subsequent changes against the previous spec. * Update version to preview/2025-10-01-preview Updated the API version from preview/2025-07-01-preview to preview/2025-10-01-preview. * Added tag for 2025-10-01-preview in readme file * Add NMS v2 to cogsvc swagger. * Update parameter casing. * Update api versions in examples. * Update NMS parameter properties * Copy over pre-approved suppressions from previous API version. * Add suppressions for NMS v2 swagger additions. * Remove unneeded properties, add provision route * Update accountNameParameter casing. * Update api version in swagger to 2025-10-01-preview. * Consistent naming for package tag in readme. * Prettier gate formatting fix. * Retrigger pipelines * Add summary for outbound rule operation. --------- Co-authored-by: Mike Harder <[email protected]>
1 parent 7f41047 commit 244ba1f

File tree

12 files changed

+1406
-2
lines changed

12 files changed

+1406
-2
lines changed

specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2025-10-01-preview/cognitiveservices.json

Lines changed: 1000 additions & 1 deletion
Large diffs are not rendered by default.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "test-rg",
5+
"accountName": "cognitive-account-name",
6+
"managedNetworkName": "default",
7+
"api-version": "2025-10-01-preview",
8+
"body": {
9+
"properties": {
10+
"managedNetwork": {
11+
"isolationMode": "AllowOnlyApprovedOutbound",
12+
"outboundRules": {
13+
"rule_name_1": {
14+
"type": "FQDN",
15+
"destination": "destination_endpoint",
16+
"category": "UserDefined"
17+
}
18+
},
19+
"firewallSku": "Standard"
20+
}
21+
}
22+
}
23+
},
24+
"responses": {
25+
"202": {
26+
"headers": {
27+
"Location": "example_location"
28+
}
29+
},
30+
"200": {
31+
"headers": {},
32+
"body": {
33+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/cognitive-account-name/managedNetworks/default",
34+
"name": "default",
35+
"type": "Microsoft.CognitiveServices/accounts/managedNetworks",
36+
"properties": {
37+
"managedNetwork": {
38+
"isolationMode": "AllowOnlyApprovedOutbound",
39+
"networkId": "00000000-1111-2222-3333-444444444444",
40+
"outboundRules": {
41+
"rule_name_1": {
42+
"type": "FQDN",
43+
"destination": "destination_endpoint",
44+
"status": "Active",
45+
"category": "UserDefined",
46+
"errorInformation": null
47+
}
48+
},
49+
"firewallSku": "Standard",
50+
"egressIpAddress": "22.22.131.49"
51+
},
52+
"provisioningState": "Succeeded"
53+
}
54+
}
55+
}
56+
}
57+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "test-rg",
5+
"accountName": "cognitive-account-name",
6+
"ruleName": "rule_name_1",
7+
"managedNetworkName": "default",
8+
"api-version": "2025-10-01-preview",
9+
"body": {
10+
"properties": {
11+
"type": "FQDN",
12+
"destination": "destination_endpoint",
13+
"status": "Active",
14+
"category": "UserDefined"
15+
}
16+
}
17+
},
18+
"responses": {
19+
"202": {
20+
"headers": {
21+
"Location": "example_location"
22+
}
23+
},
24+
"200": {
25+
"headers": {},
26+
"body": {
27+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/cognitive-account-name/managedNetworks/default/outboundRules/rule_name_1",
28+
"name": "rule_name_1",
29+
"type": "accounts/outboundRules",
30+
"properties": {
31+
"type": "FQDN",
32+
"destination": "destination_endpoint",
33+
"status": "Active",
34+
"category": "UserDefined",
35+
"errorInformation": null
36+
}
37+
}
38+
}
39+
}
40+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "test-rg",
5+
"accountName": "cognitive-account-name",
6+
"managedNetworkName": "default",
7+
"ruleName": "rule-name",
8+
"api-version": "2025-10-01-preview"
9+
},
10+
"responses": {
11+
"202": {
12+
"headers": {
13+
"Location": "location_url_to_poll_for_status"
14+
}
15+
},
16+
"204": {}
17+
}
18+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "test-rg",
5+
"accountName": "cognitive-account-name",
6+
"managedNetworkName": "default",
7+
"api-version": "2025-10-01-preview"
8+
},
9+
"responses": {
10+
"200": {
11+
"headers": {},
12+
"body": {
13+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/cognitive-account-name/managedNetworks/default",
14+
"name": "default",
15+
"type": "Microsoft.CognitiveServices/accounts/managedNetworks",
16+
"properties": {
17+
"managedNetwork": {
18+
"isolationMode": "AllowOnlyApprovedOutbound",
19+
"networkId": "00000000-1111-2222-3333-444444444444",
20+
"outboundRules": {
21+
"rule_name_1": {
22+
"type": "FQDN",
23+
"destination": "destination_endpoint",
24+
"status": "Active",
25+
"category": "UserDefined",
26+
"errorInformation": null
27+
}
28+
},
29+
"firewallSku": "Standard",
30+
"egressIpAddress": "22.22.131.49"
31+
},
32+
"provisioningState": "Succeeded"
33+
}
34+
}
35+
}
36+
}
37+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "test-rg",
5+
"accountName": "cognitive-account-name",
6+
"managedNetworkName": "default",
7+
"ruleName": "name_of_the_fqdn_rule",
8+
"api-version": "2025-10-01-preview"
9+
},
10+
"responses": {
11+
"200": {
12+
"headers": {},
13+
"body": {
14+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/cognitive-account-name/managedNetworks/default/outboundRules/rule_name_1",
15+
"name": "rule_name_1",
16+
"type": "accounts/outboundRules",
17+
"properties": {
18+
"type": "FQDN",
19+
"destination": "destination_of_the_fqdn_rule",
20+
"status": "Active",
21+
"category": "UserDefined",
22+
"errorInformation": null
23+
}
24+
}
25+
}
26+
}
27+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "test-rg",
5+
"accountName": "cognitive-account-name",
6+
"managedNetworkName": "default",
7+
"api-version": "2025-10-01-preview"
8+
},
9+
"responses": {
10+
"200": {
11+
"headers": {},
12+
"body": {
13+
"value": [
14+
{
15+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/cognitive-account-name/managedNetworks/default",
16+
"name": "default",
17+
"type": "Microsoft.CognitiveServices/accounts/managedNetworks",
18+
"properties": {
19+
"managedNetwork": {
20+
"isolationMode": "AllowOnlyApprovedOutbound",
21+
"networkId": "00000000-1111-2222-3333-444444444444",
22+
"outboundRules": {
23+
"rule_name_1": {
24+
"type": "FQDN",
25+
"destination": "destination_endpoint",
26+
"status": "Active",
27+
"category": "UserDefined",
28+
"errorInformation": null
29+
}
30+
},
31+
"firewallSku": "Standard",
32+
"egressIpAddress": "22.22.131.49"
33+
},
34+
"provisioningState": "Succeeded"
35+
}
36+
}
37+
]
38+
}
39+
}
40+
}
41+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "test-rg",
5+
"accountName": "cognitive-account-name",
6+
"managedNetworkName": "default",
7+
"api-version": "2025-10-01-preview"
8+
},
9+
"responses": {
10+
"200": {
11+
"headers": {},
12+
"body": {
13+
"value": [
14+
{
15+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/cognitive-account-name/managedNetworks/default/outboundRules/rule_name_1",
16+
"name": "rule_name_1",
17+
"type": "accounts/outboundRules",
18+
"properties": {
19+
"type": "FQDN",
20+
"destination": "destination_of_the_fqdn_rule",
21+
"status": "Inactive",
22+
"category": "Required",
23+
"errorInformation": "Error message"
24+
}
25+
},
26+
{
27+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/cognitive-account-name/managedNetworks/default/outboundRules/rule_name_2",
28+
"name": "rule_name_2",
29+
"type": "accounts/outboundRules",
30+
"properties": {
31+
"type": "FQDN",
32+
"destination": "destination_of_the_fqdn_rule",
33+
"status": "Inactive",
34+
"category": "Required",
35+
"errorInformation": "Error message"
36+
}
37+
}
38+
]
39+
}
40+
}
41+
}
42+
}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "test-rg",
5+
"accountName": "cognitive-account-name",
6+
"managedNetworkName": "default",
7+
"api-version": "2025-10-01-preview",
8+
"body": {
9+
"properties": {
10+
"managedNetwork": {
11+
"isolationMode": "AllowOnlyApprovedOutbound",
12+
"outboundRules": {
13+
"rule_name_1": {
14+
"type": "FQDN",
15+
"destination": "destination_endpoint",
16+
"category": "UserDefined"
17+
}
18+
},
19+
"firewallSku": "Standard"
20+
}
21+
}
22+
}
23+
},
24+
"responses": {
25+
"202": {
26+
"headers": {
27+
"Location": "example_location"
28+
}
29+
},
30+
"200": {
31+
"headers": {},
32+
"body": {
33+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/cognitive-account-name/managedNetworks/default",
34+
"name": "default",
35+
"type": "Microsoft.CognitiveServices/accounts/managedNetworks",
36+
"properties": {
37+
"managedNetwork": {
38+
"isolationMode": "AllowOnlyApprovedOutbound",
39+
"networkId": "00000000-1111-2222-3333-444444444444",
40+
"outboundRules": {
41+
"rule_name_1": {
42+
"type": "FQDN",
43+
"destination": "destination_endpoint",
44+
"status": "Active",
45+
"category": "UserDefined",
46+
"errorInformation": null
47+
}
48+
},
49+
"firewallSku": "Standard",
50+
"egressIpAddress": "22.22.131.49"
51+
},
52+
"provisioningState": "Succeeded"
53+
}
54+
}
55+
}
56+
}
57+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "test-rg",
5+
"accountName": "cognitive-account-name",
6+
"managedNetworkName": "default",
7+
"api-version": "2025-10-01-preview",
8+
"body": {
9+
"properties": {
10+
"isolationMode": "AllowOnlyApprovedOutbound",
11+
"outboundRules": {
12+
"rule_name_1": {
13+
"type": "FQDN",
14+
"destination": "destination_endpoint",
15+
"category": "UserDefined"
16+
}
17+
},
18+
"firewallSku": "Standard"
19+
}
20+
}
21+
},
22+
"responses": {
23+
"202": {
24+
"headers": {
25+
"Location": "example_location"
26+
}
27+
},
28+
"200": {
29+
"headers": {},
30+
"body": {
31+
"value": [
32+
{
33+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/cognitive-account-name/managedNetworks/default/outboundRules/rule_name_1",
34+
"name": "rule_name_1",
35+
"type": "accounts/outboundRules",
36+
"properties": {
37+
"type": "FQDN",
38+
"destination": "destination_of_the_fqdn_rule",
39+
"status": "Active",
40+
"category": "Required",
41+
"errorInformation": null
42+
}
43+
}
44+
]
45+
}
46+
}
47+
}
48+
}

0 commit comments

Comments
 (0)