最近更新时间:2021-08-27
CreateChildAkSk
为用户创建访问密钥
| 名称 | 数据类型 | 示例 | 描述 | 是否必填 |
|---|---|---|---|---|
| Action | String | CreateChildAkSk | 系统规定参数,取值:CreateChildAkSk | Y |
childId | String | ef8d5afb-ff31-43fc-8b88-**** | 子账号id | N |
| 名称 | 数据类型 | 示例 | 说明 |
|---|---|---|---|
| accessKey | String | xG61zVu0V****** | ak主键id |
| accessSecret | String | J1I7sIiKtTMq********* | sk |
| userId | String | ef8d5afb-ff31-43fc-8b88-**** | 用户id |
| projectId | String | 222685fd-feeb-4769-**** | 组织id |
| projectName | String | 222685fdfeeb47698****** | 组织名 |
| createAt | String | 1629357091000 | 创建时间 |
| expiredAt | Integer | 过期时间 | |
| enabled | Integer | 1/0 | 启用/禁用 |
| Type | String | PUBLIC/OSS | ak类型 |
http://api.unicloud.com/user/user?Action=CreateChildAkSk&childId=ef8d5afb-ff31-43fc-8b******
{
"accessKey": "beRiPovrfq****",
"accessSecret": "4LXYx7styPp9ZBj******",
"userId": "ef8d5afb-ff31-43fc-8b88-*****",
"projectId": "222685fd-feeb-4769-8b11-****",
"projectName": "222685fdfeeb47698b11*****",
"createAt": null,
"expiredAt": null,
"enabled": 1,
"type": "PUBLIC"
}
| 错误码 | 错误信息 | 状态码 | 错误描述 |
|---|---|---|---|
| NoPermission | 无权操作该账号的accessKey | 400 | 无权操作该账号的accessKey |
| OverMaxAKSize | 一个账号只能有两个accessKey | 400 | 一个账号只能有两个accessKey |
| 12002 | 数据库写入失败 | 400 | 数据库写入失败 |