Created
May 8, 2014 20:58
-
-
Save Yasushi/5adc22136a03bfe2c59b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% http POST http://localhost:4545/roles name=test chef_type=role json_class=Chef::Role default_attributes:='{}' description='' run_list:='["recipe[c]","recipe[a]","recipe[b]"]' override_attributes:='{}' | |
HTTP/1.1 201 Created | |
Content-Length: 53 | |
Content-Type: application/json | |
Date: Thu, 08 May 2014 20:55:25 GMT | |
X-Chef-Version: 11.0.11 | |
X-Goiardi: yes | |
X-Goiardi-Version: 0.5.0 | |
X-Ops-Api-Info: flavor=osc;version:11.0.11;goiardi=0.5.0 | |
{ | |
"uri": "http://frigg.h.lifelike.to:4545/roles/test" | |
} | |
% http http://localhost:4545/roles/test | |
HTTP/1.1 200 OK | |
Content-Length: 195 | |
Content-Type: application/json | |
Date: Thu, 08 May 2014 20:55:38 GMT | |
X-Chef-Version: 11.0.11 | |
X-Goiardi: yes | |
X-Goiardi-Version: 0.5.0 | |
X-Ops-Api-Info: flavor=osc;version:11.0.11;goiardi=0.5.0 | |
{ | |
"chef_type": "role", | |
"default_attributes": {}, | |
"description": "", | |
"env_run_lists": {}, | |
"json_class": "Chef::Role", | |
"name": "test", | |
"override_attributes": {}, | |
"run_list": [ | |
"recipe[c]", | |
"recipe[a]", | |
"recipe[b]" | |
] | |
} | |
% http http://localhost:4545/roles/test q==name:test | |
HTTP/1.1 200 OK | |
Content-Length: 195 | |
Content-Type: application/json | |
Date: Thu, 08 May 2014 20:57:02 GMT | |
X-Chef-Version: 11.0.11 | |
X-Goiardi: yes | |
X-Goiardi-Version: 0.5.0 | |
X-Ops-Api-Info: flavor=osc;version:11.0.11;goiardi=0.5.0 | |
{ | |
"chef_type": "role", | |
"default_attributes": {}, | |
"description": "", | |
"env_run_lists": {}, | |
"json_class": "Chef::Role", | |
"name": "test", | |
"override_attributes": {}, | |
"run_list": [ | |
"recipe[c]", | |
"recipe[a]", | |
"recipe[b]" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment