云证书管理服务 CCM-根据标签查询证书列表:响应示例

时间:2023-11-01 16:19:00

响应示例

状态码: 200

请求已成功

{  "total_count" : 1,  "resources" : [ {    "resource_id" : "61e1f947-8794-4574-82bd-14fd0cd3af67"  }, {    "resource_name" : "test"  }, {    "resource_detail" : [ {      "certificate_id" : "61e1f947-8794-4574-82bd-14fd0cd3af67",      "create_time" : 1681436805000,      "delete_time" : null,      "distinguished_name" : {        "country" : "CN",        "state" : "guangdong",        "locality" : "shenzhen",        "organization" : "Huawei",        "organizational_unit" : "IT",        "common_name" : "Huawei IT Root CA"      },      "enc_cert_info" : null,      "enterprise_project_id" : "0",      "freeze_flag" : 0,      "gen_mode" : "GENERATE",      "issuer_id" : "93fcdaf2-c094-4f39-9cbc-bcacd0baac48",      "issuer_name" : "test",      "key_algorithm" : "RSA2048",      "not_before" : 1681436805000,      "not_after" : 1713059205000,      "path_length" : 7,      "serial_number" : "202203070322544291829058",      "signature_algorithm" : "SHA256",      "status" : "ISSUED"    } ]  }, {    "tags" : [ {      "key" : "key1",      "value" : "value1"    } ]  } ]}

状态码: 400

请求参数有误。

{  "error_code" : "PCA.XXX",  "error_msg" : "XXX"}

状态码: 401

被请求的页面需要鉴权。

{  "error_code" : "PCA.XXX",  "error_msg" : "XXX"}

状态码: 403

认证失败。

{  "error_code" : "PCA.XXX",  "error_msg" : "XXX"}

状态码: 404

资源不存在或资源未找到。

{  "error_code" : "PCA.XXX",  "error_msg" : "XXX"}

状态码: 500

服务内部错误。

{  "error_code" : "PCA.XXX",  "error_msg" : "XXX"}
support.huaweicloud.com/api-ccm/ListCertResourceInstances.html