BatchAddCdnDomain_内容分发_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

  • 添加加速域名之前,必须先开通 CDN 服务。具体操作,请参见开通 CDN 服务
  • 如果加速区域选择的是仅中国内地或者全球,则加速域名必须已完成备案。
  • 支持批量查询域名,多个域名用半角逗号(,)分隔,一次最多支持 50 个域名查询。
  • 其他配置相关的详细说明,具体请参见添加加速域名
  • 单用户调用频率:30 次/秒。

流控信息

请求速率为5/1(s)。更多流控信息,请前往配额中心查看

授权信息

当前云产品暂无权限信息透出。

请求参数

字段名称字段详情
CdnTypestring

加速域名的业务类型。取值:展开详情

示例值:web参考取值来源:
    DescribeCdnTypes
DomainNamestring

需要接入 CDN 的加速域名,多个域名用英文逗号(,)分隔。

示例值:example.com,aliyundoc.com参考取值来源:
    AddCdnDomain
    DescribeDomainBpsData
    BatchSetCdnDomainConfig
    SetCdnDomainStagingConfig
    ListRealtimeLogDeliveryDomains
ResourceGroupIdstring

资源组 ID,不传时,自动补全默认资源组 ID。

示例值:rg-acfmyuji4b6r4**
Sourcesstring

回源地址列表。

示例值:[ { "content": "192.0.2.0", "type": "ipaddr", "priority": "20", "port": 80, "weight": "15" } ]
CheckUrlstring

检测 URL。

示例值:url
Scopestring

加速区域。取值:展开详情

示例值:domestic
TopLevelDomainstring

顶级接入域。

示例值:example.com

请求说明

Sources 各字段含义如下所示。

参数类型是否必选描述
typeString源站类型。
ipaddr:IP 源站。
domain:域名源站。
oss:OSS Bucket 为源站。
fc_domain:函数计算源站。
contentString回源地址,可以是 IP 或域名。
portInteger端口,可以指定 443、80(默认值),也可以自定义端口。443 是 HTTPS 协议回源。
priorityString源站地址对应的优先级,支持 20(默认值)和 30。20 是主源,30 是备源。
weightString回源权重,100 以内,默认值为 10。

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:15C66C7B-671A-4297-9187-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
InvalidSourceType.Malformed
Specified CdnType is malformed.诊断
400
InvalidSource.Priority.Malformed
The specified Source Priority is invalid.诊断
400
InvalidTypeAndContent.MissMatch
InvalidTypeAndContent.MissMatch诊断
400
InvalidScope.Malformed
Specified Scope is malformed.诊断
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 has not 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
The number of wildcard domain names exceeds the limit.诊断
400
InvalidResourceGroupId.Malformed
Specified ResourceGroupId is malformed.诊断
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
TopLevelDomain is not exist.诊断
400
EntityNotExists.ResourceGroup
The resource group does not exist.诊断
400
EntityNotExist.ResourceGroup
The resource group does not exist.诊断
400
InvalidStatus.ResourceGroup
It is not 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
RecordCheckNotAvailable
The ICP filing interface is unavailable. Please try again later.诊断
400
IcpBlack
The domain is on the ICP blacklist.诊断
400
IspBlack
The domain is on the ISP blacklist.诊断
400
DomainOwnerVerifyFail
Owner verification of the root domain failed.诊断
400
TopLevelDomain.Mismatch
The specified TopLevelDomain does not match webSiteType.诊断
400
DomainOverLimit
The maximum number of domains is exceeded.诊断
400
DomainInRiskList
The domain you added may be at risk. If you have any questions, please submit a ticket.诊断

变更历史

变更时间变更内容概要操作
2024-09-03
变更错误码400
2023-01-04
变更错误码400
新增返回参数
2022-11-15
变更错误码400

相关示例

添加/删除加速域名示例
2021-11-22
2024年08月20日