AddVodDomain - 添加加速域名

更新时间:
复制 MD 格式

调用本接口添加点播加速域名。

接口说明

  • 目前服务地址仅支持:华东 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:全球加速。

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. 域名验证失败。

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情