Skip to content

Instantly share code, notes, and snippets.

@antonym
Created March 14, 2017 23:43
Show Gist options
  • Save antonym/13b16c4673e9056c8f6792420b2764ef to your computer and use it in GitHub Desktop.
Save antonym/13b16c4673e9056c8f6792420b2764ef to your computer and use it in GitHub Desktop.
positron: ant$ curl -i http://10.22.226.230:7780/v1/users -d '{"username": "raxuser3", "project_id": "0dbc92a5b2894b50a7a16633f60fedcf"}' -H "Content-Type: application/json" -H "X-Auth-Token: fdc54a0f872f8c6a36c07015913b6b70" -H "X-Auth-User: bootstrap" -H "X-Auth-Project: 4b2f799d-08dd-4d85-89d9-e647dd131420"
HTTP/1.0 201 CREATED
Date: Tue, 14 Mar 2017 23:34:19 GMT
Server: WSGIServer/0.2 CPython/3.5.2
Content-Type: application/json
Content-Length: 238
Location: http://10.22.226.230:7780/v1/users/4
x-openstack-request-id: req-527d886c-16e6-4f45-88c5-3128d05c955c
{
"api_key": "d0c62e86-53f6-46ae-84f2-e14e4fd890ea",
"created_at": "2017-03-14T23:34:19.779790",
"id": 4,
"is_admin": false,
"project_id": "4b2f799d-08dd-4d85-89d9-e647dd131420",
"updated_at": null,
"username": "raxuser3"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment