ドメイン名を追加します。
操作説明
ドメイン名を追加する前に、DCDN を有効化する必要があります。詳細については、「 OpenDcdnService 」を参照してください。
加速リージョンが中国本土またはグローバルに設定されている場合、ドメイン名は ICP 登録を取得している必要があります。
Alibaba Cloud DCDN に新しいドメイン名を初めて追加する場合は、ドメイン名の所有権を確認する必要があります。詳細については、「 VerifyDcdnDomainOwner 」を参照してください。
一度に追加できる加速ドメイン名は 1 つだけです。デフォルトでは、各ユーザーは最大 50 個のドメイン名を追加できます。さらにドメイン名を追加するには、クォータセンターでクォータの引き上げを申請してください。
各ユーザーは、この操作を 1 時間あたり最大 100 回呼び出せます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
dcdn:AddDcdnDomain |
create |
*Domain
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| 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。 |
domestic |
| TopLevelDomain |
string |
任意 |
トップレベルドメイン名。 |
yourTopLevelDomain |
| Tag |
array<object> |
任意 |
タグ情報。最大 20 個のタグを追加できます。 |
|
|
object |
任意 |
|||
| Key |
string |
任意 |
タグキー。 |
env |
| Value |
string |
任意 |
タグ値。 |
value |
| FunctionType |
string |
任意 |
コンピューティングサービスのタイプ。有効な値:
|
routine |
次の表に、Sources パラメーターのフィールドについて説明します。
| パラメーター | タイプ | 必須 | 説明 |
| type | String | Yes | オリジンサーバーのタイプ。有効な値: ipaddr: IP アドレス。domain: ドメイン名。oss: OSS バケット。 |
| content | String | Yes | バックツーオリジンアドレス。IP アドレスまたはドメイン名を指定できます。 |
| port | Integer | No | ポート番号。ポート 443、ポート 80、またはカスタムポートを指定できます。デフォルト値: 80。ポート 443 は HTTPS バックツーオリジンリクエストに使用されます。 |
| priority | String | No | オリジンサーバーのアドレスの優先度。有効な値: 20 および 30。デフォルト値: 20。値 20 はプライマリオリジンサーバーを指定します。値 30 はセカンダリオリジンサーバーを指定します。 |
| weight | String | No | バックツーオリジンウェイト。値は 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 | InvalidSource.Content.Malformed | The specified Source Content is invalid. | オリジンサーバー情報が正しくありません。有効な情報を指定してください。 |
| 400 | MissingSource.Content | The Source Content must be specified. | Source Content パラメーターは必須です。このパラメーターを指定して再試行してください。 |
| 400 | MissingSource.Type | The Source Type must be specified. | Source Type パラメーターは必須です。このパラメーターを指定して再試行してください。 |
| 400 | InvalidSource.Type.Malformed | The specified Source Type is invalid. | Source Type のフォーマットが正しくありません。有効なフォーマットを指定してください。 |
| 400 | InvalidSource.Priority.Malformed | The specified Source Priority is invalid. | Source Priority のフォーマットが正しくありません。有効なフォーマットを指定してください。 |
| 400 | InvalidScope.Malformed | The specified Scope is invalid. | Scope が正しくありません。有効な Scope を指定して再試行してください。 |
| 400 | SourceIp.Exceed | The maximum number of back-to-origin IP addresses is exceeded. | バックツーオリジン IP アドレスの数が上限を超えています。 |
| 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. | ワイルドカードドメイン名と「all.」で始まるドメイン名は共存できません。 |
| 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. | alicdn.com (ワイルドカードドメイン名用) は、最大で第 3 レベルまでのドメイン名をサポートしています。 |
| 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. | ICP 登録チェック中に例外が発生しました。後でもう一度お試しください。 |
| 400 | IcpBlack | The domain is on the ICP blacklist. | ドメイン名が MIIT ブラックリストに登録されています。 |
| 400 | IspBlack | The domain is on the ISP blacklist. | ドメイン名が Alibaba Cloud のブラックリストに登録されています。 |
| 400 | InvalidCheckUrl.Malformed | The specified CheckUrl is invalid. | CheckUrl パラメーターが無効です。 |
| 400 | DomainOwnerVerifyFail | Owner verification of the root domain failed. | Alibaba Cloud DCDN に新しいドメイン名を初めて追加する際は、必須項目としてドメイン名のオーナーを確認する必要があります。必要に応じて DNS 解像度またはファイル検証を設定した後でのみ、時間をかけてドメイン名を追加できます。 |
| 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. | 選択したリージョンには対応するリソースがありません。 |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。