全部產品
Search
文件中心

ApsaraVideo VOD:AddVodDomain - 添加加速網域名稱

更新時間:Dec 15, 2025

調用本介面添加點播加速網域名稱。

介面說明

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

  • 建立加速網域名稱之前,您需要先開通點播服務,並且加速網域名稱必須已備案完成。

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

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

調試

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

調試

授權資訊

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

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

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

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

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

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

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

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

操作

存取層級

資源類型

條件關鍵字

關聯操作

vod:AddVodDomain

create

*全部資源

*

請求參數

名稱

類型

必填

描述

樣本值

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:Global Acceleration。

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. 網域名稱驗證失敗。

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

變更歷史

更多資訊,參考變更詳情