298
群英
设置证书__配置操作接口_API 手册_CDN-阿里云
SetDomainServerCertificate
描述
该接口用于设置某域名下证书功能是否启用及 修改证书信息
名称 | 类型 | 必须? | 描述 |
---|---|---|---|
Action | String | 是 | 操作接口名,系统规定参数。取值:SetDomainServerCertificate |
DomainName | String | 是 | 指定证书所属加速域名 需属于https加速类型 |
ServerCertificateStatus | String | 是 | HTTPS证书是否启用,取值on:启用;off:不启用,默认取值:off:不启用 |
ServerCertificate | String | 否 | 安全证书内容,不启用证书则无需输入,配置证书请输入证书内容。 |
PrivateKey | String | 否 | 私钥内容,不启用证书则无需输入,配置证书请输入私钥内容。 |
返回参数
名称 | 类型 | 描述 |
---|---|---|
RequestID | String | 公共返回参数 |
特殊错误码 (公共错误码)
ErrorCode 错误码 | Message 错误信息 | HTTP 状态 | 语义 |
---|---|---|---|
InvalidDomain.NotFound | The domain provided does not belong to you. | 404 | 域名不存在或不属于当前用户 |
IllegalOperation | Illegal domain operate is not permitted. | 403 | 没有权限执行当前操作 |
ServiceBusy | The specified Domain is configuring, please retry later. | 403 | 域名正在配置中, 请稍后再试 |
InvalidDomain.Offline | The domain provided is offline. | 400 | 域名已下线 |
OperationDenied | Your CDN service is suspended. | 403 | 该账号已经欠费,请充值; |
InvalidServerCertificateStatus.ValueNotSupported | The specified value of parameter Enable is not supported. | 400 | ServerCertificateStatus的值不合法 |
ServerCertificate.MissingParameter | An input parameter ServerCertificate that is mandatory for processing the request is not supplied. | 400 | ServerCertificate参数缺失 |
PrivateKey.MissingParameter | An input parameter PrivateKey that is mandatory for processing the request is not supplied. | 400 | PrivateKey参数却是 |
InvalidCertificate | The Certificate you provided is malformed! | 400 | 证书内容不合法 |
InvalidPrivateKey | The Private Key you provided is malformed! | 400 | 私钥内容不合法 |
Certificate.MissMatch | The Private Key does not math the specified Certificate! | 400 | 证书和私钥不匹配 |
InvalidCertificate.TooLong | The Certificate you provided is over the max length! | 400 | 证书内容超过长度限制 |
InvalidCertName.TooLong | The Certificate name you provided is over the max length 128! | 400 | 证书名称不能超过128个字符. |
SetDomainServerCertificate.ParameterError | Parameters have error. | 400 | 参数错误 |
Certificate.StatusError | Certificate is not exist or its status is error. | 400 | 证书不存在或证书状态错误 |
DeleteFailed | Delete certificate is failed. | 400 | 删除证书失败 |
Certificate.NotFind | Not find the certificate info. | 400 | 没有查到相应证书 |
Certificate.Duplicated | The certificate name is duplicated. | 400 | 证书名称重复 |
Certificate.FormatError | The certificate format is error. | 400 | 证书格式错误 |
Certificate.StatusError | The certificate status is error. | 400 | 证书状态错误 |
Certificate.KeyNull | The private key is not null. | 400 | 私钥不能为空 |
Key.Malformed | The private key format is error. | 400 | 私钥格式错误 |
示例
请求示例:
https://cdn.aliyuncs.com?Action=SetDomainServerCertificate&DomainName=test.com&ServerCertificateStatus=on&ServerCertificate=xxx&PrivateKey=yyy&<公共请求参数>
返回示例
JSON格式:
{
"RequestId": "0AEDAF20-4DDF-4165-8750-47FF9C1929C9"
}
XML格式:
<SetDomainServerCertificateResponse>
<RequestId>8436769A-55D0-4DF8-BBA7-0DBC156D7AAF</RequestId>
</SetDomainServerCertificateResponse>
最后更新:2016-12-19 14:38:11
上一篇:
设置CC防护__配置操作接口_API 手册_CDN-阿里云
下一篇:
查询网络带宽__资源监控接口_API 手册_CDN-阿里云
金融云服务器访问外网的条件__常见问题_专有网络 VPC-阿里云
表详情页介绍__数据管理手册_用户操作指南_大数据开发套件-阿里云
Spark + HBase__Spark_开发人员指南_E-MapReduce-阿里云
淘宝性能测试教程__淘宝性能测试课程_性能测试视频教程_性能测试-阿里云
阿里云付费用户破100万;腾讯人均薪酬40万;李强调研世界物联网博览会筹备
InstanceMetrics__数据类型_API文档_批量计算-阿里云
报警配置__舆情分析_快速开始_公众趋势分析-阿里云
ColumnUpdate__DataType_API 参考_表格存储-阿里云
中毒导致 SSH 服务运行异常,出现如下错误:fatal: mm_request_send: write: Broken pipe__远程登录 (SSH)_Linux操作运维问题_云服务器 ECS-阿里云
使用已经搭建好的应用服务器__安卓应用示例_最佳实践_对象存储 OSS-阿里云
相关内容
常见错误说明__附录_大数据计算服务-阿里云
发送短信接口__API使用手册_短信服务-阿里云
接口文档__Android_安全组件教程_移动安全-阿里云
运营商错误码(联通)__常见问题_短信服务-阿里云
设置短信模板__使用手册_短信服务-阿里云
OSS 权限问题及排查__常见错误及排除_最佳实践_对象存储 OSS-阿里云
消息通知__操作指南_批量计算-阿里云
设备端快速接入(MQTT)__快速开始_阿里云物联网套件-阿里云
查询API调用流量数据__API管理相关接口_API_API 网关-阿里云
使用STS访问__JavaScript-SDK_SDK 参考_对象存储 OSS-阿里云