すべてのプロダクト
Search
ドキュメントセンター

Edge Security Acceleration:BatchAddDcdnDomain

最終更新日:Jun 10, 2026

`BatchAddDcdnDomain`を呼び出して、複数のドメイン名を追加します。

操作説明

前提条件:

  • アクセラレーションドメイン名を追加する前に、DCDNを有効化する必要があります。

  • アクセラレーションリージョンとして中国本土のみまたはグローバルを選択する場合、アクセラレーションドメイン名には有効なICP 登録が必要です。

  • ドメイン名をAlibaba Cloud DCDNに初めて追加する際は、ドメイン所有権の検証を完了する必要があります。詳細については、 VerifyDcdnDomainOwner を参照してください。

  • 1 回の呼び出しで追加できるアクセラレーションドメイン名は1つのみです。各ユーザーのデフォルトクォータは50 個のドメイン名です。追加するには、Quota Centerでリクエストを送信してください。

  • 各ユーザーは、この操作を1 時間あたり最大 100 回呼び出すことができます。

今すぐお試しください

この API を OpenAPI Explorer でお試しください。手作業による署名は必要ありません。呼び出しに成功すると、入力したパラメーターに基づき、資格情報が組み込まれた SDK コードが自動的に生成されます。このコードをダウンロードしてローカルで使用できます。

テスト

RAM 認証

下表に、この API を呼び出すために必要な認証情報を示します。認証情報は、RAM (Resource Access Management) ポリシーを使用して定義できます。以下で各列名について説明します。

  • アクション:特定のリソースに対して実行可能な操作。ポリシー構文ではAction要素として指定します。

  • API:アクションを具体的に実行するための API。

  • アクセスレベル:各 API に対して事前定義されているアクセスの種類。有効な値:create、list、get、update、delete。

  • リソースタイプ:アクションが作用するリソースの種類。リソースレベルでの権限をサポートするかどうかを示すことができます。ポリシーの有効性を確保するため、アクションの対象として適切なリソースを指定してください。

    • リソースレベルの権限を持つ API の場合、必要なリソースタイプはアスタリスク (*) でマークされます。ポリシーのResource要素で対応する ARN を指定してください。

    • リソースレベルの権限を持たない API の場合、「すべてのリソース」と表示され、ポリシーのResource要素でアスタリスク (*) でマークされます。

  • 条件キー:サービスによって定義された条件のキー。このキーにより、きめ細やかなアクセス制御が可能になります。この制御は、アクション単体に適用することも、特定のリソースに対するアクションに適用することもできます。Alibaba Cloud は、サービス固有の条件キーに加えて、すべての RAM 統合サービスに適用可能な一連の共通条件キーを提供しています。

  • 依存アクション:ある特定のアクションを実行するために、前提として実行が必要となる他のアクション。依存アクションの権限も RAM ユーザーまたは RAM ロールに付与する必要があります。

アクション

アクセスレベル

リソースタイプ

条件キー

依存アクション

dcdn:BatchAddDcdnDomain

create

*Domain

acs:dcdn:*:{#accountId}:domain/{#domainName}

なし なし

リクエストパラメーター

パラメーター

必須 / 任意

説明

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(デフォルト):中国本土のみ。

  • overseas:グローバル(中国本土を除く)。

  • global:グローバル。

domestic

TopLevelDomain

string

任意

プライマリドメイン。

example.com

次の表は、Sourcesパラメータのフィールドについて説明しています。

パラメータタイプ必須説明
typeStringはいオリジンのタイプ。有効な値:
ipaddr: IPオリジン。
domain: ドメインオリジン。
oss: OSSバケット。
fc_domain: Function Computeオリジン。
contentStringはいオリジンのIPアドレスまたはドメイン名。
portIntegerいいえオリジンのポート。有効な値:
80: デフォルトポート。
443: HTTPS 接続用。
カスタムポート番号。
priorityStringいいえオリジンの優先度。有効な値:
20: プライマリオリジン(デフォルト)。
30: バックアップオリジン。
weightStringいいえオリジンの重み。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.

完全なリストについては、「エラーコード」をご参照ください。

変更履歴

完全なリストについては、「変更履歴」をご参照ください。