Home > keystone, openstack > Experimenting OpenStack Keystone V3 API

Experimenting OpenStack Keystone V3 API

Recently, I experimented with Keystone’s V3.0 API [1] with curl – some of which I gonna post here.


> create domains:

> List domains:

curl -X GET -H “X-Auth-token:admin” | python -mjson.tool


> Create Project:

curl -X POST -H “X-Auth-token:admin” -H “Content-type:application/json” -d @add_project.json | python -mjson.tool

“project”: {
“description”: “development”,
“domain_id”: “default”,
“enabled”: true,
“name”: “development”
> list project:

curl -si -X GET -H “X-Auth-token:admin” -H “Content-type:application/json” | python -mjson.tool

> list users for a project( named development):
curl -X GET -H “X-Auth-token:admin” -H | python -mjson.tool

> Create user:

curl -X POST -H “X-Auth-token:admin” -H “Content-type:application/json” -d @add_user.json | python -mjson.tool

> List user

curl -X GET -H “X-Auth-token:admin” | python -mjson.tool
> Role of a user(Alice) assigned to a particular project (‘devepment’):

curl -X GET -H “X-Auth-token:admin” -H “Content-type:application/json” | python -mjson.tool


> List Group
curl -X GET -H “X-Auth-token:admin” | python -mjson.tool


> Create a Role Deverloper_R:

curl -X POST -H “X-Auth-token:admin” -H “Content-type:application/json” -d @add_role.json

“role” : {
“name”: “developer_r”

> List Roles:

curl -X GET -H “X-Auth-token:admin”
? Projects/<project>/users -> not working;



1. http://api.openstack.org/api-ref-identity.html#identity-v3

Categories: keystone, openstack Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: