Help Center/ Cloud Container Engine/ API Reference/ Out-of-Date APIs/ Cluster Management/ Checking the AK/SK Status (To Be Discarded)
Updated on 2026-01-08 GMT+08:00

Checking the AK/SK Status (To Be Discarded)

Function

This API is used to check the AK/SK status.

Calling Method

For details, see Calling APIs.

Authorization

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see the required permissions in Permissions Policies and Supported Actions.
  • If you are using identity policy-based authorization, no identity policy-based permissions are required for calling this API.

URI

GET /api/v2/projects/{project_id}/longaksk

Table 1 URI parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition

Project ID. For details about how to obtain a project ID, see How to Obtain Parameters in the API URI.

Constraints

N/A

Range

The project ID of the account

Default Value

N/A

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

akskUpload

Boolean

Definition

Whether an AK/SK has been uploaded

Range

  • true: The AK/SK has been uploaded.

  • false: The AK/SK has not been uploaded.

expired

Boolean

Definition

Whether an AK/SK has expired

Range

  • true: The AK/SK has expired.

  • false: The AK/SK has not expired.

expiredTime

String

Definition

Remaining validity period of an AK/SK, in seconds

Range

Numeric string

expired_date

String

Definition

AK/SK expiration time

Range

UTC time string

create_time

String

Definition

Time when an AK/SK was created

Range

UTC time string

update_time

String

Definition

Time when an AK/SK was updated

Range

UTC time string

Example Requests

Obtain the AK/SK status.

GET /api/v2/projects/{project_id}/longaksk

{
  "akskUpload" : true,
  "expired" : false,
  "expiredTime" : "31469520",
  "expired_date" : "2026-12-07 09:02:00.147 +0000 UTC",
  "create_time" : "2025-04-18 07:56:03.551866 +0000 UTC",
  "update_time" : "2025-12-07 09:02:00.158785 +0000 UTC"
}

Example Responses

Status code: 200

The AK/SK status has been obtained.

{
  "akskUpload" : true,
  "expired" : false,
  "expiredTime" : "31469520",
  "expired_date" : "2026-12-07 09:02:00.147 +0000 UTC",
  "create_time" : "2025-04-18 07:56:03.551866 +0000 UTC",
  "update_time" : "2025-12-07 09:02:00.158785 +0000 UTC"
}

Status Codes

Status Code

Description

200

The AK/SK status has been obtained.

Error Codes

See Error Codes.