調用BatchUpdateCdnDomain批次更新加速網域名稱基本資料。
介面說明
單使用者調用頻率:30 次/秒。
支援批量查詢網域名稱,多個網域名稱用半形逗號(,)分隔,一次最多支援更新 50 個網域名稱。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
cdn:BatchUpdateCdnDomain |
update |
*Domain
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| DomainName |
string |
是 |
加速網域名稱,多個網域名稱用半形逗號(,)隔開。 |
example.com,example.org |
| Sources |
string |
否 |
回源地址清單。 說明
不支援同時傳入 Sources 和 TopLevelDomain 參數,如果您同時傳入 Sources 和 TopLevelDomain 參數,TopLevelDomain 將不生效。 |
[{"content":"10.10.10.10","type":"ipaddr","priority":"20","port":80,"weight":"15"}] |
| ResourceGroupId |
string |
否 |
資源群組 ID。 |
rg-acfmyuji4b6r4** |
| TopLevelDomain |
string |
否 |
頂級接入域。 說明
不支援同時傳入 Sources 和 TopLevelDomain 參數,如果您同時傳入 Sources 和 TopLevelDomain 參數,TopLevelDomain 將不生效。 |
example.com |
Sources 各欄位含義如下所示。
| 參數 | 類型 | 是否必選 | 描述 |
| type | String | 是 | 來源站點類型。 ipaddr:IP 來源站點。 domain:標題來源站。 oss:OSS Bucket 為來源站點。 fc_domain:Function Compute來源站點。 |
| content | String | 是 | 回源地址,可以是 IP 或網域名稱。 |
| port | Integer | 否 | 連接埠。您可以指定 80、443,也可以自訂連接埠,預設值為 80。443 連接埠支援 HTTPS 協議回源。 |
| priority | String | 否 | 來源站點地址對應的優先順序,支援 20 和 30,預設值為 20。20 是主源,30 是備源。 |
| weight | String | 否 | 回源權重,100 以內,預設值為 10。 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
15C66C7B-671A-4297-9187-2C4477247A74 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "15C66C7B-671A-4297-9187-2C4477247A74"
}
錯誤碼
|
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. | 缺少來源站點資訊。 |
| 400 | MissingSource.Type | The Source Type must be specified. | |
| 400 | InvalidSources.Malformed | Specified Sources is malformed. | 來源站點地址格式錯誤。 |
| 400 | InvalidSource.Type.Malformed | The specified Source Type is invalid. | |
| 400 | InvalidSource.Priority.Malformed | The specified Source Priority is invalid. | |
| 400 | InvalidResourceGroupId.Malformed | The specified ResourceGroupId is invalid. | |
| 400 | EntityNotExists.ResourceGroup | The resource group does not exist. | 資源群組不存在。 |
| 400 | EntityNotExist.ResourceGroup | The resource group does not exist. | 該資源群組不存在。 |
| 400 | InvalidStatus.ResourceGroup | It is not allowed to do this operation because of the current status of resource-group. | 資源群組目前狀態不允許進行此操作。 |
| 403 | DomainInProtectedMode | The domain is in protection mode. To request permission, contact Customer Service. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。