From 1198b4b73bed8c941a51acb037f1531166aa6728 Mon Sep 17 00:00:00 2001 From: priyankarking Date: Tue, 11 Apr 2023 07:25:18 +0530 Subject: [PATCH] Add 202 status code for PrivateEndpointConnections_Delete (#23404) Co-authored-by: Priyankar Gupta --- ...terpriseDeletePrivateEndpointConnection.json | 6 ++++++ .../stable/2022-01-01/redisenterprise.json | 17 +++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDeletePrivateEndpointConnection.json b/specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDeletePrivateEndpointConnection.json index 0f63deac64..60a4cf2aac 100644 --- a/specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDeletePrivateEndpointConnection.json +++ b/specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDeletePrivateEndpointConnection.json @@ -8,6 +8,12 @@ }, "responses": { "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationStatus...", + "Location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationResult..." + } + }, "204": {} } } diff --git a/specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/redisenterprise.json b/specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/redisenterprise.json index 6e4b99b394..6d6961d140 100644 --- a/specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/redisenterprise.json +++ b/specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/redisenterprise.json @@ -1045,6 +1045,10 @@ "$ref": "./examples/RedisEnterpriseDeletePrivateEndpointConnection.json" } }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" @@ -1066,6 +1070,19 @@ "200": { "description": "OK -- Delete the private endpoint connection successfully." }, + "202": { + "description": "Deletion of specified private endpoint connection was started. GET the URL in the Azure-AsyncOperation or Location headers to retrieve updated status.", + "headers": { + "Location": { + "description": "Location URI to poll for result", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "URI to poll for the operation status", + "type": "string" + } + } + }, "204": { "description": "No Content -- The private endpoint connection does not exist." },