Create User using an API call [closed]
Hi , May i know how to create the Openstack User using the api call .
Regards , Lokesh.S
First time here? Check out the FAQ!
Hi , May i know how to create the Openstack User using the api call .
Regards , Lokesh.S
Apologies; It seemed I misunderstood the 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 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"
}
}
Helo KeithJ ,
That worked fine ,Thanks for the reply
I have used the code as shown below , here is the post data that i have sent along with the curl
$post='{"user":{"name":"guru", "email":"guru@guru.com", "enabled":true, "OS-KSADM:password":"password123"}}';
Regards , Lokesh.S
Hello Keith ,
A small issue am facing here in relating the project_id to a user . If i use "default_project_id":"...", this parameter while creating the user , will this creates a user along with the project that relates the project & user ? or is there any other way of mapping ???
Asked: 2014-02-25 01:23:57 -0600
Seen: 95 times
Last updated: Feb 26 '14