更新时间:2024-07-25 GMT+08:00

授权项

Token管理

权限

对应API接口

授权项(Action)

IAM项目

(Project)

企业项目

(Enterprise Project)

获取委托Token

POST /v3/auth/tokens

iam:tokens:assume

-

-

访问密钥管理

权限

对应API接口

授权项

IAM项目

(Project)

企业项目

(Enterprise Project)

查询所有永久访问密钥

GET /v3.0/OS-CREDENTIAL/credentials

iam:credentials:listCredentials

-

-

查询指定永久访问密钥

GET /v3.0/OS-CREDENTIAL/credentials/{access_key}

iam:credentials:getCredential

-

-

创建永久访问密钥

POST /v3.0/OS-CREDENTIAL/credentials

iam:credentials:createCredential

-

-

修改指定永久访问密钥

PUT /v3.0/OS-CREDENTIAL/credentials/{access_key}

iam:credentials:updateCredential

-

-

删除指定永久访问密钥

DELETE /v3.0/OS-CREDENTIAL/credentials/{access_key}

iam:credentials:deleteCredential

-

-

虚拟MFA管理

权限

对应API接口

授权项

IAM项目

(Project)

企业项目

(Enterprise Project)

解绑MFA设备

×

iam:mfa:unbindMFADevice

-

-

绑定MFA设备

×

iam:mfa:bindMFADevice

-

-

创建MFA设备

×

iam:mfa:createVirtualMFADevice

-

-

删除MFA设备

×

iam:mfa:deleteVirtualMFADevice

-

-

项目管理

权限

对应API接口

授权项

IAM项目

(Project)

企业项目

(Enterprise Project)

创建项目

POST /v3/projects

iam:projects:createProject

-

-

修改项目

PATCH /v3/projects/{project_id}

iam:projects:updateProject

-

-

设置指定项目的状态

PUT /v3-ext/projects/{project_id}

iam:projects:updateProject

-

-

查询用户的项目列表

GET /v3/users/{user_id}/projects

iam:projects:listProjectsForUser

-

-

删除项目

×

iam:projects:deleteProject

-

-

租户管理

权限

对应API接口

授权项

IAM项目

(Project)

企业项目

(Enterprise Project)

查询租户配额

GET /v3.0/OS-QUOTA/domains/{domain_id}

iam:quotas:listQuotas

-

-

用户管理

权限

对应API接口

授权项

IAM项目

(Project)

企业项目

(Enterprise Project)

查询用户列表

GET /v3/users

iam:users:listUsers

-

-

查询用户详情

GET /v3/users/{user_id}

iam:users:getUser

-

-

查询用户详情(推荐)

GET /v3.0/OS-USER/users/{user_id}

iam:users:getUser

-

-

查询用户所属用户组

GET /v3/users/{user_id}/groups

iam:groups:listGroupsForUser

-

-

查询用户组所包含的用户

GET /v3/groups/{group_id}/users

iam:users:listUsersForGroup

-

-

创建用户

POST /v3/users

iam:users:createUser

-

-

修改密码

POST /v3/users/{user_id}/password

iam:users:updateUserPassword

-

-

修改用户信息

PATCH /v3/users/{user_id}

iam:users:updateUser

-

-

删除用户

DELETE /v3/users/{user_id}

iam:users:deleteUser

-

-

管理员重置IAM用户密码

×

iam:users:resetUserPassword

-

-

设置登录保护

×

iam:users:setUserLoginProtect

-

-

查询指定项目上有权限的用户列表

×

iam:users:listUsersForProject

-

-

删除用户组中用户

DELETE /v3/groups/{group_id}/users/{user_id}

iam:permissions:removeUserFromGroup

-

-

查询IAM用户的MFA绑定信息列表

GET /v3.0/OS-MFA/virtual-mfa-devices

iam:mfa:listVirtualMFADevices

-

-

查询指定IAM用户的MFA绑定信息

GET /v3.0/OS-MFA/users/{user_id}/virtual-mfa-device

iam:mfa:getVirtualMFADevice

-

-

查询IAM用户的登录保护状态信息列表

GET /v3.0/OS-USER/login-protects

iam:users:listUserLoginProtects

-

-

查询指定IAM用户的登录保护状态信息

GET /v3.0/OS-USER/users/{user_id}/login-protect

iam:users:getUserLoginProtect

-

-

用户组管理

权限

对应API接口

授权项

IAM项目

(Project)

企业项目

(Enterprise Project)

管理员查询用户组所包含的IAM用户

GET /v3/groups/{group_id}/users

iam:users:listUsersForGroup

-

-

查询用户组列表

GET /v3/groups{?domain_id,name}

iam:groups:listGroups

-

-

查询用户组详情

GET /v3/groups/{group_id}

iam:groups:getGroup

-

-

创建用户组

POST /v3/groups

iam:groups:createGroup

-

-

添加用户到用户组

PUT /v3/groups/{group_id}/users/{user_id}

iam:permissions:addUserToGroup

-

-

更新用户组

PATCH /v3/groups/{group_id}

iam:groups:updateGroup

-

-

删除用户组

DELETE /v3/groups/{group_id}

  • iam:groups:deleteGroup
  • iam:permissions:removeUserFromGroup
  • iam:permissions:revokeRoleFromGroup
  • iam:permissions:revokeRoleFromGroupOnProject
  • iam:permissions:revokeRoleFromGroupOnDomain

-

-

查询用户是否在用户组中

HEAD /v3/groups/{group_id}/users/{user_id}

iam:permissions:checkUserInGroup

-

-

权限管理

权限

对应API接口

授权项

IAM项目

(Project)

企业项目

(Enterprise Project)

查询角色列表

GET /v3/roles

iam:roles:listRoles

-

-

查询角色的详细信息

GET /v3/roles/{role_id}

iam:roles:getRole

-

-

查询租户中用户组的权限

GET /v3/domains/{domain_id}/groups/{group_id}/roles

iam:permissions:listRolesForGroupOnDomain

-

-

查询项目对应的用户组的权限

GET /v3/projects/{project_id}/groups/{group_id}/roles

iam:permissions:listRolesForGroupOnProject

-

-

为租户所属用户组授权

PUT /v3/domains/{domain_id}/groups/{group_id}/roles/{role_id}

iam:permissions:grantRoleToGroupOnDomain

-

-

为项目对应的用户组授权

PUT /v3/projects/{project_id}/groups/{group_id}/roles/{role_id}

iam:permissions:grantRoleToGroupOnProject

-

-

删除项目对应的用户组的权限

DELETE /v3/projects/{project_id}/groups/{group_id}/roles/{role_id}

iam:permissions:revokeRoleFromGroupOnProject

-

-

删除租户所属用户组的权限

DELETE /v3/domains/{domain_id}/groups/{group_id}/roles/{role_id}

iam:permissions:revokeRoleFromGroupOnDomain

-

-

查询租户中用户组是否包含权限

HEAD /v3/domains/{domain_id}/groups/{group_id}/roles/{role_id}

iam:permissions:checkRoleForGroupOnDomain

-

-

查询项目对应的用户组是否包含权限

HEAD /v3/projects/{project_id}/groups/{group_id}/roles/{role_id}

iam:permissions:checkRoleForGroupOnProject

-

-

为用户组授予指定权限

PUT /v3/domains/{domain_id}/groups/{group_id}/roles/{role_id}

PUT /v3/projects/{project_id}/groups/{group_id}/roles/{role_id}

iam:permissions:grantRoleToGroup

-

-

查询用户在指定项目上拥有的权限

×

iam:permissions:listRolesForUserOnProject

-

-

查询用户组的所有权限

×

iam:permissions:listRolesForGroup

-

-

查询用户组是否拥有指定权限

×

iam:permissions:checkRoleForGroup

-

-

移除用户组的指定权限

×

iam:permissions:revokeRoleFromGroup

-

-

查询租户配额

GET /v3.0/OS-QUOTA/domains/{domain_id}?type={user, group, idp, agency, policy}

iam:quotas:listQuotas

-

-

自定义策略管理

权限

对应API接口

授权项

IAM项目

(Project)

企业项目

(Enterprise Project)

查询自定义策略列表

GET /v3.0/OS-ROLE/roles

iam:roles:listRoles

-

-

查询自定义策略详情

GET /v3.0/OS-ROLE/roles/{role_id}

iam:roles:getRole

-

-

创建云服务自定义策略

POST /v3.0/OS-ROLE/roles

iam:roles:createRole

-

-

修改云服务自定义策略

PATCH /v3.0/OS-ROLE/roles/{role_id}

iam:roles:updateRole

-

-

删除自定义策略

DELETE /v3.0/OS-ROLE/roles/{role_id}

iam:roles:deleteRole

-

-

委托管理

权限

对应API接口

授权项

IAM项目

(Project)

企业项目

(Enterprise Project)

创建委托

POST /v3.0/OS-AGENCY/agencies

iam:agencies:createAgency

-

-

查询指定条件下的委托列表

GET /v3.0/OS-AGENCY/agencies

iam:agencies:listAgencies

-

-

获取指定委托的详细信息

GET /v3.0/OS-AGENCY/agencies/{agency_id}

iam:agencies:getAgency

-

-

修改委托

PUT /v3.0/OS-AGENCY/agencies/{agency_id}

iam:agencies:updateAgency

-

-

删除委托

DELETE /v3.0/OS-AGENCY/agencies/{agency_id}

iam:agencies:deleteAgency

-

-

通过项目给委托赋予权限

PUT /v3.0/OS-AGENCY/projects/{project_id}/agencies/{agency_id}/roles/{role_id}

iam:permissions:grantRoleToAgencyOnProject

-

-

检查委托在项目上是否有指定权限

HEAD /v3.0/OS-AGENCY/projects/{project_id}/agencies/{agency_id}/roles/{role_id}

iam:permissions:checkRoleForAgencyOnProject

-

-

查询委托在项目上具有的权限列表

GET /v3.0/OS-AGENCY/projects/{project_id}/agencies/{agency_id}/roles

iam:permissions:listRolesForAgencyOnProject

-

-

通过项目删除委托的权限

DELETE /v3.0/OS-AGENCY/projects/{project_id}/agencies/{agency_id}/roles/{role_id}

iam:permissions:revokeRoleFromAgencyOnProject

-

-

通过租户给委托赋予权限

PUT /v3.0/OS-AGENCY/domains/{domain_id}/agencies/{agency_id}/roles/{role_id}

iam:permissions:grantRoleToAgencyOnDomain

-

-

检查委托在租户上是否有指定权限

HEAD /v3.0/OS-AGENCY/domains/{domain_id}/agencies/{agency_id}/roles/{role_id}

iam:permissions:checkRoleForAgencyOnDomain

-

-

查询委托在租户上具有的权限列表

GET /v3.0/OS-AGENCY/domains/{domain_id}/agencies/{agency_id}/roles

iam:permissions:listRolesForAgencyOnDomain

-

-

通过租户删除委托的权限

DELETE /v3.0/OS-AGENCY/domains/{domain_id}/agencies/{agency_id}/roles/{role_id}

iam:permissions:revokeRoleFromAgencyOnDomain

-

-

查询委托下的所有项目服务权限列表

GET /v3.0/OS-INHERIT/domains/{domain_id}/agencies/{agency_id}/roles/inherited_to_projects

iam:permissions:listRolesForAgency

-

-

为委托授予所有项目服务权限

PUT /v3.0/OS-INHERIT/domains/{domain_id}/agencies/{agency_id}/roles/{role_id}/inherited_to_projects

iam:permissions:grantRoleToAgency

-

-

检查委托下是否具有所有项目服务权限

HEAD /v3.0/OS-INHERIT/domains/{domain_id}/agencies/{agency_id}/roles/{role_id}/inherited_to_projects

iam:permissions:checkRoleForAgency

-

-

移除委托下的所有项目服务权限

DELETE /v3.0/OS-INHERIT/domains/{domain_id}/agencies/{agency_id}/roles/{role_id}/inherited_to_projects

iam:permissions:revokeRoleFromAgency

-

-

安全设置

权限

对应API接口

授权项

IAM项目

(Project)

企业项目

(Enterprise Project)

查询账号操作保护策略

GET v3.0/OS-SECURITYPOLICY/domains/{domain_id}/protect-policy

iam:securitypolicies:getProtectPolicy

-

-

查询账号密码策略

GET v3.0/OS-SECURITYPOLICY/domains/{domain_id}/password-policy

iam:securitypolicies:getPasswordPolicy

-

-

查询账号登录策略

GET v3.0/OS-SECURITYPOLICY/domains/{domain_id}/login-policy

iam:securitypolicies:getLoginPolicy

-

-

查询账号控制台访问策略

GET v3.0/OS-SECURITYPOLICY/domains/{domain_id}/console-acl-policy

iam:securitypolicies:getConsoleAclPolicy

-

-

查询账号接口访问策略

GET v3.0/OS-SECURITYPOLICY/domains/{domain_id}/api-acl-policy

iam:securitypolicies:getApiAclPolicy

-

-

联邦身份认证管理

权限

对应API接口

授权项

IAM项目

(Project)

企业项目

(Enterprise Project)

查询身份提供商列表

GET /v3/OS-FEDERATION/identity_providers

iam:identityProviders:listIdentityProviders

-

-

查询身份提供商

GET /v3/OS-FEDERATION/identity_providers/{id}

iam:identityProviders:getIdentityProvider

-

-

创建身份提供商

PUT /v3/OS-FEDERATION/identity_providers/{id}

iam:identityProviders:createIdentityProvider

-

-

更新身份提供商

PATCH /v3/OS-FEDERATION/identity_providers/{id}

iam:identityProviders:updateIdentityProvider

-

-

删除身份提供商

DELETE /v3/OS-FEDERATION/identity_providers/{id}

iam:identityProviders:deleteIdentityProvider

-

-

查询映射列表

GET /v3/OS-FEDERATION/mappings

iam:identityProviders:listMappings

-

-

查询映射详情

GET /v3/OS-FEDERATION/mappings/{id}

iam:identityProviders:getMapping

-

-

注册映射

PUT /v3/OS-FEDERATION/mappings/{id}

iam:identityProviders:createMapping

-

-

更新映射

PATCH /v3/OS-FEDERATION/mappings/{id}

iam:identityProviders:updateMapping

-

-

删除映射

DELETE /v3/OS-FEDERATION/mappings/{id}

iam:identityProviders:deleteMapping

-

-

查询协议列表

GET /v3/OS-FEDERATION/identity_providers/{idp_id}/protocols

iam:identityProviders:listProtocols

-

-

查询协议

GET /v3/OS-FEDERATION/identity_providers/{idp_id}/protocols/{protocol_id}

iam:identityProviders:getProtocol

-

-

注册协议

PUT /v3/OS-FEDERATION/identity_providers/{idp_id}/protocols/{protocol_id}

iam:identityProviders:createProtocol

-

-

更新协议

PATCH /v3/OS-FEDERATION/identity_providers/{idp_id}/protocols/{protocol_id}

iam:identityProviders:updateProtocol

-

-

删除协议

DELETE /v3/OS-FEDERATION/identity_providers/{idp_id}/protocols/{protocol_id}

iam:identityProviders:deleteProtocol

-

-

查询Metadata文件

GET /v3-ext/OS-FEDERATION/identity_providers/{idp_id}/protocols/{protocol_id}/metadata

iam:identityProviders:getIDPMetadata

-

-

导入Metadata文件

POST /v3-ext/OS-FEDERATION/identity_providers/{idp_id}/protocols/{protocol_id}/metadata

iam:identityProviders:createIDPMetadata

-

-