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

:AddVodDomain

最終更新日:Dec 15, 2025

ApsaraVideo VOD に高速化ドメイン名を追加します。

操作説明

  • この操作は、中国 (上海) リージョンでのみ利用できます。

  • 高速化ドメイン名を追加する前に、ApsaraVideo VOD を有効化し、ドメイン名のインターネットコンテンツプロバイダー (ICP) 申請を行う必要があります。 ApsaraVideo VOD の有効化方法の詳細については、「ApsaraVideo VOD の有効化」をご参照ください。

  • オリジンサーバーのコンテンツが Alibaba Cloud に保存されていない場合、そのコンテンツは Alibaba Cloud によるレビューを受ける必要があります。 レビューは、アプリケーションを送信した翌営業日の終わりまでに完了します。

  • 1 つのリクエストで追加できる高速化ドメイン名は 1 つだけです。 1 つの Alibaba Cloud アカウント内で最大 20 個の高速化ドメイン名を追加できます。

今すぐお試しください

この 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 ロールに付与する必要があります。

アクション

アクセスレベル

リソースタイプ

条件キー

依存アクション

vod:AddVodDomain

create

*All Resource

*

なし なし

リクエストパラメーター

パラメーター

必須 / 任意

説明

DomainName

string

必須

高速化するドメイン名。 ピリオド (.) で始まるワイルドカードドメイン名をサポートしています。 例:.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。 有効な値:

  • domestic:中国本土

  • overseas:中国本土以外

  • global:中国本土および中国本土以外のリージョン

domestic

TopLevelDomain

string

任意

トップレベルドメイン。

example.com

Sources

パラメーター必須説明
typeStringはいオリジンサーバーのタイプ。 有効な値:
ipaddr:IP アドレス。
domain:ドメイン名。
oss:Object Storage Service (OSS) バケットのドメイン。


contentStringはいオリジンサーバーのアドレス。 IP アドレスまたはドメイン名を指定できます。
portIntegerいいえポート番号。 有効な値:443 および 80。 デフォルト値:80443 を指定すると、リクエストは HTTPS 経由でオリジンサーバーにリダイレクトされます。 カスタムポートも指定できます。
priorityStringいいえ複数のオリジンサーバーが指定されている場合のオリジンサーバーの優先度。 有効な値:20 および 30。 デフォルト値:2020 はオリジンサーバーがプライマリオリジンサーバーであることを示します。 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.

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

変更履歴

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