创建AK
创建AK
Path Parameters
user_id string required
用户ID
application/json
Request Body required
user_id string required
用户ID
Responses
- 200
- default
OK
application/json
Schema
Example (from schema)
Schema
id string
Ak id
user_id string
用户id
access_key string
Access key
secret_key string
Secret key
status string
状态
advice_renew boolean
建议更新标志
{
"id": "string",
"user_id": "string",
"access_key": "string",
"secret_key": "string",
"status": "string",
"advice_renew": true,
"create_time": "2025-04-23T03:43:48.915Z",
"update_time": "2025-04-23T03:43:48.915Z"
}
Default error response
application/json
Schema
Example (from schema)
Schema
code int32
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
message string
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
POST /v1/users/:user_id/aks
Authorization
name: bearerAuthtype: httpscheme: bearer
Request
Request
curl / cURL
curl -L -X POST 'https://iam.sensecoreapi.cn/iam/idp/v1/users/:user_id/aks' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"user_id": "string"
}'
python / requests
curl -L -X POST 'https://iam.sensecoreapi.cn/iam/idp/v1/users/:user_id/aks' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"user_id": "string"
}'
go / native
curl -L -X POST 'https://iam.sensecoreapi.cn/iam/idp/v1/users/:user_id/aks' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"user_id": "string"
}'
nodejs / axios
curl -L -X POST 'https://iam.sensecoreapi.cn/iam/idp/v1/users/:user_id/aks' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"user_id": "string"
}'
ruby / Net::HTTP
curl -L -X POST 'https://iam.sensecoreapi.cn/iam/idp/v1/users/:user_id/aks' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"user_id": "string"
}'
csharp / RestSharp
curl -L -X POST 'https://iam.sensecoreapi.cn/iam/idp/v1/users/:user_id/aks' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"user_id": "string"
}'
php / cURL
curl -L -X POST 'https://iam.sensecoreapi.cn/iam/idp/v1/users/:user_id/aks' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"user_id": "string"
}'
java / OkHttp
curl -L -X POST 'https://iam.sensecoreapi.cn/iam/idp/v1/users/:user_id/aks' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"user_id": "string"
}'
powershell / RestMethod
curl -L -X POST 'https://iam.sensecoreapi.cn/iam/idp/v1/users/:user_id/aks' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"user_id": "string"
}'