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

IAM

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

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

Interface

Method

API

Securitytoken Operations

create_securitytoken(self, **attrs)

POST /v3.0/OS-CREDENTIAL/securitytokens

链接

Region Operations

regions(self, **query)

GET /v3/regions

链接

get_region(self, region)

GET /v3/regions/{region_id}

链接

Project Operations

projects(self, **query)

GET /v3/projects

链接

list_user_projects(self, user_id)

GET /v3/users/{user_id}/projects

链接

get_project_scopes(self)

GET /v3/auth/projects

链接

create_project(self, **attrs)

POST /v3/projects

链接

update_project(self, project, **attrs)

PATCH /v3/projects/{project_id}

链接

get_project(self, project)

GET /v3/projects/{project_id}

链接

User Operations

list_group_users(self, group_id)

GET /v3/groups/{group_id}/users

链接

remove_user_from_group(self, group_id, user_id)

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

链接

users(self, **query)

GET /v3/users

链接

get_user(self, user)

GET /v3/users/{user_id}

链接

list_user_groups(self, user_id)

GET /v3/users/{user_id}/groups

链接

create_user(self, **attrs)

POST /v3/users

链接

change_password(self, user_id, **attrs)

POST /v3/users/{user_id}/password

链接

update_user(self, user, **attrs)

PATCH /v3/users/{user_id}

链接

delete_user(self, user, ignore_missing=True)

DELETE /v3/users/{user_id}

链接

Domain Operations

get_domain_scopes(self)

GET /v3/auth/domains

链接

get_password_config(self, domain_id)

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

链接

get_password_config_by_option(self, domain_id, option)

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

链接

Group Operations

groups(self, **query)

GET /v3/groups

链接

get_group(self, group)

GET /v3/groups/{group_id}

链接

create_group(self, **attrs)

POST /v3/groups

链接

add_user_to_group(self, group_id, user_id)

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

链接

update_group(self, group, **attrs)

PATCH /v3/groups/{group_id}

链接

delete_group(self, group, ignore_missing=True)

DELETE /v3/groups/{group_id}

链接

check_group_user(self, group_id, user_id)

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

链接

Role Operations

list_domain_user_group_role(self, domain_id, group_id)

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

链接

list_project_user_group_role(self, project_id, group_id)

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

链接

roles(self, **query)

GET /v3/roles

链接

get_role(self, role)

GET /v3/roles/{role_id}

链接

grant_domain_group_role(self, domain_id, group_id, role_id)

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

链接

grant_project_group_role(self, project_id, group_id, role_id)

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

链接

delete_project_group_role(self, project_id, group_id, role_id)

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

链接

delete_domain_group_role(self, domain_id, group_id, role_id)

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

链接

check_domain_group_role(self, domain_id, group_id, role_id)

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

链接

check_project_group_role(self, project_id, group_id, role_id)

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

链接

Service Operations

services(self, **query)

GET /v3/services

链接

get_service(self, service)

GET /v3/services/{service_id}

链接

Endpoint Operations

endpoints(self, **query)

GET /v3/endpoints

链接

get_endpoint(self, endpoint)

GET /v3/endpoints/{endpoint_id}

链接

分享:

    相关文档

    相关产品

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

提交成功!

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

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

*必选

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

字符长度不能超过200

提交反馈 取消

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

跳转到云社区