获取证书列表
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Keyword |
string |
否 |
模糊查询,匹配域名、名称和对应的资源 ID。 |
test |
| InstanceId |
string |
否 |
实例的 ID。 |
cas-ivauto-hqito6 |
| CertificateStatus |
string |
否 |
证书的状态
|
issued |
| CertificateSource |
string |
否 |
证书来源。
|
BUY |
| ResourceGroupId |
string |
否 |
资源组 id。 |
rg-aek****wia |
| ShowSize |
integer |
否 |
分页数据,默认为 10,最大为 100。 |
10 |
| CurrentPage |
integer |
否 |
当前页的页码。 |
1 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。 |
CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D |
| TotalCount |
integer |
总记录数。 |
10 |
| ShowSize |
integer |
分页数据。 |
10 |
| CurrentPage |
integer |
分页。当前页,默认 1。 |
1 |
| CertificateList |
array<object> |
证书显示列表。 |
|
|
object |
证书信息。 |
||
| InstanceId |
string |
证书实例 ID。 |
cas-cn-v*** |
| Algorithm |
string |
证书的加密算法类型。取值:
|
RSA |
| CertificateStatus |
string |
证书的状态
|
issued |
| Domain |
string |
证书绑定的域名,多个域名逗号分隔。 |
test.com |
| CertificateId |
string |
证书 ID。 |
17281539 |
| CertificateName |
string |
证书名称。 |
test |
| CertIdentifier |
string |
全局证书 ID,格式为证书 Id + "-" + 站点 regionId,常用在阿里云各个云产品中。
例如证书 Id = 123,则国内站 CertIdentifier = “123-cn-hangzhou”,国际站 CertIdentifier = "123-ap-southeast-1"。 |
21589515-cn-hangzhou |
| CommonName |
string |
证书通用名称。 |
aliyun.com |
| SubjectAlternativeNames |
array |
数组格式,返回证书的备用域名列表,对应证书的 |
|
|
string |
证书的备用域名。 |
test.com |
|
| CertificateSource |
string |
证书来源。
|
BUY |
| NotBefore |
integer |
证书有效期的开始时间。 |
1760745600000 |
| NotAfter |
integer |
证书有效期的截止时间。 |
1749580567000 |
| KeySize |
integer |
密钥算法长度。
|
2048 |
| FingerPrint |
string |
公钥指纹。 |
123 |
| Serial |
string |
证书序列号。 |
123 |
| Issuer |
string |
证书颁发机构。 |
DigiCert |
| ExistPrivateKey |
boolean |
证书是否存在私钥。取值:
|
true |
| UsingProductList |
array |
当前证书正在部署的云产品列表。 |
|
|
string |
云产品。 |
CDN |
示例
正常返回示例
JSON格式
{
"RequestId": "CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D",
"TotalCount": 10,
"ShowSize": 10,
"CurrentPage": 1,
"CertificateList": [
{
"InstanceId": " cas-cn-v***",
"Algorithm": "RSA",
"CertificateStatus": "issued",
"Domain": "test.com",
"CertificateId": "17281539",
"CertificateName": "test",
"CertIdentifier": "21589515-cn-hangzhou",
"CommonName": "aliyun.com",
"SubjectAlternativeNames": [
"test.com"
],
"CertificateSource": "BUY",
"NotBefore": 1760745600000,
"NotAfter": 1749580567000,
"KeySize": 2048,
"FingerPrint": "123",
"Serial": "123",
"Issuer": "DigiCert",
"ExistPrivateKey": true,
"UsingProductList": [
"CDN"
]
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。