Updated on 2023-12-14 GMT+08:00

Deleting a Certificate

Function

This API is used to delete a certificate from Huawei Cloud.

URI

DELETE /v3/scm/certificates/{certificate_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

certificate_id

Yes

String

Certificate ID

Minimum: 16

Maximum: 16

Request Parameters

None

Response Parameters

Status code: 401

Table 2 Response body parameters

Parameter

Type

Description

error_code

String

Error code returned for a request.

Minimum: 3

Maximum: 36

error_msg

String

Error message of an error code.

Minimum: 0

Maximum: 1024

Status code: 403

Table 3 Response body parameters

Parameter

Type

Description

error_code

String

Error code returned for a request.

Minimum: 3

Maximum: 36

error_msg

String

Error message of an error code.

Minimum: 0

Maximum: 1024

Status code: 500

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Error code returned for a request.

Minimum: 3

Maximum: 36

error_msg

String

Error message of an error code.

Minimum: 0

Maximum: 1024

Example Requests

None

Example Responses

Status code: 401

Verification failed.

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

Status code: 403

Access denied.

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

Status code: 500

Failed to respond the request due to an internal server error.

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

Status Codes

Status Code

Description

204

Normal response.

401

Verification failed.

403

Access denied.

404

Requested page not found.

500

Failed to respond the request due to an internal server error.

Error Codes

See Error Codes.