Updated on 2022-08-09 GMT+08:00

Deleting a Certificate

Function

This API is used to delete a certificate, that is, delete a certificate from HUAWEI CLOUD.

This API will be discarded. You are advised to delete a certificate by referring to Deleting a Certificate.

URI

  • URI format

    DELETE /v2/{project_id}/scm/cert/{cert_id}

  • Parameter description

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Project ID.

    cert_id

    Yes

    String

    Certificate ID.

Request

Request parameters

None

Response

Response parameters

Parameter

Mandatory

Type

Description

message

Yes

String

Request result.

Example

  • Example request

    None

  • Example response
    { 
        "message": "success"
    }

    or

    { 
       "error_code": "SCM.XXXX",  
       "error_msg": "XXXX"   
     }

Status Codes

Table 1 lists the normal status code returned by the API.
Table 1 Status code

Status Code

Status

Description

200

OK

Request processed successfully.

For details about error codes, see Error Codes