查询CA证书列表 - ListCerts
功能介绍
查询CA证书列表。
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。
授权信息
账号具备所有API的调用权限,如果使用账号下的IAM用户调用当前API,该IAM用户需具备调用API所需的权限。
- 如果使用角色与策略授权,具体权限要求请参见权限和授权项。
- 如果使用身份策略授权,当前API调用无需身份策略权限。
URI
GET /v2/{project_id}/certmanager/private-certificate-authorities
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
project_id | 是 | String | 项目ID。 |
请求参数
无
响应参数
状态码:200
参数 | 参数类型 | 描述 |
|---|---|---|
cert_list | Array of CertItem objects | 证书列表。 |
参数 | 参数类型 | 描述 |
|---|---|---|
tenant_id | String | 租户id。 |
cert_id | String | 证书id。 |
common_name | String | 证书名。 |
type | String | 证书类型ROOT, SUBORDINATE。 |
status | String | 证书状态 DISABLE,ENABLE,EXPIRED,DELETE。 |
key_algorithm | String | 密钥生成算法 RSA-2048,RSA-3072。 |
signature_algorithm | String | 签名哈希算法。 |
apply | String | 应用场景。 |
not_before | String | 生效时间。 |
not_after | String | 过期时间。 |
状态码:400
参数 | 参数类型 | 描述 |
|---|---|---|
error_code | String | 错误码。 |
error_msg | String | 错误描述。 |
error_detail | String | 错误详情。 |
encoded_authorization_message | String | 加密后的详细拒绝原因,用户可以自行调用STS服务的decode-authorization-message接口进行解密。 |
状态码:401
参数 | 参数类型 | 描述 |
|---|---|---|
error_code | String | 错误码。 |
error_msg | String | 错误描述。 |
error_detail | String | 错误详情。 |
encoded_authorization_message | String | 加密后的详细拒绝原因,用户可以自行调用STS服务的decode-authorization-message接口进行解密。 |
状态码:403
参数 | 参数类型 | 描述 |
|---|---|---|
error_code | String | 错误码。 |
error_msg | String | 错误描述。 |
error_detail | String | 错误详情。 |
encoded_authorization_message | String | 加密后的详细拒绝原因,用户可以自行调用STS服务的decode-authorization-message接口进行解密。 |
状态码:404
参数 | 参数类型 | 描述 |
|---|---|---|
error_code | String | 错误码。 |
error_msg | String | 错误描述。 |
error_detail | String | 错误详情。 |
encoded_authorization_message | String | 加密后的详细拒绝原因,用户可以自行调用STS服务的decode-authorization-message接口进行解密。 |
状态码:500
参数 | 参数类型 | 描述 |
|---|---|---|
error_code | String | 错误码。 |
error_msg | String | 错误描述。 |
error_detail | String | 错误详情。 |
encoded_authorization_message | String | 加密后的详细拒绝原因,用户可以自行调用STS服务的decode-authorization-message接口进行解密。 |
请求示例
无
响应示例
状态码:200
success
{
"cert_list" : [ {
"tenant_id" : "0e1bf150b98090672f86c0054d25ce9b",
"cert_id" : "f8bc69a2c3284a19ad647df12741f09c",
"common_name" : "api_test",
"type" : "ROOT",
"status" : "ENABLE",
"key_algorithm" : "RSA-2048",
"signature_algorithm" : "SHA-256",
"apply" : "应用场景",
"not_before" : "2024-08-01 00:00:00",
"not_after" : "2025-08-01 00:00:00"
} ]
} 状态码
状态码 | 描述 |
|---|---|
200 | success |
400 | 由于包含语法错误,当前请求无法被服务器理解。 |
401 | 鉴权失败。 |
403 | 没有操作权限。 |
404 | 找不到资源。 |
500 | 服务内部错误,具体返回错误码请参见错误码说明。 |
错误码
请参见错误码。

