AddScdnDomain_安全加速 SCDN_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.

接口说明

说明
  • 创建加速域名之前,必须先开通 SCDN 服务。
    • 加速域名必须已完成备案。
    • 源站内容如果不在阿里云平台上,需要审核,审核工作会在下一工作日前完成。

    流控信息

    当前云产品API请求速率暂未透出。

    授权信息

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

    请求参数

    字段名称字段详情
    DomainNamestring

    接入 CDN 的加速域名。支持泛域名,以点号(.)开头。

    示例值:example.com参考取值来源:
      BatchSetScdnDomainConfigs
      DescribeScdnDomainBpsData
    ResourceGroupIdstring

    资源组 ID。不传该参数时,自动补全为默认资源组 ID。

    示例值:rg-acfmyuji4b6r4**
    Sourcesstring

    回源地址列表。

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

    健康检测 URL。

    示例值:www.yourdomain.com/test.html
    Scopestring

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

    示例值:overseas

    请求说明

    Sources 各字段含义如下所示。

    参数类型描述
    typeString源站类型。取值:
    paddr:IP 源站。
    domain:域名源站。
    oss:OSS Bucket 为源站。
    contentString回源地址,可以是 IP 或域名。
    portInteger端口。取值:
    80:默认值。
    443:HTTPS 回源。
    自定义端口。
    priorityString源站地址对应的优先级。取值:
    20(默认值):主源。
    30:备源。
    weightString回源权重,100 以内,默认 10。

    返回参数

    字段名称字段详情
    RequestIdstring

    请求 ID。

    示例值:15C66C7B-671A-4297-9187-2C4477247A74

    返回示例

    错误码

    全局错误码
    HTTP 状态码错误码错误信息操作
    400
    InvalidDomainName.Malformed
    Specified DomainName is malformed.诊断
    400
    InvalidSource.Content.Malformed
    Specified source content is malformed.诊断
    400
    InvalidTypeContent.Mismatch
    Specified source type does not math the specified source content.诊断
    400
    MissingSource.Content
    Specified source content is mandatory for this action.诊断
    400
    MissingSource.Type
    Specified source type is mandatory for this action.诊断
    400
    InvalidSource.Type.Malformed
    Specified source type is malformed.诊断
    400
    InvalidSource.Priority.Malformed
    Specified source priority is malformed.诊断
    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 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
    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
    EntityNotExists.ResourceGroup
    The resource group does not exist.诊断
    400
    EntityNotExist.ResourceGroup
    The resource group does not exist.诊断
    400
    TopLevelDomain.Mismatch
    The specified TopLevelDomain does not match webSiteType.诊断
    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.诊断

    变更历史

    暂无变更历史

    相关示例