Updated on 2023-08-02 GMT+08:00

Deleting an AK/SK

Function

This API is used to delete an AK/SK.

URI

DELETE /v1/apm2/access-keys/{ak}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

ak

Yes

String

AK to be deleted.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token obtained from IAM.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

ak

String

AK to be created or deleted.

sk

String

SK to be created or deleted.

Example Requests

Delete AK/SK 6.

/v1/apm2/access-keys/6

Example Responses

Status code: 200

OK: The request is successful.

{
  "ak" : "vca******04j",
  "sk" : "ktns******6iq6t9m"
}

Status Codes

Status Code

Description

200

OK: The request is successful.

401

Unauthorized: No permissions.

403

Forbidden: Access forbidden.

404

Not Found: The requested resource is not found.

Error Codes

See Error Codes.