複数のドメイン名を一度に設定します。
操作説明
単一ユーザーの呼び出し周波数: 1 秒あたり 30 回。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
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 |
例
成功レスポンス
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. | 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. | このドメイン名はすでに Alibaba Cloud Anti-DDoS に接続されています。DCDN DDoS 対策に接続する前に、Anti-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 分後に再試行してください。複数回再試行しても問題が発行されない場合は、チケットを起票してください。 |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。