複数の高速化ドメイン名の設定を一度に更新します。
操作説明
1 アカウントあたり、毎秒 30 回までこの操作を呼び出すことができます。
各リクエストで最大 50 個のドメイン名を指定できます。 複数のドメイン名はカンマ (,) で区切ります。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
cdn:BatchUpdateCdnDomain |
update |
*Domain
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| DomainName |
string |
必須 |
高速化ドメイン名。 1 つ以上の高速化ドメイン名を指定できます。 ドメイン名はカンマ (,) で区切ります。 |
example.com,example.org |
| Sources |
string |
任意 |
オリジンサーバーのアドレスに関する情報。 説明
Sources と TopLevelDomain を同時に設定しないでください。 Sources と TopLevelDomain を同時に設定した場合、TopLevelDomain は有効になりません。 |
[{"content":"10.10.10.10","type":"ipaddr","priority":"20","port":80,"weight":"15"}] |
| ResourceGroupId |
string |
任意 |
リソースグループの ID。 |
rg-acfmyuji4b6r4** |
| TopLevelDomain |
string |
任意 |
ルートドメイン。 説明
Sources と TopLevelDomain を同時に設定しないでください。 Sources と TopLevelDomain を同時に設定した場合、TopLevelDomain は有効になりません。 |
example.com |
次の表に、Sources パラメーターのフィールドを示します。
| フィールド | タイプ | 必須 | 説明 |
| type | String | はい | オリジンサーバーのタイプ。ipaddr: IP アドレス。domain: ドメイン名。oss: Object Storage Service (OSS) バケットのドメイン名。fc_domain: Function Compute のドメイン名。 |
| content | String | はい | オリジンサーバーのアドレス。 IP アドレスまたはドメイン名を指定できます。 |
| port | Integer | いいえ | ポート。 ポート 80、ポート 443、またはカスタムポートを指定できます。 デフォルト値:80。 ポート 443 を指定すると、Alibaba Cloud CDN は HTTPS 経由でオリジンサーバーと通信します。 |
| priority | String | いいえ | 複数のオリジンサーバーが指定されている場合のオリジンサーバーの優先度。 有効な値:20 および 30。 デフォルト値:20。 値 20 は、オリジンがプライマリオリジンであることを指定します。 値 30 は、オリジンがセカンダリオリジンであることを指定します。 |
| weight | String | いいえ | 複数のオリジンサーバーが指定されている場合のオリジンサーバーの重み。 100 未満の値を指定する必要があります。 デフォルト値:10。 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエストの ID。 |
15C66C7B-671A-4297-9187-2C4477247A74 |
例
成功レスポンス
JSONJSON
{
"RequestId": "15C66C7B-671A-4297-9187-2C4477247A74"
}
エラーコード
|
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 | InvalidSources.Malformed | Specified Sources is malformed. | 不正な発信元サイトアドレス。 |
| 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 | It is not allowed to do this operation because of the current status of resource-group. | |
| 403 | DomainInProtectedMode | The domain is in protection mode. To request permission, contact Customer Service. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。