diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2024-10-01-preview/definitions.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2024-10-01-preview/definitions.json index c64233344371..cc4ea7ed1977 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2024-10-01-preview/definitions.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2024-10-01-preview/definitions.json @@ -2353,6 +2353,23 @@ "acceptRetryAfter": { "type": "boolean", "description": "flag to accept Retry-After header from the backend." + }, + "failureResponse": { + "$ref": "#/definitions/BackendFailureResponse", + "description": "The response of the backend when the circuit breaker gets open." + } + } + }, + "BackendFailureResponse": { + "type": "object", + "description": "The response to be returned when a backend fails to respond", + "properties": { + "statusCode": { + "type": "integer", + "format": "int32", + "description": "The status code of the response.", + "minimum": 100, + "maximum": 599 } } }, @@ -2431,6 +2448,10 @@ "example": { "services": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/backends" } + }, + "failureResponse": { + "$ref": "#/definitions/BackendFailureResponse", + "description": "The response to be returned when all the backends in the pool are inactive." } } },