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.
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
dcdn:AddDcdnDomain |
create |
*Domain
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| DomainName |
string |
必須 |
加速するドメイン名。リクエストごとに 1 つのドメイン名のみ追加できます。 ワイルドカードドメイン名がサポートされています。ワイルドカードドメイン名はピリオド (期間) (.) で始まる必要があります。例: |
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。 |
domestic |
| TopLevelDomain |
string |
任意 |
トップレベルドメイン名。 |
yourTopLevelDomain |
| Tag |
array<object> |
任意 |
ドメイン名に追加するタグ。最大 20 個のタグを追加できます。 |
|
|
object |
任意 |
|||
| Key |
string |
任意 |
The tag key. |
env |
| Value |
string |
任意 |
The tag value. |
value |
| Scene |
string |
任意 |
コンピューティングサービスのタイプ。有効な値:
|
apiscene |
次の表は、Sources のフィールドについて説明しています。
| パラメーター | タイプ | 必須 | 説明 |
| type | String | はい | オリジンサーバーのタイプ。有効な値: ipaddr (IP オリジン)、domain (ドメインオリジン)、oss (OSS バケット)。 |
| content | String | はい | オリジンサーバーのアドレス。IP アドレスまたはドメイン名を指定できます。 |
| port | Integer | いいえ | オリジンサーバーからコンテンツを取得するために使用されるポート。有効な値: 80 (デフォルト)、443 (HTTPS 用)、またはカスタムポート。 |
| priority | String | いいえ | オリジンサーバーの優先度。プライマリオリジン (デフォルト) の場合は 20、バックアップオリジンの場合は 30 に設定します。 |
| weight | String | いいえ | オリジンサーバーの重み。有効な値: 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。