Revision history [back]

click to hide/show revision 1
initial version

You need to use the keystone service. You need to know the following before you start:

tenant-id username password are mandatory email is optional. you choose true or false for enabled.

openstack@b3dbm2:~$ keystone user-create --name testuser --tenant-id 89248b3b66894da984a78eb165a3ee17 --pass testuser --email joe.bloggs@gmail.com --enabled true

+----------+----------------------------------+
| Property |              Value               |
+----------+----------------------------------+
|  email   |       joe.bloggs@gmail.com       |
| enabled  |               True               |
|    id    | c6230b1256114deeba87745af94e00ec |
|   name   |             testuser             |
| tenantId | 89248b3b66894da984a78eb165a3ee17 |
+----------+----------------------------------+

You need to use Apologies; It seemed I misunderstood the keystone service. You need to know question. But from teh manuals I found this:

http://api.openstack.org/api-ref-identity.html

and if you look under users you will find this when you click on the following before you start:

tenant-id username password are mandatory email is optional. you choose true or false for enabled.

openstack@b3dbm2:~$ keystone user-create --name testuser --tenant-id 89248b3b66894da984a78eb165a3ee17 --pass testuser --email joe.bloggs@gmail.com --enabled true

+----------+----------------------------------+
| Property |              Value               |
+----------+----------------------------------+
|  email   |       joe.bloggs@gmail.com       |
| enabled  |               True               |
|    id    | c6230b1256114deeba87745af94e00ec |
|   name   |             testuser             |
| tenantId | 89248b3b66894da984a78eb165a3ee17 |
+----------+----------------------------------+
detail button

POSTv3/users Adds a user.

Normal Response Codes201 Error Response CodesidentityFault (400, 500, …), badRequest (400), unauthorized (401), forbidden (403), badMethod (405), overLimit (413), serviceUnavailable (503), itemNotFound (404) { "user":{ "default_project_id":"...", "description":"...", "domain_id":"--optional--", "email":"...", "enabled":"...", "name":"...", "password":"--optional--" } } { "user": { "default_project_id": "--default-project-id--", "description": "a user", "domain_id": "1789d1", "email": "...", "enabled":true, "id": "--user-id--", "links": { "self": "http://identity:35357/v3/users/--user-id--" }, "name": "admin" } }

Apologies; It seemed I misunderstood the question.    But from teh manuals I found this:

http://api.openstack.org/api-ref-identity.html

this: http://api.openstack.org/api-ref-identity.html and if you look under users you will find this when you click on the detail button

button POSTv3/users Adds a user.

user. Normal Response Codes201 Error Response CodesidentityFault (400, 500, …), badRequest (400), unauthorized (401), forbidden (403), badMethod (405), overLimit (413), serviceUnavailable (503), itemNotFound (404) { "user":{ "default_project_id":"...", "description":"...", "domain_id":"--optional--", "email":"...", "enabled":"...", "name":"...", "password":"--optional--" } } { "user": { "default_project_id": "--default-project-id--", "description": "a user", "domain_id": "1789d1", "email": "...", "enabled":true, "id": "--user-id--", "links": { "self": "http://identity:35357/v3/users/--user-id--" }, "name": "admin" } }

}