云证书管理服务 CCM-示例1:删除过期SSL证书:操作步骤

时间:2025-01-26 10:45:14

操作步骤

  1. 查询证书列表。

    • 接口相关信息

      URI格式:GET /v3/scm/certificates

      详情请参见查询证书列表

    • 请求示例

      GET: https://{endpoint}/v3/scm/certificates

      {endpoint}信息请从地区和终端节点获取。

      Body:

      {    "limit": "2",     "offset": "0"}
    • 响应示例
      {  "certificates" : [ {    "id" : "scs1554192131150",    "name" : "test",    "domain" : "www.zx.com",    "type" : "OV_SSL_CERT",    "brand" : "GEOTRUST",    "expire_time" : "2021-05-27 16:46:25.0",    "domain_type" : "MULTI_DOMAIN",    "validity_period" : 12,    "status" : "ISSUED",    "domain_count" : 2,    "wildcard_count" : 0,    "description" : null  } ],  "total_count" : 1}

  2. 删除证书。

    • 接口相关信息

      URI格式:DELETE /v3/scm/certificates/{certificate_id}

      详情请参见删除证书

    • 请求示例

      DELETE: https://{endpoint}/v3/scm/certificates/scs1554192131150

      {endpoint}信息请从地区和终端节点获取。

      Body:

      { certificate_id:scs1554192131150}
    • 响应示例
      { }
      {"error_code" : "SCM.XXX","error_msg" : "XXX"}

support.huaweicloud.com/api-ccm/ccm_02_0048.html