调用本接口获取已签发的私有证书的列表。
pca.volcengineapi.compca.volcengine-api.com下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
|---|---|---|---|---|
Action | String | 是 | ListLeafInstances | 要执行的操作,取值:ListLeafInstances。 |
Version | String | 是 | 2025-10-01 | API的版本,取值:2025-10-01。 |
参数 | 类型 | 是否必填 | 示例值 | 描述 |
|---|---|---|---|---|
CommonName | String | 否 | www.example.com | 指定一个公用名(对应证书中的CN字段)对私有证书进行筛选。 |
InstanceStatus | Integer | 否 | 1 | 指定一个实例状态对私有证书进行筛选。该参数有以下取值:
|
SourceType | String | 否 | 0 | 指定一个来源类型对根CA证书进行筛选。该参数有以下取值:
|
PageNumber | Integer | 否 | 1 | 请求的页码。 |
PageSize | Integer | 否 | 1 | 查询结果中每页的根CA数量。取值范围:1~20。 |
TagFilters | Array of Object | 否 | - | 标签筛选器。 |
IssuedId | String | 否 | pca_sub_MlRaK**** | 指定上一级CA实例(子CA实例)的ID对私有证书进行筛选。 |
InstanceId | String | 否 | pca_leaf_M6gaihuZRcO**** | 指定一个实例ID对私有证书进行筛选。 |
ProjectName | String | 否 | default | 私有证书所属项目组。 |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
PageNumber | Integer | 1 | 返回的页码。 |
PageSize | Integer | 1 | 返回结果中每页的私有证书数量。 |
Count | Integer | 1 | 符合查询条件的私有证书的数量。 |
Result | Array of Object | - | 私有证书列表。 |
POST /?Action=ListLeafInstances&Version=2025-10-01 HTTP/1.1 Host: pca.volcengineapi.com Content-Type: application/json; charset=UTF-8 X-Date: 20251029T080412Z X-Content-Sha256: 287e874e******d653b44d21e Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251029/cn-beijing/pca/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f { "CommonName": "noxJ3vmNn", "InstanceStatus": 209, "SourceType": "5Qtn1LpHP", "PageNumber": 969, "PageSize": 737, "TagFilters": [ { "Key": "ejhrrwgC", "Values": [ "yEAHCbnd" ] } ], "IssuedId": "sub-1234", "InstanceId": "leaf-1234", "ProjectName": "default" }
{ "ResponseMetadata": { "RequestId": "202510291604182030391601949189E9", "Action": "ListLeafInstances", "Version": "2025-10-01", "Service": "pca", "Region": "cn-beijing" }, "Result": { "PageNumber": 537, "PageSize": 914, "Count": 824, "Result": [ { "InstanceId": "F", "IssuedId": "gAnCd", "IssuedCommonName": "LEC", "InstanceStatus": 107, "CommonName": "FEnyQASsNS", "Tag": "vgFYhXT1", "SignatureAlgorithm": "hm", "Duration": "c817B", "SerialNumber": "MmcZW", "NotAfter": 830, "NotBefore": 963, "CreateAt": "ln4oP", "Contact": { "Name": "yvMhCcvBhj", "Email": "W", "PhoneNumber": "Ql" }, "Subject": { "Country": [ "CN" ], "Organization": [ "Volcano\n" ], "OrganizationalUnit": [ "ti" ], "Locality": [ "北京" ], "Province": [ "0M6q" ], "StreetAddress": [ "37Ax" ], "PostalCode": [ "bEC" ], "SerialNumber": "C", "CommonName": "HfvzKNu" }, "EncryptionAlgorithm": "Pu4vwAqDJ", "SourceType": 388, "Plan": "xfwPSQ", "HasPrivateKey": true, "Tags": [ { "Key": "7m5tgu", "Value": "vB7" } ], "ProjectName": "aAk", "DeployInfo": { "DeploySummary": [ { "ServiceName": "5Z2suKATJ", "ResourceCount": 332 } ] } } ] } }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码 | 错误码 | 说明 |
|---|---|---|
200 | InternalError | 未知错误。 |
200 | InvalidParameter | 指定的参数值无效。 |
200 | MalformedRequest | 请求参数格式不合法。 |