Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Request for Create new domain :
- curl POST http://xxx.xx.xxx.xxx:5000/v3/domains -H "X-Auth-Token :xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -H "Content-Type:application/json" -d '{ "domain": { "description": "Test Domain 2", "enabled": true, "name": "TestDoamin2" } }'
- Then show the list of all domine
- curl GET http://xxx.xx.xxx.xxx:5000/v3/domains -H "X-Auth-Token :xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -H "Content-Type:application/json"
- It's showing response
- {
- "domains": [
- {
- "links": {
- "self": "http://xxx.xx.xxx.xxx:5000/v3/domains/651989aa7b444d2e876cfa5cebee6214"
- },
- "enabled": true,
- "description": "Test Domain",
- "name": "TestDoamin",
- "id": "651989aa7b444d2e876cfa5cebee6214"
- },
- {
- "links": {
- "self": "http://xxx.xx.xxx.xxx:5000/v3/domains/c3f0ac4048fd4d4a835df3ebef953e54"
- },
- "enabled": true,
- "description": "Test Domain 2",
- "name": "TestDoamin2",
- "id": "c3f0ac4048fd4d4a835df3ebef953e54"
- },
- {
- "links": {
- "self": "http://xxx.xx.xxx.xxx:5000/v3/domains/default"
- },
- "enabled": true,
- "description": "Owns users and tenants (i.e. projects) available on Identity API v2.",
- "name": "Default",
- "id": "default"
- }
- ],
- "links": {
- "self": "http://xxx.xx.xxx.xxx:5000/v3/domains",
- "previous": null,
- "next": null
- }
- }
- After that i create new project with new domain id
- curl POST http://xxx.xx.xxx.xxx:5000/v3/projects -H "X-Auth-Token :xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -H "Content-Type:application/json" -d'{ "project": { "description": "testing project", "domain_id": "651989aa7b444d2e876cfa5cebee6214", "enabled": true, "name": "TestingProject" } } '
- It's response is :-
- {
- "project": {
- "description": "testing project",
- "links": {
- "self": "http://xxx.xx.xxx.xxx:5000/v3/projects/c82615d18e3144ddacce6266d3d098a3"
- },
- "enabled": true,
- "id": "c82615d18e3144ddacce6266d3d098a3",
- "domain_id": "651989aa7b444d2e876cfa5cebee6214",
- "name": "TestingProject"
- }
- }
- look it's not showing in dashborad
- http://awesomescreenshot.com/0a54qgqrfa
- in my openstack dashborad on create project http://awesomescreenshot.com/07d4qgyn73 it's not looking http://docs.openstack.org/openstack-ops/content/projects_users.html Given create project Domain id Domain name fields are not present in my openstack dashborad
Advertisement
Add Comment
Please, Sign In to add comment