高速化ドメイン名の設定を更新します。
操作説明
The throttling limit for a single user is 30 calls per second.
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
dcdn:UpdateDcdnDomain |
update |
domain
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| DomainName |
string |
必須 |
高速化ドメイン名。各リクエストで指定できるドメイン名は 1 つだけです。 |
example.com |
| Sources |
string |
任意 |
オリジンアドレスのリスト。 |
[{"content":"10.10.10.10","type":"ipaddr","priority":"20","port":80}] |
| ResourceGroupId |
string |
任意 |
リソースグループの ID。 |
rg-xxxxx |
| TopLevelDomain |
string |
任意 |
トップレベルドメイン。 |
yourTopLevelDomain |
次の表に、Sources パラメーターのフィールドを示します。
| パラメーター | タイプ | 必須 | 説明 |
| type | String | はい | オリジンサーバーのタイプ。有効な値: ipaddr: IP アドレス。 domain: ドメイン名。 oss: Object Storage サービス (OSS) バケット。 fc_domain: Function Compute ドメイン名。 |
| content | String | はい | オリジンサーバーのアドレス。値は IP アドレスまたはドメイン名にすることができます。 |
| port | Integer | いいえ | ポート。ポート 443 または 80、もしくはカスタムポートを指定できます。デフォルト値は 80 です。ポート 443 は HTTPS オリジンフェッチに使用されます。 |
| priority | String | いいえ | オリジンサーバーの優先度。有効な値は 20 と 30 です。デフォルト値は 20 です。値 20 はプライマリオリジンサーバーを示し、値 30 はセカンダリオリジンサーバーを示します。 |
| weight | String | いいえ | オリジンサーバーの重み。値は 100 以下の整数である必要があります。デフォルト値は 10 です。 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
The ID of the request. |
0AEDAF20-4DDF-4165-8750-47FF9C1929C9 |
例
成功レスポンス
JSONJSON
{
"RequestId": "0AEDAF20-4DDF-4165-8750-47FF9C1929C9"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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 | 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 | The current status of the resource group does not support this operation. | |
| 400 | TopLevelDomain.NotFound | The specified TopLevelDomain does not exist. | |
| 400 | TopLevelDomain.Mismatch | The specified TopLevelDomain does not match webSiteType. | |
| 403 | DomainInProtectedMode | The domain is in protection mode. To request permission, contact Customer Service. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。