查询访问凭证列表
分页查询云厂商访问凭证。此接口需要数据源模块权限。
请求地址:/openapi/v1/access/list
请求方法:GET
请求参数
| 参数 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| name | String | 否 | 凭证名称关键字。 |
| type | String | 否 | 凭证类型:accessKey 或 role。 |
| vendor | String | 否 | 云厂商。 |
| current | Integer | 否 | 当前页,从 1 开始,默认 1。 |
| pageSize | Integer | 否 | 每页记录数,默认 10,最大 1000。 |
返回参数
| 参数 | 类型 | 说明 |
|---|---|---|
| success | Boolean | 请求是否成功。 |
| requestId | String | 请求 ID。 |
| current | Integer | 当前页。 |
| pageSize | Integer | 页大小。 |
| total | Integer | 总数。 |
| data | Array | 访问凭证详情列表。 |
| data[].accessId | String | 访问凭证 ID。 |
| data[].name | String | 凭证名称。 |
| data[].type | String | 凭证类型。 |
| data[].vendor | String | 云厂商。 |
| data[].accessKey | String | AccessKey ID。 |
| data[].accessKeySecret | String | 始终返回 null。 |
| data[].roleName | String | Role 名称。 |
| data[].arn | String | Role ARN。 |
| data[].status | String | 状态:normal、invalid 或 deleted。 |
| data[].errorMessage | String | 错误信息。 |
| data[].creatorId | String | 创建人账号 ID。 |
| data[].createTime | DateTime | 创建时间。 |
| data[].updateTime | DateTime | 更新时间。 |
调用成功示例
{
"success": true,
"requestId": "<requestId>",
"current": 1,
"pageSize": 10,
"total": 1,
"data": [{
"accessId": "<accessId>",
"name": "example-access",
"type": "accessKey",
"vendor": "aliyun",
"accessKey": "<accessKey>",
"accessKeySecret": null,
"status": "normal"
}]
}