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
|
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
|
Parameter |
Type |
Description |
|---|---|---|
|
akskUpload |
Boolean |
Definition Whether an AK/SK has been uploaded Range |
|
expired |
Boolean |
Definition Whether an AK/SK has expired Range |
|
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot