Description | : Create or update container app resiliency policy. |
Reference | : Link ¶ |
⚼ Request
PUT:
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{appName}/resiliencyPolicies/{name}
{
subscriptionId:
string
,
resourceGroupName:
string
,
appName:
string
,
name:
string
,
resiliencyEnvelope:
{
,
properties:
}
{
,
timeoutPolicy:
{
,
responseTimeoutInSeconds:
integer
,
connectionTimeoutInSeconds:
integer
,
}
httpRetryPolicy:
{
,
maxRetries:
integer
,
retryBackOff:
{
,
initialDelayInMilliseconds:
integer
,
maxIntervalInMilliseconds:
integer
,
}
matches:
}
{
,
headers:
[
]
,
{
,
header:
string
,
match:
}
{
,
exactMatch:
string
,
prefixMatch:
string
,
suffixMatch:
string
,
regexMatch:
string
,
}
httpStatusCodes:
[
,
integer
,
]
errors:
}
[
,
string
,
]
tcpRetryPolicy:
{
,
maxConnectAttempts:
integer
,
}
circuitBreakerPolicy:
{
,
consecutiveErrors:
integer
,
intervalInSeconds:
integer
,
maxEjectionPercent:
integer
,
}
httpConnectionPool:
{
,
http1MaxPendingRequests:
integer
,
http2MaxRequests:
integer
,
}
tcpConnectionPool:
}
{
,
maxConnections:
integer
,
}
api-version:
string
,
}
⚐ Response (200)
{
properties:
}
{
,
timeoutPolicy:
{
,
responseTimeoutInSeconds:
integer
,
connectionTimeoutInSeconds:
integer
,
}
httpRetryPolicy:
{
,
maxRetries:
integer
,
retryBackOff:
{
,
initialDelayInMilliseconds:
integer
,
maxIntervalInMilliseconds:
integer
,
}
matches:
}
{
,
headers:
[
]
,
{
,
header:
string
,
match:
}
{
,
exactMatch:
string
,
prefixMatch:
string
,
suffixMatch:
string
,
regexMatch:
string
,
}
httpStatusCodes:
[
,
integer
,
]
errors:
}
[
,
string
,
]
tcpRetryPolicy:
{
,
maxConnectAttempts:
integer
,
}
circuitBreakerPolicy:
{
,
consecutiveErrors:
integer
,
intervalInSeconds:
integer
,
maxEjectionPercent:
integer
,
}
httpConnectionPool:
{
,
http1MaxPendingRequests:
integer
,
http2MaxRequests:
integer
,
}
tcpConnectionPool:
}
{
,
maxConnections:
integer
,
}
⚐ Response (201)
{
properties:
}
{
,
timeoutPolicy:
{
,
responseTimeoutInSeconds:
integer
,
connectionTimeoutInSeconds:
integer
,
}
httpRetryPolicy:
{
,
maxRetries:
integer
,
retryBackOff:
{
,
initialDelayInMilliseconds:
integer
,
maxIntervalInMilliseconds:
integer
,
}
matches:
}
{
,
headers:
[
]
,
{
,
header:
string
,
match:
}
{
,
exactMatch:
string
,
prefixMatch:
string
,
suffixMatch:
string
,
regexMatch:
string
,
}
httpStatusCodes:
[
,
integer
,
]
errors:
}
[
,
string
,
]
tcpRetryPolicy:
{
,
maxConnectAttempts:
integer
,
}
circuitBreakerPolicy:
{
,
consecutiveErrors:
integer
,
intervalInSeconds:
integer
,
maxEjectionPercent:
integer
,
}
httpConnectionPool:
{
,
http1MaxPendingRequests:
integer
,
http2MaxRequests:
integer
,
}
tcpConnectionPool:
}
{
,
maxConnections:
integer
,
}
⚐ Response (default)
{
error:
}
{
,
code:
string
,
message:
string
,
target:
string
,
details:
[
]
,
{
,
code:
string
,
message:
string
,
target:
string
,
}
innererror:
string
,
}