SetCdnDomainStagingConfig を呼び出して、ステージング環境で高速化ドメイン名を設定できます。
操作説明
1 人のユーザーが 1 秒あたり最大 30 回の呼び出しを行うことができます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
cdn:SetCdnDomainStagingConfig |
update |
*Domain
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| DomainName |
string |
必須 |
高速化ドメイン名。一度に設定できるドメイン名は 1 つだけです。 |
example.com |
| Functions |
string |
必須 |
機能のリスト。フォーマットは次のとおりです: 説明
|
[{"functionArgs":[{"argName":"enable","argValue":"on"},{"argName":"pri","argValue":"1"},{"argName":"rule","argValue":"xxx"}],"functionName":"edge_function"}] |
edge_function 機能の説明
すべてのパラメーター値は文字列として処理されます。
| 機能名 | パラメーター |
| edge_function:エッジ関数 | 必須パラメーター: rule:DSL ルール。 pri:優先度。 enable:ルールを有効にするかどうかを指定します。有効な値:on および off。 オプションパラメーター: name:ルールの名前。文字とアンダースコア (_) のみがサポートされます。 pos:ルールが実行される位置。 brk:このルールにヒットした場合、現在の実行位置にある残りのルールはスキップされます。 option:オプションコントロール。 grammar:文法コントロール。有効な値:empty、es2、および js。 jsmode:JavaScript ドメイン名ホワイトリストコントロール。有効な値:redirect および bypass。 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID。 |
04F0F334-1335-436C-A1D7-6C044FE73368 |
| DomainConfigList |
array<object> |
ドメイン名構成のリスト。 |
|
|
object |
|||
| ConfigId |
integer |
構成 ID。 |
1234567 |
| DomainName |
string |
ドメイン名。 |
www.example.com |
| FunctionName |
string |
機能名。 |
set_resp_header |
例
成功レスポンス
JSONJSON
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
"DomainConfigList": [
{
"ConfigId": 1234567,
"DomainName": "www.example.com",
"FunctionName": "set_resp_header"
}
]
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidFunctionName.ValueNotSupported | %s | |
| 400 | InvalidArgValue.Malformed | %s | |
| 400 | ConfigurationConflicts | The staging environment has a configuration in effect and cannot modify the production environment configuration. | |
| 400 | InvalidArgName.ValueNotSupported | %s | |
| 400 | GrayConfigExist | The domain exists other gray config. | |
| 400 | InvalidRule.Malformed | %s | |
| 400 | InvalidDomain.BelongToConfigGroup | This Domain activated in configuration group and should modify by config group. | |
| 400 | EdgeScriptCountExceedLimit | The number of rules exceeds the default limit. | |
| 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 | MissingRequiredArg | required argument missing. | |
| 400 | FunctionArgError | The function parameter of the domain configuration is incorrect. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。