调用DescribeCertificateInfoByID按照证书ID查询指定证书信息。
接口说明
单用户调用频率:100 次/秒。
域名绑定证书后,但证书未启用时,通过该接口查询会提示证书不存在。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
cdn:DescribeCertificateInfoByID |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| CertId |
string |
是 |
证书 ID,仅支持查询单个。 |
1644xx |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
5C1E43DC-9E51-4771-82C0-7D5ECEB547A1 |
| CertInfos |
object |
||
| CertInfo |
array<object> |
证书信息列表。 |
|
|
object |
|||
| CertExpireTime |
string |
证书过期时间。 |
2098-02-08 08:02:07 +0000 UTC |
| CreateTime |
string |
证书开始时间。 |
2015-12-21 08:02:07 +0000 UTC |
| CertType |
string |
证书类型。
|
cas |
| CertName |
string |
证书名称。 |
example_cert |
| CertId |
string |
证书 ID。 |
1644xx |
| DomainList |
string |
使用此证书的域名列表。 |
["example.com"] |
| HttpsCrt |
string |
证书内容。 |
-----BEGIN CERTIFICATE-----\nxxx-----END CERTIFICATE-----\n |
示例
正常返回示例
JSON格式
{
"RequestId": "5C1E43DC-9E51-4771-82C0-7D5ECEB547A1",
"CertInfos": {
"CertInfo": [
{
"CertExpireTime": "2098-02-08 08:02:07 +0000 UTC",
"CreateTime": "2015-12-21 08:02:07 +0000 UTC",
"CertType": "cas",
"CertName": "example_cert",
"CertId": "1644xx",
"DomainList": "[\"example.com\"]",
"HttpsCrt": "-----BEGIN CERTIFICATE-----\\nxxx-----END CERTIFICATE-----\\n"
}
]
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | CertNotExisted | The Cert doesn't exist. | |
| 403 | SignatureDoesNotMatch | The signature we calculated does not match the one you provided. Please refer to the API reference about authentication for details. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。