BatchAddCdnDomain 操作を呼び出して、1 回のリクエストで最大 50 個の高速化ドメイン名を追加します。
操作説明
高速化ドメイン名を追加する前に、CDN サービスを有効化する必要があります。 詳細については、「CDN サービスの有効化」をご参照ください。
加速リージョンとして中国本土またはグローバルを選択した場合、高速化ドメイン名は ICP 登録が必要です。
1 回の呼び出しで最大 50 個のドメイン名を照会できます。 複数のドメイン名を照会するには、カンマ (,) で区切ります。
各ユーザーは、この操作を 1 時間あたり最大 100 回呼び出すことができます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
cdn:BatchAddCdnDomain |
create |
*Domain
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| CdnType |
string |
必須 |
高速化ドメイン名のサービスタイプ。 有効値:
|
web |
| DomainName |
string |
必須 |
CDN に追加するドメイン名。 複数のドメインはカンマで区切ります。 |
example.com,aliyundoc.com |
| ResourceGroupId |
string |
任意 |
リソースグループの ID。 このパラメーターを省略すると、システムは自動的にデフォルトのリソースグループの ID を使用します。 |
rg-acfmyuji4b6r4** |
| Sources |
string |
必須 |
オリジンのリスト。 |
[ { "content": "192.0.2.0", "type": "ipaddr", "priority": "20", "port": 80, "weight": "15" } ] |
| CheckUrl |
string |
任意 |
ヘルスチェック URL。 |
url |
| Scope |
string |
任意 |
サービスエリア。 有効値:
|
domestic |
| TopLevelDomain |
string |
任意 |
ルートドメイン名 (例: example.com)。 |
example.com |
次の表に、Sources のフィールドを示します。
| パラメーター | タイプ | 必須 | 説明 |
| type | String | はい | オリジンのタイプ。 有効値:ipaddr:IP オリジン。domain:ドメイン名オリジン。oss:OSS バケットオリジン。fc_domain:Function Compute オリジン。 |
| content | String | はい | オリジンの IP アドレスまたはドメイン名。 |
| port | Integer | いいえ | オリジンのポート。 HTTPS オリジンフェッチの場合は 443、デフォルトは 80、またはカスタムポート番号を指定できます。 |
| 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 | Specified DomainName is malformed. | 不正なCDNドメイン形式 |
| 400 | MissingParameter | The input parameter cdnType that is mandatory for processing this request is not supplied. | |
| 400 | InvalidCdnType.Malformed | Specified CdnType is malformed. | |
| 400 | InvalidSources.Malformed | Specified Sources is malformed. | 不正な発信元サイトアドレス。 |
| 400 | InvalidSourceType.Malformed | Specified CdnType is malformed. | |
| 400 | InvalidSource.Priority.Malformed | The specified Source Priority is invalid. | |
| 400 | InvalidTypeAndContent.MissMatch | InvalidTypeAndContent.MissMatch | |
| 400 | InvalidScope.Malformed | Specified Scope is malformed. | |
| 400 | SourceIp.Exceed | The Certificate you provided is malformed | |
| 400 | InvalidCertificate | The Certificate you provided is malformed | |
| 400 | InvalidCertificate.TooLong | The Certificate you provided is over the max length | |
| 400 | InnerAddDomainDenied | Your account has not bind aoneId, can not add domain. | |
| 400 | CheckSourceHealthFailed | sources ip or source domain check health failed,please input right source. | |
| 400 | ExtensiveAndAllBothExist | Extensive domain and the domain begins with all. can not exist at the same time. | |
| 400 | CdnTypeNotSupportExtensiveDomain | Extensive domain not supported for this cdn type. | |
| 400 | ExtensiveAndSpecificDomainConflict | The number of wildcard domain names exceeds the limit. | |
| 400 | InvalidResourceGroupId.Malformed | Specified ResourceGroupId is malformed. | |
| 400 | DomainReserved | The root domain of your domain is reserved by another account. Submit a ticket to contact customer support. | |
| 400 | InvalidDomainNameLevel | Domain name suffixed with alicdn.com only support third level. | |
| 400 | InvalidTopLevelDomain.Malformed | Specified TopLevelDomain is malformed. | |
| 400 | TopLevelDomain.NotFound | TopLevelDomain is not exist. | |
| 400 | EntityNotExists.ResourceGroup | The resource group does not exist. | |
| 400 | EntityNotExist.ResourceGroup | The resource group does not exist. | |
| 400 | InvalidStatus.ResourceGroup | It is not allowed to do this operation because of the current status of resource-group. | |
| 400 | NotInternationRealIdentity | You need to do real name authentication when you use Chinese mainland resources. | |
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。