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..23a61dabcd1c 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,14 @@ "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." + }, + "sessionAffinity": { + "$ref": "#/definitions/BackendSessionAffinity", + "description": "The session stickiness properties of the backend pool." } } }, @@ -2471,6 +2496,46 @@ "id" ] }, + "BackendSessionAffinity": { + "type": "object", + "description": "The session stickiness properties of the backend pool.", + "properties": { + "sessionId": { + "$ref": "#/definitions/BackendSessionId", + "description": "The id that identifies the requests belonging to the same session." + } + } + }, + "BackendSessionId": { + "type": "object", + "description": "The properties of the id that identifies the requests belonging to the same session.", + "properties": { + "source": { + "$ref": "#/definitions/BackendSessionIdSource", + "description": "Source from where the session id is extracted." + }, + "name": { + "type": "string", + "description": "Name of the variable that refers to the session id." + } + } + }, + "BackendSessionIdSource": { + "type": "string", + "enum": [ + "cookie" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "backend-sessionId-source", + "values": [ + { + "value": "cookie", + "description": "The session id is set by APIM gateway in a cookie and is extracted from the cookies in client requests." + } + ] + } + }, "BearerTokenSendingMethodsContract": { "type": "string", "description": "Form of an authorization grant, which the client uses to request the access token.",