SetCdnDomainCSRCertificate_内容分发_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.

接口说明

说明 单用户调用频率:100 次/秒。

流控信息

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

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
cdn:SetCdnDomainCSRCertificate
Update
Domain
acs:cdn:*:{#accountId}:domain/{#DomainName}

请求参数

字段名称字段详情
ServerCertificatestring

证书内容。该证书必须是通过 CreateCdnCertificateSigningRequest 接口创建的 CSR 对应的签名证书,内部必须是 PEM 格式的证书,Base64 编码后再通过 encodeURIComponent。

示例值:----BEGIN CERTIFICATE----- MIIFz****-----END CERTIFICATE-----参考取值来源:
    DescribeDomainCertificateInfo
DomainNamestring

要设置的加速域名,需属于 HTTPS 加速类型。

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

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:0AEDAF20-4DDF-4165-8750-47FF9C1929C9

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
Certificate.MissingParameter
You must specify the Certificate parameter.诊断
400
Certificate.EncodeError
An error occurred while encoding the certificate.诊断
400
Certificate.DecodeError
An error occurred while decoding the certificate.诊断
400
Certificate.FormatError
The format of the certificate is invalid.诊断
400
Certificate.MissMatch
The certificate does not match the domain.诊断
400
Certificate.NoPrivateKey
The private key of the certificate does not exist.诊断
500
Internal.ForbidError
You cannot modify the configurations when some features of the domain are in a canary deployment.诊断
500
Internal.ConfigError
An error occurred while configuring the certificate.诊断

变更历史

暂无变更历史

相关示例

2021-12-17