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

时间:2024-12-18 11:54:45

响应示例

状态码: 200

请求已成功

{
  "total_count" : 1,
  "resources" : [ {
    "resource_id" : "806064a8-7478-4657-a8b0-2edc90621235"
  }, {
    "resource_name" : "test"
  }, {
    "resource_detail" : [ {
      "ca_id" : "806064a8-7478-4657-a8b0-2edc90621235",
      "create_time" : 1681436805000,
      "delete_time" : null,
      "crl_configuration" : {
        "enabled" : false,
        "obs_bucket_name" : null,
        "valid_days" : null,
        "crl_name" : null,
        "crl_dis_point" : null
      },
      "distinguished_name" : {
        "country" : "CN",
        "state" : "guangdong",
        "locality" : "shenzhen",
        "organization" : "TestA",
        "organizational_unit" : "IT",
        "common_name" : "TestA IT Root CA"
      },
      "enc_cert_info" : null,
      "enterprise_project_id" : "57d71362-6a1a-4f51-8fa9-693bc3c07f43",
      "freeze_flag" : 0,
      "gen_mode" : "GENERATE",
      "issuer_id" : null,
      "issuer_name" : null,
      "key_algorithm" : "SM2",
      "not_before" : 1681436805000,
      "not_after" : 1713059205000,
      "path_length" : 7,
      "serial_number" : "202203070322544291829058",
      "signature_algorithm" : "SM3",
      "status" : "ACTIVED",
      "type" : "ROOT"
    } ]
  }, {
    "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/ListCaResourceInstances.html