openstack api
1,Identity service generates authentication tokens that permit access to the openstack service REST APIs,clients obtain this token and the URL catelog endpoints for other service APIs by supplying their valid credentials to the authentication service 获取token;
2,Each time you make a REST API request to an openstack service, you supply you authentication token in the X-Auth-Token request header 在X-Auth-Token使用上面获取的tokens;
3,openstack Identity protect its APIs by defining policy rules based on a role-based access control(RBAC)基于角色的访问控制;
4,page lists the Identity API operations in the following order
Authentication and token management
credentials,domains,domain configuration,group,policies,projects,regions,roles,role assignments,service catalog and endpoints,users
5, grant authorization on a specific project or domain
the body of authentication request must include a payload that specifies the authentication method which is password or token
the credenntials and optionally the authorization scope
you can scope a token to project or domain or the token can be unscope
you cannot scope a token to both a project and domain
tokens have IDs,which the Identity API returns in the X-Subject-Token

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。
持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。
转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。
- 上一篇
openstack api users list get token get servers
curl -i \ -H "Content-Type: application/json" \ -d '{ "auth": { "identity": { "methods": ["password"], "password": { "user": { "name": "demo", "domain": { "id": "default" }, "password": "123456" } } } }}' \ http://192.168.3.181:5000/v3/auth/tokens ; echocurl -s -H "X-Auth-Token: 9853c8676b41450bb9a79fbdbcf240e1" http://192.168.3.181:35357/v3/users | python -m json.toolcurl -s -H "X-Auth-Token: ed3c98a7610d473bb2a3ceb9d62e3edd" http://192.168.3.181:8774/v2/be9bae3f0e15476f8044e9887e43decf/servers...
- 下一篇
openstack python sdk list tenants get token get servers
1,openstack python sdk 获取token 获取租户tenants projects #!/bin/bash export OS_PROJECT_DOMAIN_ID=default export OS_USER_DOMAIN_ID=default export OS_PROJECT_NAME=admin export OS_TENANT_NAME=admin export OS_USERNAME=admin export OS_PASSWORD=yidesk321 export OS_AUTH_URL=http://controller-test:35357/v2.0 export OS_IMAGE_API_VERSION=2 #!/usr/bin/python from os import environ as env import keystoneclient.v2_0.client as ksclient keystone = ksclient.Client(auth_url=env['OS_AUTH_URL'], username=env['OS_USERNA...
相关文章
文章评论
共有0条评论来说两句吧...
文章二维码
点击排行
推荐阅读
最新文章
- CentOS7编译安装Gcc9.2.0,解决mysql等软件编译问题
- Docker安装Oracle12C,快速搭建Oracle学习环境
- SpringBoot2全家桶,快速入门学习开发网站教程
- SpringBoot2配置默认Tomcat设置,开启更多高级功能
- CentOS关闭SELinux安全模块
- Eclipse初始化配置,告别卡顿、闪退、编译时间过长
- CentOS6,CentOS7官方镜像安装Oracle11G
- SpringBoot2整合MyBatis,连接MySql数据库做增删改查操作
- Docker使用Oracle官方镜像安装(12C,18C,19C)
- Hadoop3单机部署,实现最简伪集群