`BatchAddDcdnDomain`を呼び出して、複数のドメイン名を追加します。
操作説明
前提条件:
-
アクセラレーションドメイン名を追加する前に、DCDNを有効化する必要があります。
-
アクセラレーションリージョンとして中国本土のみまたはグローバルを選択する場合、アクセラレーションドメイン名には有効なICP 登録が必要です。
-
ドメイン名をAlibaba Cloud DCDNに初めて追加する際は、ドメイン所有権の検証を完了する必要があります。詳細については、 VerifyDcdnDomainOwner を参照してください。
-
1 回の呼び出しで追加できるアクセラレーションドメイン名は1つのみです。各ユーザーのデフォルトクォータは50 個のドメイン名です。追加するには、Quota Centerでリクエストを送信してください。
-
各ユーザーは、この操作を1 時間あたり最大 100 回呼び出すことができます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
dcdn:BatchAddDcdnDomain |
create |
*Domain
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| DomainName |
string |
必須 |
DCDNでアクセラレーションするドメイン名。最大 20 個のドメイン名をカンマで区切って指定できます。 |
example.com,example.org |
| ResourceGroupId |
string |
任意 |
リソースグループのID。このパラメータを省略した場合、システムはデフォルトのリソースグループを使用します。 |
testID |
| Sources |
string |
必須 |
オリジンサーバーを指定するJSON 文字列。 |
[{"content":"10.10.10.10","type":"ipaddr","priority":"20","port":80,"weight":"15"}] |
| CheckUrl |
string |
任意 |
ヘルスチェックURL。 |
www.example.com/test.html |
| Scope |
string |
任意 |
アクセラレーションリージョン。有効な値:
|
domestic |
| TopLevelDomain |
string |
任意 |
プライマリドメイン。 |
example.com |
次の表は、Sourcesパラメータのフィールドについて説明しています。
| パラメータ | タイプ | 必須 | 説明 |
| type | String | はい | オリジンのタイプ。有効な値: ipaddr: IPオリジン。 domain: ドメインオリジン。 oss: OSSバケット。 fc_domain: Function Computeオリジン。 |
| content | String | はい | オリジンのIPアドレスまたはドメイン名。 |
| port | Integer | いいえ | オリジンのポート。有効な値: 80: デフォルトポート。 443: HTTPS 接続用。 カスタムポート番号。 |
| priority | String | いいえ | オリジンの優先度。有効な値: 20: プライマリオリジン(デフォルト)。 30: バックアップオリジン。 |
| weight | String | いいえ | オリジンの重み。1から100までの整数(デフォルト: 10)。 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエストのID。 |
15C66C7B-671A-4297-9187-2C4477247A74 |
例
成功レスポンス
JSONJSON
{
"RequestId": "15C66C7B-671A-4297-9187-2C4477247A74"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidDomainName.Malformed | The specified DomainName is invalid. | |
| 400 | InvalidSources.Malformed | The specified Sources is invalid. | |
| 400 | InvalidScope.Malformed | The specified Scope is invalid. | |
| 400 | InvalidSource.Priority.Malformed | The specified Source Priority is invalid. | |
| 400 | SourceIp.Exceed | The maximum number of back-to-origin IP addresses is exceeded. | |
| 400 | InvalidCertificate | The specified certificate format is invalid. | |
| 400 | InvalidCertificate.TooLong | The maximum length of the certificate is exceeded. | |
| 400 | CheckSourceHealthFailed | Error checking the security. Provide the valid origin site information. | |
| 400 | ExtensiveAndAllBothExist | A wildcard domain name and a domain name with an all. prefix cannot be both specified. | |
| 400 | CdnTypeNotSupportExtensiveDomain | Wildcard domain names are not supported. | |
| 400 | ExtensiveAndSpecificDomainConflict | The wildcard domain name overlaps a domain name at the same level. | |
| 400 | InvalidResourceGroupId.Malformed | The specified ResourceGroupId is invalid. | |
| 400 | DomainReserved | The root domain of your domain is reserved by another account. Submit a ticket to contact customer support. | |
| 400 | InvalidDomainNameLevel | The alicdn.com domain supports a maximum of three levels of domain. | |
| 400 | TopLevelDomain.NotFound | The specified TopLevelDomain does not exist. | |
| 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 | NotInternationRealIdentity | Real-name registration is required for services offered in Mainland China. | |
| 400 | RecordCheckNotAvailable | The ICP filing interface is unavailable. Please try again later. | |
| 400 | IcpBlack | The domain is on the ICP blacklist. | |
| 400 | IspBlack | The domain is on the ISP blacklist. | |
| 400 | DomainOwnerVerifyFail | Owner verification of the root domain failed. | |
| 400 | TopLevelDomain.Mismatch | The specified TopLevelDomain does not match webSiteType. | |
| 400 | DomainOverLimit | The maximum number of domains is exceeded. | |
| 400 | DomainInRiskList | The domain you added may be at risk. If you have any questions, please submit a ticket. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。