文档首页 > > 开发指南> API & SDK 对应关系> Java> IAM

IAM

分享
更新时间: 2019/11/15 GMT+08:00

基于IAM API的SDK接口如下,调用方式请参考示例代码。

Interface

Method

API

SecuritytokenService

Securitytoken create(Auth auth)

POST /v3.0/OS-CREDENTIAL/securitytokens

链接

RegionService

List<? extends Region> list()

GET /v3/regions

链接

Region get(String regionId)

GET /v3/regions/{region_id}

链接

ProjectService

List<? extends Project> list()

GET /v3/projects

链接

List<? extends Project> list(Map<String, String> filteringParams)

GET /v3/projects

链接

Project getByName(String projectName, String domainId)

GET /v3/projects?name={projectName}&&domain_id={domainId}

链接

Project create(String domainId, String name, String description, boolean enabled)

POST /v3/projects

链接

Project update(Project project)

PATCH /v3/projects/{project_id}

链接

Project get(String projectId)

GET /v3/projects/{project_id}

链接

UserService

List<? extends Project> listUserProjects(String userId)

GET /v3/users/{user_id}/projects

链接

List<? extends User> list()

GET /v3/users

链接

List<? extends User> list(Map<String, String> filteringParams)

GET /v3/users

链接

User get(String userId)

GET /v3/users/{user_id}

链接

List<? extends User> getByName(String userName)

GET /v3/users?name={user_name}

链接

User getByName(String userName, String domainId)

GET /v3/users?name={user_name}&&domain_id={domain_id}

链接

List<? extends Group> listUserGroups(String userId)

GET /v3/users/{user_id}/groups

链接

User create(String domainId, String name, String password, String email, boolean enabled)

POST /v3/users

链接

User create(User user)

POST /v3/users

链接

ActionResponse changePassword(String userId,String originalPassword,String password)

POST /v3/users/{user_id}/password

链接

User update(User user)

PATCH /v3/users/{user_id}

链接

ActionResponse delete(String userId)

DELETE /v3/users/{user_id}

链接

TokenService

List<? extends Project> getProjectScopes(String tokenId)

GET /v3/auth/projects

链接

List<? extends Domain> getDomainScopes(String tokenId)

GET /v3/auth/domains

链接

Token get(String tokenId)

GET /v3/auth/tokens

链接

DomainService

PasswordConfig getDomainPasswordConfig(String domainId)

GET /v3/domains/{domain_id}/config/security_compliance

链接

PasswordConfig getDomainPasswordConfigByOption(String domainId, String option)

GET /v3/domains/{domain_id}/config/security_compliance/{option}

链接

GroupService

List<? extends User> listGroupUsers(String groupId)

GET /v3/groups/{group_id}/users

链接

ActionResponse removeUserFromGroup(String groupId, String userId)

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

链接

List<? extends Group> getByName(Map<String, String> filteringParams)

GET /v3/groups

链接

List<? extends Group> getByName(String groupName, String domainId )

GET /v3/groups?name={groupName}&&domain_id={domainId}

链接

Group get(String groupId)

GET /v3/groups/{group_id}

链接

Group create(String domainId, String name, String description)

POST /v3/groups

链接

ActionResponse addUserToGroup(String groupId, String userId)

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

链接

Group update(Group group)

PATCH /v3/groups/{group_id}

链接

ActionResponse delete(String groupId)

DELETE /v3/groups/{group_id}

链接

ActionResponse checkGroupUser(String groupId, String userId)

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

链接

List<? extends Role> listDomainGroupRoles(String groupId, String domainId)

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

链接

List<? extends Role> listProjectGroupRoles(String groupId, String projectId)

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

链接

RoleService

List<? extends Role> list()

GET /v3/roles

链接

Role get(String roleId)

GET /v3/roles/{role_id}

链接

ActionResponse grantDomainGroupRole(String domainId, String groupId, String roleId)

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

链接

ActionResponse grantProjectGroupRole(String projectId, String groupId, String roleId)

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

链接

ActionResponse revokeProjectGroupRole(String projectId, String groupId, String roleId)

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

链接

ActionResponse revokeDomainGroupRole(String domainId, String groupId, String roleId)

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

链接

ActionResponse checkDomainGroupRole(String domainId, String groupId, String roleId)

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

链接

ActionResponse checkProjectGroupRole(String projectId, String groupId, String roleId)

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

链接

VersionService

Version get()

GET /v3

链接

ServiceEndpointService

List<? extends Service> list()

GET /v3/services

链接

List<? extends Service> list(Map<String, String> filteringParams)

GET /v3/services

链接

Service get(String serviceId)

GET /v3/services/{service_id}

链接

List<? extends Endpoint> listEndpoints()

GET /v3/endpoints

链接

List<? extends Endpoint> listEndpoints(Map<String, String> filteringParams)

GET /v3/endpoints

链接

Endpoint getEndpoint(String endpointId)

GET /v3/endpoints/{endpoint_id}

链接

分享:

    相关文档

    相关产品

文档是否有解决您的问题?

提交成功!

非常感谢您的反馈,我们会继续努力做到更好!

反馈提交失败,请稍后再试!

*必选

请至少选择或填写一项反馈信息

字符长度不能超过200

提交反馈 取消

如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨

跳转到云社区