proposalbot 2020a02cbb Changes to wafd_api-ref from docs/doc-exports#471 (waf dedicated API 01
waf ded

Reviewed-by: Belejkanic, Lukas <lukas.belejkanic@t-systems.com>
Co-authored-by: proposalbot <proposalbot@otc-service.com>
Co-committed-by: proposalbot <proposalbot@otc-service.com>
2022-12-08 11:52:42 +00:00

5.0 KiB

original_name

DeleteCertificate.html

Deleting a Certificate

Function

This API is used to delete a certificate.

URI

DELETE /v1/{project_id}/waf/certificate/{certificate_id}

Table 1 Path Parameters
Parameter Mandatory Type Description
project_id Yes String Project ID
certificate_id Yes String HTTPS certificate ID. It can be obtained by calling the 2.3.1 Querying the Certificate List API.

Request Parameters

Table 2 Request header parameters
Parameter Mandatory Type Description
X-Auth-Token Yes String User token. It can be obtained by calling the IAM API (value of X-Subject-Token in the response header).
Content-Type No String

Content type. Default value: application/json;charset=utf8

Default: application/json;charset=utf8

Response Parameters

Status code: 200

Table 3 Response body parameters
Parameter Type Description
id String Certificate ID
name String Certificate name
expire_time Long Timestamp when the certificate expires
timestamp Long Timestamp when the certificate is uploaded

Status code: 400

Table 4 Response body parameters
Parameter Type Description
error_code String Error code
error_msg String Error message

Status code: 401

Table 5 Response body parameters
Parameter Type Description
error_code String Error code
error_msg String Error message

Status code: 500

Table 6 Response body parameters
Parameter Type Description
error_code String Error code
error_msg String Error message

Example Requests

DELETE https://{Endpoint}/v1/{project_id}/waf/certificate/{certificate_id}?

Example Responses

Status code: 200

Request succeeded.

{
  "id" : "e1d87ba2d88d4ee4a3b0c829e935e5e0",
  "name" : "certificatename29556",
  "timestamp" : 1650594410630,
  "expire_time" : 1596865564000
}

Status Codes

Status Code Description
200 Request succeeded.
400 Request failed.
401 The token does not have required permissions.
500 Internal server error.

Error Codes

See Error Codes <errorcode>.