Skip to content

Instantly share code, notes, and snippets.

@jimrollenhagen
Created May 24, 2016 13:27
stack@jroll-devstack:~$ curl -X POST -H "Content-Type: application/json" --data-binary '{"params": {"foo": "bar"}, "name": "iscsi.start_iscsi_target"}' http://localhost:9999/v1/commands | python -m json.tool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 382 100 320 100 62 94618 18332 --:--:-- --:--:-- --:--:-- 104k
{
"command_error": {
"code": 500,
"details": "",
"message": "start_iscsi_target() got an unexpected keyword argument 'foo'",
"type": "TypeError"
},
"command_name": "iscsi.start_iscsi_target",
"command_params": {
"foo": "bar"
},
"command_result": null,
"command_status": "FAILED",
"id": "0ea5b448-8845-423b-b511-912dcc32f2e3"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment