AFD Origin Groups - Update
更新配置檔中的現有原始群組。
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}?api-version=2025-04-15
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
origin
|
path | True |
string |
在配置檔中是唯一的原始群組名稱。 |
profile
|
path | True |
string minLength: 1maxLength: 260 pattern: ^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$ |
Azure Front Door Standard 或 Azure Front Door Premium 的名稱,在資源群組中是唯一的。 |
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+$ |
Azure 訂用帳戶內的資源組名。 |
subscription
|
path | True |
string |
Azure 訂用帳戶標識碼。 |
api-version
|
query | True |
string |
要與用戶端要求搭配使用的 API 版本。 目前的版本是 2025-04-15。 |
要求本文
名稱 | 類型 | Description |
---|---|---|
properties.healthProbeSettings |
Health probe settings to the origin that is used to determine the health of the origin. |
|
properties.loadBalancingSettings |
Load balancing settings for a backend pool |
|
properties.sessionAffinityState |
Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' |
|
properties.trafficRestorationTimeToHealedOrNewEndpointsInMinutes |
integer (int32) minimum: 0maximum: 50 |
Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported. |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
還行 |
|
202 Accepted |
接受。 要求已接受進行處理,且作業將會以異步方式完成。 標題 location: string |
|
Other Status Codes |
描述作業失敗原因的 Azure Front Door 錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
AFDOriginGroups_Update
範例要求
PATCH https://management.azure.com/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/originGroups/origingroup1?api-version=2025-04-15
{
"properties": {
"loadBalancingSettings": {
"sampleSize": 3,
"successfulSamplesRequired": 3,
"additionalLatencyInMilliseconds": 1000
},
"healthProbeSettings": {
"probePath": "/path2",
"probeRequestType": "NotSet",
"probeProtocol": "NotSet",
"probeIntervalInSeconds": 10
},
"trafficRestorationTimeToHealedOrNewEndpointsInMinutes": 5
}
}
範例回覆
{
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/origingroups/origingroup1",
"type": "Microsoft.Cdn/profiles/origingroups",
"name": "origingroup1",
"properties": {
"loadBalancingSettings": {
"sampleSize": 3,
"successfulSamplesRequired": 3,
"additionalLatencyInMilliseconds": 1000
},
"healthProbeSettings": {
"probePath": "/path1",
"probeRequestType": "HEAD",
"probeProtocol": "Http",
"probeIntervalInSeconds": 10
},
"trafficRestorationTimeToHealedOrNewEndpointsInMinutes": 5,
"provisioningState": "Succeeded",
"deploymentStatus": "NotStarted"
}
}
azure-asyncoperation: https://management.azure.com/subscriptions/subid/resourcegroups/resourceGroupName/providers/Microsoft.Cdn/operationresults/operationId?api-version=2025-04-15
{
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/origingroups/origingroup1",
"type": "Microsoft.Cdn/profiles/origingroups",
"name": "origingroup1",
"properties": {
"loadBalancingSettings": {
"sampleSize": 3,
"successfulSamplesRequired": 3,
"additionalLatencyInMilliseconds": 1000
},
"healthProbeSettings": {
"probePath": "/path1",
"probeRequestType": "HEAD",
"probeProtocol": "Http",
"probeIntervalInSeconds": 10
},
"trafficRestorationTimeToHealedOrNewEndpointsInMinutes": 5,
"provisioningState": "Updating",
"deploymentStatus": "NotStarted"
}
}
定義
名稱 | Description |
---|---|
Afd |
錯誤回應 |
AFDOrigin |
當無法從 Azure Front Door 提供內容時,會使用由來源組成的 AFDOrigin 群組來進行負載平衡。 |
AFDOrigin |
建立或更新來源群組所需的 AFDOrigin 群組屬性。 |
Afd |
佈建狀態 |
Deployment |
|
Enabled |
Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' |
Error |
資源管理錯誤其他資訊。 |
Error |
錯誤詳細數據。 |
Health |
JSON 物件,其中包含將健康情況探查傳送至來源的屬性。 |
Health |
The type of health probe request that is made. |
Identity |
建立/修改資源的身分識別類型 |
Load |
Round-Robin 後端集區的負載平衡設定 |
Probe |
Protocol to use for health probe. |
System |
唯讀系統數據 |
AfdErrorResponse
錯誤回應
名稱 | 類型 | Description |
---|---|---|
error |
error 物件。 |
AFDOriginGroup
當無法從 Azure Front Door 提供內容時,會使用由來源組成的 AFDOrigin 群組來進行負載平衡。
名稱 | 類型 | Description |
---|---|---|
id |
string |
Resource ID. |
name |
string |
Resource name. |
properties.deploymentStatus | ||
properties.healthProbeSettings |
Health probe settings to the origin that is used to determine the health of the origin. |
|
properties.loadBalancingSettings |
Load balancing settings for a backend pool |
|
properties.profileName |
string |
保存原始群組之配置檔的名稱。 |
properties.provisioningState |
佈建狀態 |
|
properties.sessionAffinityState |
Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' |
|
properties.trafficRestorationTimeToHealedOrNewEndpointsInMinutes |
integer (int32) minimum: 0maximum: 50 |
Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported. |
systemData |
唯讀系統數據 |
|
type |
string |
資源類型。 |
AFDOriginGroupUpdateParameters
建立或更新來源群組所需的 AFDOrigin 群組屬性。
名稱 | 類型 | Description |
---|---|---|
properties.healthProbeSettings |
Health probe settings to the origin that is used to determine the health of the origin. |
|
properties.loadBalancingSettings |
Load balancing settings for a backend pool |
|
properties.profileName |
string |
保存原始群組之配置檔的名稱。 |
properties.sessionAffinityState |
Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' |
|
properties.trafficRestorationTimeToHealedOrNewEndpointsInMinutes |
integer (int32) minimum: 0maximum: 50 |
Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported. |
AfdProvisioningState
佈建狀態
值 | Description |
---|---|
Creating | |
Deleting | |
Failed | |
Succeeded | |
Updating |
DeploymentStatus
值 | Description |
---|---|
Failed | |
InProgress | |
NotStarted | |
Succeeded |
EnabledState
Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'
值 | Description |
---|---|
Disabled | |
Enabled |
ErrorAdditionalInfo
資源管理錯誤其他資訊。
名稱 | 類型 | Description |
---|---|---|
info |
object |
其他資訊。 |
type |
string |
其他信息類型。 |
ErrorDetail
錯誤詳細數據。
名稱 | 類型 | Description |
---|---|---|
additionalInfo |
錯誤其他資訊。 |
|
code |
string |
錯誤碼。 |
details |
錯誤詳細數據。 |
|
message |
string |
錯誤訊息。 |
target |
string |
錯誤目標。 |
HealthProbeParameters
JSON 物件,其中包含將健康情況探查傳送至來源的屬性。
名稱 | 類型 | Description |
---|---|---|
probeIntervalInSeconds |
integer (int32) minimum: 1maximum: 255 |
The number of seconds between health probes.Default is 240sec. |
probePath |
string |
The path relative to the origin that is used to determine the health of the origin. |
probeProtocol |
Protocol to use for health probe. |
|
probeRequestType |
The type of health probe request that is made. |
HealthProbeRequestType
The type of health probe request that is made.
值 | Description |
---|---|
GET | |
HEAD | |
NotSet |
IdentityType
建立/修改資源的身分識別類型
值 | Description |
---|---|
application | |
key | |
managedIdentity | |
user |
LoadBalancingSettingsParameters
Round-Robin 後端集區的負載平衡設定
名稱 | 類型 | Description |
---|---|---|
additionalLatencyInMilliseconds |
integer (int32) |
The additional latency in milliseconds for probes to fall into the lowest latency bucket |
sampleSize |
integer (int32) |
The number of samples to consider for load balancing decisions |
successfulSamplesRequired |
integer (int32) |
The number of samples within the sample period that must succeed |
ProbeProtocol
Protocol to use for health probe.
值 | Description |
---|---|
Http | |
Https | |
NotSet |
SystemData
唯讀系統數據
名稱 | 類型 | Description |
---|---|---|
createdAt |
string (date-time) |
資源建立的時間戳(UTC) |
createdBy |
string |
建立資源的身分識別標識碼 |
createdByType |
建立資源的身分識別類型 |
|
lastModifiedAt |
string (date-time) |
上次修改的資源時間戳 (UTC) |
lastModifiedBy |
string |
上次修改資源之身分識別的標識碼 |
lastModifiedByType |
上次修改資源的身分識別類型 |