ListCertificates - 证书列表

更新时间:
复制为 MD 格式

获取证书列表

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求参数

名称

类型

必填

描述

示例值

Keyword

string

模糊查询,匹配域名、名称和对应的资源 ID。

test

InstanceId

string

实例的 ID。

cas-ivauto-hqito6

CertificateStatus

string

证书的状态

  • issued:已签发

  • revoked:已吊销

  • willExpire:即将过期

  • expired:已过期

issued

CertificateSource

string

证书来源。

  • BUY 正式证书。

  • TEST 测试证书。

  • UPLOAD 上传证书。

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:表示 RSA 算法。

  • ECC:表示 ECC 算法。

  • SM2:表示 SM2(国密)算法。

RSA

CertificateStatus

string

证书的状态

  • issued:已签发

  • revoked:已吊销

  • willExpire:即将过期

  • expired:已过期

issued

Domain

string

证书绑定的域名,多个域名逗号分隔。

test.com

CertificateId

string

证书 ID。

17281539

CertificateName

string

证书名称。

test

CertIdentifier

string

全局证书 ID,格式为证书 Id + "-" + 站点 regionId,常用在阿里云各个云产品中。

  • 国内站为证书 Id + "-cn-hangzhou"

  • 国际站为证书 Id + "-ap-southeast-1"

例如证书 Id = 123,则国内站 CertIdentifier = “123-cn-hangzhou”,国际站 CertIdentifier = "123-ap-southeast-1"。

21589515-cn-hangzhou

CommonName

string

证书通用名称。

aliyun.com

SubjectAlternativeNames

array

数组格式,返回证书的备用域名列表,对应证书的Subject Alternative Name字段。

string

证书的备用域名。

test.com

CertificateSource

string

证书来源。

  • BUY 正式证书。

  • TEST 测试证书。

  • UPLOAD 上传证书。

BUY

NotBefore

integer

证书有效期的开始时间。

1760745600000

NotAfter

integer

证书有效期的截止时间。

1749580567000

KeySize

integer

密钥算法长度。

  • RSA 算法长度一般为 2048、3072、4096 等。

  • ECC 和 SM2 算法长度一般为 256。

2048

FingerPrint

string

公钥指纹。

123

Serial

string

证书序列号。

123

Issuer

string

证书颁发机构。

DigiCert

ExistPrivateKey

boolean

证书是否存在私钥。取值:

  • true

  • false

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"
      ]
    }
  ]
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情