获取此账号中IAM实体使用情况和IAM配额的摘要信息
功能介绍
该接口可以用于获取此账号中IAM实体使用情况和IAM配额的摘要信息。
URI
GET /v5/account-summary
请求参数
无
响应参数
状态码:200
参数 |
参数类型 |
描述 |
---|---|---|
attached_policies_per_agency_quota |
Integer |
附加到委托或信任委托上的身份策略的最大数量。 |
attached_policies_per_group_quota |
Integer |
附加到用户组上的身份策略的最大数量。 |
attached_policies_per_user_quota |
Integer |
附加到IAM用户上的身份策略的最大数量。 |
policies_quota |
Integer |
自定义身份策略的最大数量。 |
policy_size_quota |
Integer |
身份策略及信任策略的策略文档的最大字符数,不包括空格。 |
versions_per_policy_quota |
Integer |
自定义身份策略同一时刻保留的最大版本数量。 |
policies |
Integer |
此账号中当前创建的自定义身份策略数量。 |
agencies |
Integer |
此账号中当前创建的委托及信任委托的总数量。 |
agencies_quota |
Integer |
此账号能够创建的委托及信任委托的总数上限。 |
users |
Integer |
此账号当前创建的IAM用户数量,包括根用户。 |
users_quota |
Integer |
此账号能够创建的IAM用户数上限,包括根用户。 |
groups |
Integer |
此账号当前创建的用户组数量。 |
groups_quota |
Integer |
此账号能够创建的用户组数上限。 |
root_user_mfa_enabled |
Integer |
根用户绑定的已启用MFA的数量。 |
状态码:404
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
错误码。 |
error_msg |
String |
错误信息。 |
request_id |
String |
请求ID。 |
请求示例
获取此账号中IAM实体使用情况和IAM配额的摘要信息。
GET https://{endpoint}/v5/account-summary
响应示例
状态码:200
请求成功。
{ "attached_policies_per_agency_quota" : 10, "attached_policies_per_group_quota" : 10, "attached_policies_per_user_quota" : 10, "policies_quota" : 1500, "policy_size_quota" : 6144, "versions_per_policy_quota" : 5, "policies" : 133, "agencies" : 50, "agencies_quota" : 50, "users" : 135, "users_quota" : 500, "groups" : 34, "groups_quota" : 500, "root_user_mfa_enabled" : 0 }
状态码
状态码 |
描述 |
---|---|
200 |
请求成功。 |
404 |
未找到相应的资源。 |
错误码
请参见错误码。