調用UpdateDcdnDomain修改加速網域名稱。
介面說明
單使用者調用頻率:30 次/秒。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
dcdn:UpdateDcdnDomain |
update |
domain
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| DomainName |
string |
是 |
加速網域名稱,僅支援修改單個網域名稱。 |
example.com |
| Sources |
string |
否 |
回源地址清單。 |
[{"content":"10.10.10.10","type":"ipaddr","priority":"20","port":80}] |
| ResourceGroupId |
string |
否 |
資源群組 ID。 |
rg-xxxxx |
| TopLevelDomain |
string |
否 |
頂級接入域。 |
yourTopLevelDomain |
Sources 各欄位含義如下所示。
| 參數 | 類型 | 是否必選 | 描述 |
| type | String | 是 | 來源站點類型,取值如下: ipaddr:IP 來源站點。 domain:標題來源站。 oss:OSS Bucket 為來源站點。 fc_domain:Function Compute來源站點。 |
| content | String | 是 | 回源地址,可以是 IP 或網域名稱。 |
| port | Integer | 否 | 可以指定 443 和 80 連接埠,也可以自訂連接埠,預設值 80,443 是 HTTPS 協議回源。 |
| priority | String | 否 | 來源站點地址對應的優先順序,支援 20 和 30,預設 20。20 是主,30 是備。 |
| weight | String | 否 | 回源權重,100 以內,預設 10。 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
0AEDAF20-4DDF-4165-8750-47FF9C1929C9 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "0AEDAF20-4DDF-4165-8750-47FF9C1929C9"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | MissingDomainName | The domainName parameter is required. | 請填寫網域名稱參數。 |
| 400 | InvalidDomainName.Malformed | The specified DomainName is invalid. | 網域名稱格式錯誤。 |
| 400 | InvalidSource.Content.Malformed | The specified Source Content is invalid. | 來源站點資訊錯誤,請重新填寫。 |
| 400 | InvalidTypeContent.Mismatch | The specified source type does not match the specified source content. | 來源站點類型和來源站點不匹配,請重新填寫。 |
| 400 | MissingSource.Content | The Source Content must be specified. | Source Content必填,請填寫後重試。 |
| 400 | MissingSource.Type | The Source Type must be specified. | Source Type必填,請填寫後重試。 |
| 400 | InvalidSource.Type.Malformed | The specified Source Type is invalid. | Source Type格式錯誤,請重新填寫。 |
| 400 | InvalidSource.Priority.Malformed | The specified Source Priority is invalid. | Source Priority格式錯誤,請填寫正確的格式。 |
| 400 | InvalidResourceGroupId.Malformed | The specified ResourceGroupId is invalid. | ResourceGroupId錯誤,請填寫正確的ResourceGroupId。 |
| 400 | EntityNotExists.ResourceGroup | The resource group does not exist. | 該資源群組不存在。 |
| 400 | EntityNotExist.ResourceGroup | The resource group does not exist. | 該資源群組不存在。 |
| 400 | InvalidStatus.ResourceGroup | The current status of the resource group does not support this operation. | 資源群組目前狀態不允許進行此操作。 |
| 400 | TopLevelDomain.NotFound | The specified TopLevelDomain does not exist. | 頂級接入域不存在。 |
| 400 | TopLevelDomain.Mismatch | The specified TopLevelDomain does not match webSiteType. | 頂級接入域和網域名稱類型不符。 |
| 403 | DomainInProtectedMode | The domain is in protection mode. To request permission, contact Customer Service. | 此網域名稱處於被保護模式。如果您想做這個操作,請聯絡我們。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。