Skip to content

Commit 1198b4b

Browse files
priyankarkingPriyankar Gupta
andauthored
Add 202 status code for PrivateEndpointConnections_Delete (#23404)
Co-authored-by: Priyankar Gupta <[email protected]>
1 parent 33f06ff commit 1198b4b

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDeletePrivateEndpointConnection.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
},
99
"responses": {
1010
"200": {},
11+
"202": {
12+
"headers": {
13+
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationStatus...",
14+
"Location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationResult..."
15+
}
16+
},
1117
"204": {}
1218
}
1319
}

specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/redisenterprise.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,10 @@
10451045
"$ref": "./examples/RedisEnterpriseDeletePrivateEndpointConnection.json"
10461046
}
10471047
},
1048+
"x-ms-long-running-operation": true,
1049+
"x-ms-long-running-operation-options": {
1050+
"final-state-via": "location"
1051+
},
10481052
"parameters": [
10491053
{
10501054
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
@@ -1066,6 +1070,19 @@
10661070
"200": {
10671071
"description": "OK -- Delete the private endpoint connection successfully."
10681072
},
1073+
"202": {
1074+
"description": "Deletion of specified private endpoint connection was started. GET the URL in the Azure-AsyncOperation or Location headers to retrieve updated status.",
1075+
"headers": {
1076+
"Location": {
1077+
"description": "Location URI to poll for result",
1078+
"type": "string"
1079+
},
1080+
"Azure-AsyncOperation": {
1081+
"description": "URI to poll for the operation status",
1082+
"type": "string"
1083+
}
1084+
}
1085+
},
10691086
"204": {
10701087
"description": "No Content -- The private endpoint connection does not exist."
10711088
},

0 commit comments

Comments
 (0)