nav-img
Advanced

Obtaining the AK/SK

Function

This API is used to obtain the created AK/SK.

URI

GET /v1/apm2/openapi/systemmng/get-ak-sk-list

Request Parameters

Table 1 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token obtained from IAM.

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

access_ak_sk_models

Array of AccessAkskVO objects

AK/SK data model.

Table 3 AccessAkskVO

Parameter

Type

Description

id

Integer

AK/SK ID.

gmt_create

String

Time when the AK/SK was generated.

gmt_modify

String

Time when the AK/SK was modified.

inner_domain_id

Integer

Internal tenant ID.

ak

String

Generated AK.

sk

String

Generated SK.

status

String

AK/SK status.

descp

String

AK/SK description.

gmt_create_timestamp

Integer

Timestamp when the AK/SK was generated.

gmt_modify_timestamp

Integer

Timestamp when the AK/SK was modified.

Example Requests

Obtain the created AK/SK list. No input parameter is required.

/v1/apm2/openapi/systemmng/get-ak-sk-list

Example Responses

Status code: 200

OK: The request is successful.

{
"access_ak_sk_models" : [ {
"ak" : "vca******04j",
"sk" : "ktns******6iq6t9m",
"status" : "enable",
"descp" : "auto create",
"id" : 1,
"gmt_create" : "2024-02-28 09:42:02",
"gmt_modify" : "2024-02-28 09:42:02",
"inner_domain_id" : 1,
"gmt_create_timestamp" : 1709084522000,
"gmt_modify_timestamp" : 1709084522000
} ]
}

Status Codes

Status Code

Description

200

OK: The request is successful.

400

Bad Request: Semantic or parameter error.

401

Unauthorized: No permissions.

403

Forbidden: Access forbidden.

404

Not Found: The requested resource is not found.

Error Codes