BatchSetDcdnDomainConfigs 操作を呼び出して、複数のドメイン名の機能を一括で設定できます。
操作説明
1 回の呼び出しで最大 50 個のドメイン名を設定できます。
単一アカウントの最大呼び出し頻度は、毎秒 30 回です。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
dcdn:BatchSetDcdnDomainConfigs |
update |
*domain
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| DomainNames |
string |
必須 |
高速化ドメイン名。複数のドメイン名はコンマ (,) で区切ります。次の制限にご注意ください:
|
example.com,example.org |
| Functions |
string |
必須 |
機能のリスト。最大 50 個の機能を指定できます。次のフォーマットを使用します:
|
[{"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 |
例
成功レスポンス
JSONJSON
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
"DomainConfigList": {
"DomainConfigModel": [
{
"ConfigId": 123456,
"DomainName": "www.example.com",
"FunctionName": "set_resp_header"
}
]
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidFunctions.Malformed | The specified Functions is invalid. | |
| 400 | InvalidArgValue.Malformed | The specified ArgValue is invalid. | |
| 400 | Invalid%s.ValueNotSupported | [%s] is not supported. | |
| 400 | Invalid%s.Malformed | The specified ArgValue [%s] is invalid. | |
| 400 | MissingParameter | You must specify ArgValue. | |
| 400 | InvalidRule.Malformed | %s | |
| 400 | InvalidHeaderKey.ValueNotSupported | The specified value of parameter HeaderKey is not supported. | |
| 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. | |
| 400 | ServiceInvokeFailed | Failed to invoke service. | |
| 400 | ConfigParentExceedLimit | Config Parent exceed limit. | |
| 400 | BatchSetBusinessError | some configs error:%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. | |
| 400 | Domain.DDosAlreadyExists | This specified domain has been in 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。