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

Edge Security Acceleration:AddDcdnDomain

最終更新日:Jun 10, 2026

AddDcdnDomain 操作を呼び出して、ドメイン名を追加します。

操作説明

  • You must activate the DCDN service before you add a domain name. For more information, see OpenDcdnService.

  • If the acceleration region is set to Chinese mainland only or Global, the accelerated domain name must have an ICP filing.

  • The first time you add a domain name to Alibaba Cloud DCDN, you must complete domain ownership verification. For more information, see VerifyDcdnDomainOwner.

  • You can add only one accelerated domain name at a time. By default, each user can add up to 50 domain names. To add more, request a quota increase in Quota Center.

  • This operation can be called up to 100 times per hour per user.

今すぐお試しください

この 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:AddDcdnDomain

create

*Domain

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

なし なし

リクエストパラメーター

パラメーター

必須 / 任意

説明

DomainName

string

必須

加速するドメイン名。リクエストごとに 1 つのドメイン名のみ追加できます。

ワイルドカードドメイン名がサポートされています。ワイルドカードドメイン名はピリオド (期間) (.) で始まる必要があります。例: .example.com

example.com

ResourceGroupId

string

任意

リソースグループの ID。このパラメーターを指定しない場合、システムはデフォルトのリソースグループの ID を使用します。

rg-acfmyuji4b6r4**

Sources

string

任意

オリジンサーバーのリスト。

[{"content":"10.10.10.10","type":"ipaddr","priority":"20","port":80}]

CheckUrl

string

任意

オリジンサーバーのアクセシビリティを確認するために使用される URL。

www.example.com/test.html

Scope

string

任意

加速リージョン。有効な値:

  • domestic: 中国本土

  • overseas: 中国本土以外

  • global: グローバル

デフォルト値: domestic

domestic

TopLevelDomain

string

任意

トップレベルドメイン名。

yourTopLevelDomain

Tag

array<object>

任意

ドメイン名に追加するタグ。最大 20 個のタグを追加できます。

object

任意

Key

string

任意

The tag key.

env

Value

string

任意

The tag value.

value

Scene

string

任意

コンピューティングサービスのタイプ。有効な値:

  • routine: routine

  • image: イメージ

  • cloudFunction: クラウド関数。

apiscene

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

パラメータータイプ必須説明
typeStringはいオリジンサーバーのタイプ。有効な値: ipaddr (IP オリジン)、domain (ドメインオリジン)、oss (OSS バケット)。
contentStringはいオリジンサーバーのアドレス。IP アドレスまたはドメイン名を指定できます。
portIntegerいいえオリジンサーバーからコンテンツを取得するために使用されるポート。有効な値: 80 (デフォルト)、443 (HTTPS 用)、またはカスタムポート。
priorityStringいいえオリジンサーバーの優先度。プライマリオリジン (デフォルト) の場合は 20、バックアップオリジンの場合は 30 に設定します。
weightStringいいえオリジンサーバーの重み。有効な値: 1~100。デフォルト値: 10

レスポンスフィールド

フィールド

説明

object

The response data.

RequestId

string

The request ID.

15C66C7B-671A-4297-9187-2C4477247A74

成功レスポンス

JSONJSON

{
  "RequestId": "15C66C7B-671A-4297-9187-2C4477247A74"
}

エラーコード

HTTP ステータスコード

エラーコード

エラーメッセージ

説明

400 InvalidDomainName.Malformed The specified DomainName is invalid.
400 InvalidSource.Content.Malformed The specified Source Content is invalid.
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 InvalidScope.Malformed The specified Scope 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 EntityNotExists.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 TopLevelDomain.NotFound The specified TopLevelDomain does not exist.
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 InvalidCheckUrl.Malformed The specified CheckUrl is invalid.
400 DomainOwnerVerifyFail Owner verification of the root domain failed.
400 TopLevelDomain.Mismatch The specified TopLevelDomain does not match webSiteType.
400 DomainInBlacklist The domain is in the blacklist.
400 DomainOverLimit The maximum number of domains is exceeded.
400 SourceInBlacklist Source is in the blacklist.
400 InvalidTagKey The key should not be null, start with "acs:" or "aliyun", contain "http://" or "https://" or have special symbols:.!@#$%?/^&*)(+={}[]",'<>~·`?;.
400 InvalidTagValue The tag value cannot contain these special symbols:http://, https://
400 ReservedTagKey The tag key is used internally as a reserved field and is not allowed to be used.
400 InvalidFunctionType.Malformed The specified FunctionType is invalid.
400 InvalidfunctionType.Malformed FunctionType is malformed.
400 DomainInRiskList The domain you added may be at risk. If you have any questions, please submit a ticket.
400 RegionNoResource Resource allocation failed. Please submit a work order to contact customer service.

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

変更履歴

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