呼叫BatchSetDcdnDomainConfigs實現網域批次配置功能。
介面說明
單一使用者呼叫頻率:30 次/秒。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
dcdn:BatchSetDcdnDomainConfigs |
update |
*domain
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| DomainNames |
string |
是 |
加速網域,多個網域用半形逗號(,)分隔。注意以下配置限制:
|
example.com,example.org |
| Functions |
string |
是 |
功能清單。注意以下配置限制:
格式如下:
|
[{"functionArgs":[{"argName":"switch","argValue":"on"},{"argName":"region","argValue":"*"}],"functionName":"ipv6"}] |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
04F0F334-1335-436C-A1D7-6C044FE73368 |
| DomainConfigList |
object |
||
| DomainConfigModel |
array<object> |
網域配置清單。 |
|
|
object |
|||
| ConfigId |
integer |
配置 ID,如果傳回為 0,則表示該條配置未配置成功,需要重新配置。 |
123456 |
| DomainName |
string |
網域。 |
www.example.com |
| FunctionName |
string |
功能名稱。 |
set_resp_header |
樣本
正常返回樣本
JSON格式
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
"DomainConfigList": {
"DomainConfigModel": [
{
"ConfigId": 123456,
"DomainName": "www.example.com",
"FunctionName": "set_resp_header"
}
]
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidFunctions.Malformed | The specified Functions is invalid. | 不支援此設定,請重新填寫。 |
| 400 | InvalidArgValue.Malformed | The specified ArgValue is invalid. | ArgValue 錯誤,請重新填寫。 |
| 400 | Invalid%s.ValueNotSupported | [%s] is not supported. | 不支援該配置,請重新查詢。 |
| 400 | Invalid%s.Malformed | The specified ArgValue [%s] is invalid. | 不支援該 ArgValue,請填寫正確的 ArgValue。 |
| 400 | MissingParameter | You must specify ArgValue. | 缺少參數。 |
| 400 | InvalidRule.Malformed | %s | %s |
| 400 | InvalidHeaderKey.ValueNotSupported | The specified value of parameter HeaderKey is not supported. | HeaderKey 的值不合法。 |
| 400 | MissingParameter%s | The specified value of ArgName %s is missing. | 缺少參數。 |
| 400 | InvalidParameter | Domain already exists in high ddos. | 參數錯誤。 |
| 400 | ConfigExceedLimit | Count of config entries exceeds the limit. | 設定筆數超過限制。 |
| 400 | EdgeScriptCountExceedLimit | The number of rules exceeds the default limit (1). To increase the limit, submit a ticket. | |
| 400 | EdgeScripOptionsHasInnerConfig | The extension has a background configuration or a parameter of this configuration is invalid. For more information, submit a ticket. | 擴充項目存在後台設定或該設定的參數不合法,如有疑問,請提交工單諮詢。 |
| 400 | EdgeScriptGrammarNotSupport | A background customization rule exists or a parameter of this configuration is invalid. For more information, submit a ticket. | 存在後台自訂規則或該設定的參數不合法,如有疑問,請提交工單諮詢。 |
| 400 | EdgeScriptNotSupportJs | JavaScript rules are not supported. For more information, submit a ticket. | 未開放 JS 規則,如有疑問,請提交工單諮詢。 |
| 400 | ServiceInvokeFailed | Failed to invoke service. | 呼叫內部服務失敗。 |
| 400 | ConfigParentExceedLimit | Config Parent exceed limit. | 已引用的進階條件規則超過 5 條。 |
| 400 | BatchSetBusinessError | some configs error:%s | 發生設定錯誤:%s。 |
| 400 | Function.InvalidParentId | The specified parentId does not exist. | 指定的規則條件不存在。 |
| 400 | Domain.DDosQuotaFull | The user’s domain quota for DDos is full. | 防護網域數量已達上限,請變更規格加購網域數量。 |
| 400 | AccountArrears | The user‘s account is in arrears. | 您的帳號已欠費,無法操作。 |
| 400 | DDosExpired | The user‘s DDoS protection has expired. | 您的 DDoS 防護已過期,無法操作。 |
| 400 | Domain.DDosAlreadyExists | This specified domain has been in DDoS. | 該網域已接入阿里雲高防產品,請刪除後再接入 DCDN DDoS 防護。 |
| 400 | Domain.PortConfiguring | This specified domain's special ports are configuring. | 網域的特殊連接埠設定中,請稍候。 |
| 400 | Domain.PortAllocateError | Your port resource allocation failed, please try again in 30 minutes. | 您本次提交的自訂連接埠資源分配失敗,請於 30 分鐘後重試。若多次重試失敗,可提交工單處理。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。