Skip to content

Commit 7f46242

Browse files
authored
Switch 202 lro to 201 for agent application and nms routes (#37851)
* Update LRO from 202 to 201, update examples. * Fix delete response codes * Fix checks
1 parent 719a515 commit 7f46242

File tree

3 files changed

+47
-6
lines changed

3 files changed

+47
-6
lines changed

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

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5453,8 +5453,11 @@
54535453
}
54545454
],
54555455
"responses": {
5456-
"202": {
5457-
"description": "Accepted",
5456+
"201": {
5457+
"description": "Created",
5458+
"schema": {
5459+
"$ref": "#/definitions/OutboundRuleBasicResource"
5460+
},
54585461
"headers": {
54595462
"Location": {
54605463
"description": "URI to poll for asynchronous operation result.",
@@ -5785,8 +5788,11 @@
57855788
}
57865789
],
57875790
"responses": {
5788-
"202": {
5789-
"description": "Accepted",
5791+
"201": {
5792+
"description": "Created",
5793+
"schema": {
5794+
"$ref": "#/definitions/ManagedNetworkSettingsPropertiesBasicResource"
5795+
},
57905796
"headers": {
57915797
"Location": {
57925798
"description": "URI to poll for asynchronous operation result.",

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

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,32 @@
2222
}
2323
},
2424
"responses": {
25-
"202": {
25+
"201": {
2626
"headers": {
2727
"Location": "example_location"
28+
},
29+
"body": {
30+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/cognitive-account-name/managedNetworks/default",
31+
"name": "default",
32+
"type": "Microsoft.CognitiveServices/accounts/managedNetworks",
33+
"properties": {
34+
"managedNetwork": {
35+
"isolationMode": "AllowOnlyApprovedOutbound",
36+
"networkId": "00000000-1111-2222-3333-444444444444",
37+
"outboundRules": {
38+
"rule_name_1": {
39+
"type": "FQDN",
40+
"destination": "destination_endpoint",
41+
"status": "Active",
42+
"category": "UserDefined",
43+
"errorInformation": null
44+
}
45+
},
46+
"firewallSku": "Standard",
47+
"egressIpAddress": "22.22.131.49"
48+
},
49+
"provisioningState": "Succeeded"
50+
}
2851
}
2952
},
3053
"200": {

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,21 @@
1616
}
1717
},
1818
"responses": {
19-
"202": {
19+
"201": {
2020
"headers": {
2121
"Location": "example_location"
22+
},
23+
"body": {
24+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/cognitive-account-name/managedNetworks/default/outboundRules/rule_name_1",
25+
"name": "rule_name_1",
26+
"type": "accounts/outboundRules",
27+
"properties": {
28+
"type": "FQDN",
29+
"destination": "destination_endpoint",
30+
"status": "Active",
31+
"category": "UserDefined",
32+
"errorInformation": null
33+
}
2234
}
2335
},
2436
"200": {

0 commit comments

Comments
 (0)