Fix api-ref for container execute

Change-Id: I7a912f99df3f303066334b9cf6b59ae75222b178
This commit is contained in:
Feng Shengqin 2017-11-23 16:31:09 +08:00 committed by feng.shengqin
parent 55e316b19e
commit 961d5f92ee
3 changed files with 9 additions and 4 deletions

View File

@ -1035,9 +1035,10 @@ Response
.. note::
There are two possible responses. If the run parameter is set to true,
the output will be {"output": "...", "exit_code": "..."}. Otherwise,
the output will be {"exec_id": "...", "url": "..."}.
If the run parameter is set to true, the output will be
{"output": "...", "exit_code": "...", "exec_id": None, "url": None}.
Otherwise, the output will be
{"output": None, "exit_code": None, "exec_id": "...", "url": "..."}.
Response Example
----------------

View File

@ -1,4 +1,6 @@
{
"output": null,
"exit_code": null,
"url": "tcp://172.16.1.45:2375",
"exec_id": "3c851c568fc9f21bdb77b7ba98eb1c6ae0c901f56dfb1471de4d6af7c73dbf4d"
}

View File

@ -1,4 +1,6 @@
{
"output": "Mon Oct 9 09:09:32 UTC 2017\n",
"exit_code": 0
"exit_code": 0,
"exec_id": null,
"url": null
}