全部產品
Search
文件中心

ApsaraVideo VOD:AddVodDomain

更新時間:Jul 21, 2026

呼叫此介面新增隨選視訊加速網域。

介面說明

  • 目前服務地址僅支援:華東 2(上海)

  • 建立加速網域之前,您需要先開通隨選視訊服務,並且加速網域必須已完成備案。

  • 源站內容。如果不在阿里雲平台上,需要審核,審核工作會在下一個工作日前完成。

  • 每次只能提交一個加速網域,一個使用者最多新增 20 個網域。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

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

國際使用者、中國內地 L3 及以上使用者設定有效。取值範圍:

  • domestic(預設):中國大陸。

  • overseas:港澳台及海外。

  • global:全球加速。

domestic

TopLevelDomain

string

頂級接入網域。

example.com

Sources

名稱類型是否必需描述
typeString源站類型。取值:
ipaddr:IP 源站。
domain:網域源站。
oss:OSS Bucket 為源站。







contentString回源地址,可以是 IP 或網域。
portInteger連接埠號碼。可以指定 44380。預設值 80443 連接埠使用 HTTPS 回源。也可以自訂連接埠。
priorityString源站地址對應的優先順序。支援 2030,預設值為 2020 是主源,30 是備源。

返回參數

名稱

類型

描述

樣本值

object

RequestId

string

請求 ID。

15C66C7B-671A-4297-****-2C4477247A74

樣本

正常返回樣本

JSON格式

{
  "RequestId": "15C66C7B-671A-4297-****-2C4477247A74"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

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.

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情