ApsaraVideo VOD の加速ドメイン名を追加します。
操作説明
現在、サービスエンドポイントは 中国 (上海) のみをサポートしています。
加速ドメイン名を作成する前に、ApsaraVideo VOD を有効化し、加速ドメイン名の ICP 登録を完了する必要があります。
新しいドメイン名を初めて追加する場合は、ドメイン名の所有権を確認する必要があります。DNS レコードを使用して所有権を確認するには、DescribeVodVerifyContent 操作を呼び出して Record 値を取得し、ドメイン名の DNS 設定に TXT レコードを追加して、DNS レコードの効果が現れるまで待ちます。その後、この操作を呼び出してドメイン名を追加します。検証フォーマットを使用して所有権を確認することもできます。詳細については、ドメイン名の所有権確認のドキュメントを参照してください。
オリジンサーバーのコンテンツ。コンテンツが Alibaba Cloud でホストされていない場合は、レビューを受ける必要があります。レビューは翌営業日までに完了します。
1 回の時間で送信できる加速ドメイン名は 1 つだけです。各ユーザーは最大 20 個のドメイン名を追加できます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
vod:AddVodDomain |
create |
*すべてのリソース。
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| DomainName |
string |
必須 |
ApsaraVideo VOD に追加する加速ドメイン名。ワイルドカードドメイン名がサポートされています。ワイルドカードドメイン名は期間 (.) で始まる必要があります (例: .example.com)。 |
example.com |
| Sources |
string |
必須 |
オリジンアドレスのリストのフォーマット。パラメーターの詳細については、以下の Sources テーブルを参照してください。 |
[{"content":"1.1.1.1","type":"ipaddr","priority":"20","port":80}] |
| CheckUrl |
string |
任意 |
ヘルスチェックの URL。 |
www.example.com/test.html |
| Scope |
string |
任意 |
加速リージョン。このパラメーターは、中国本土以外のユーザー、および中国本土のレベル 3 以上のユーザーに対して有効です。有効な値:
|
domestic |
| TopLevelDomain |
string |
任意 |
トップレベルドメイン名。 |
example.com |
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 の値はセカンダリオリジンサーバーを指定します。 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID。 |
15C66C7B-671A-4297-****-2C4477247A74 |
例
成功レスポンス
JSONJSON
{
"RequestId": "15C66C7B-671A-4297-****-2C4477247A74"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidDomainName.Malformed | Specified DomainName is malformed. | |
| 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 | InvalidSourceStr.Malformed | Specified SourceStr is malformed. | オリジンサーバー情報のフォーマットが無効です。 |
| 400 | InvalidSourceType.Malformed | Specified CdnType is malformed. | |
| 400 | InvalidSource.Priority.Malformed | The specified Source Priority is invalid. | |
| 400 | InvalidTypeAndContent.MissMatch | The specified source type does not match the specified source content. | |
| 400 | InvalidScope.Malformed | Specified Scope is malformed. | |
| 400 | DomainOverLimit | The Number of Domain is over the limit | |
| 400 | DomainAlreadyExist | This domain name is exist already | |
| 400 | DomainNotRegistration | The Domain name is not registered | |
| 400 | InvaildParameter | Source name can not equal to domain name | |
| 400 | IllegalSources | The specified origin site information is invalid. | 高速化ドメイン名のオリジンサーバー情報が無効です。 |
| 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 haven't 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 | Extensive domain and corresponding specific domain are mutually exclusive. | ワイルドカードドメイン名と同じレベルの正確なドメイン名は相互排他です。ドメイン名を再度追加してください。 |
| 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 | The specified TopLevelDomain does not exist. | |
| 400 | EntityNotExists.ResourceGroup | The resource group does not exist. | |
| 400 | InvalidStatus.ResourceGroup | It's now 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 | TopLevelDomain.Mismatch | The specified TopLevelDomain does not match webSiteType. | |
| 400 | DomainOwnerVerifyFail | Owner verification of the root domain failed. | ドメイン名の検証が失敗しました。 |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。