Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Failure Response Property to CircuitBReakerRule and BackendPool #33065

Open
wants to merge 2 commits into
base: apim-2024-10-01-preview
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
},
Expand Down Expand Up @@ -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."
}
}
},
Expand Down