mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
add missing status code in api docs
Signed-off-by: allencloud <allen.sun@daocloud.io>
(cherry picked from commit 9a1f7b6b0b
)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
parent
1b195847f4
commit
69f3cb179e
1 changed files with 43 additions and 26 deletions
|
@ -3962,8 +3962,9 @@ List nodes
|
||||||
|
|
||||||
**Status codes**:
|
**Status codes**:
|
||||||
|
|
||||||
- **200** – no error
|
- **200** – no error
|
||||||
- **500** – server error
|
- **406** - node is not part of a swarm
|
||||||
|
- **500** – server error
|
||||||
|
|
||||||
#### Inspect a node
|
#### Inspect a node
|
||||||
|
|
||||||
|
@ -4045,6 +4046,7 @@ Return low-level information on the node `id`
|
||||||
|
|
||||||
- **200** – no error
|
- **200** – no error
|
||||||
- **404** – no such node
|
- **404** – no such node
|
||||||
|
- **406** – node is not part of a swarm
|
||||||
- **500** – server error
|
- **500** – server error
|
||||||
|
|
||||||
#### Remove a node
|
#### Remove a node
|
||||||
|
@ -4073,6 +4075,7 @@ Remove a node from the swarm.
|
||||||
|
|
||||||
- **200** – no error
|
- **200** – no error
|
||||||
- **404** – no such node
|
- **404** – no such node
|
||||||
|
- **406** – node is not part of a swarm
|
||||||
- **500** – server error
|
- **500** – server error
|
||||||
|
|
||||||
#### Update a node
|
#### Update a node
|
||||||
|
@ -4128,6 +4131,7 @@ JSON Parameters:
|
||||||
|
|
||||||
- **200** – no error
|
- **200** – no error
|
||||||
- **404** – no such node
|
- **404** – no such node
|
||||||
|
- **406** – node is not part of a swarm
|
||||||
- **500** – server error
|
- **500** – server error
|
||||||
|
|
||||||
### 3.8 Swarm
|
### 3.8 Swarm
|
||||||
|
@ -4178,7 +4182,9 @@ Inspect swarm
|
||||||
|
|
||||||
**Status codes**:
|
**Status codes**:
|
||||||
|
|
||||||
- **200** - no error
|
- **200** - no error
|
||||||
|
- **406** – node is not part of a swarm
|
||||||
|
- **500** - sever error
|
||||||
|
|
||||||
#### Initialize a new swarm
|
#### Initialize a new swarm
|
||||||
|
|
||||||
|
@ -4216,9 +4222,10 @@ Initialize a new swarm. The body of the HTTP response includes the node ID.
|
||||||
|
|
||||||
**Status codes**:
|
**Status codes**:
|
||||||
|
|
||||||
- **200** – no error
|
- **200** – no error
|
||||||
- **400** – bad parameter
|
- **400** – bad parameter
|
||||||
- **406** – node is already part of a swarm
|
- **406** – node is already part of a swarm
|
||||||
|
- **500** - server error
|
||||||
|
|
||||||
JSON Parameters:
|
JSON Parameters:
|
||||||
|
|
||||||
|
@ -4282,9 +4289,10 @@ Join an existing swarm
|
||||||
|
|
||||||
**Status codes**:
|
**Status codes**:
|
||||||
|
|
||||||
- **200** – no error
|
- **200** – no error
|
||||||
- **400** – bad parameter
|
- **400** – bad parameter
|
||||||
- **406** – node is already part of a swarm
|
- **406** – node is already part of a swarm
|
||||||
|
- **500** - server error
|
||||||
|
|
||||||
JSON Parameters:
|
JSON Parameters:
|
||||||
|
|
||||||
|
@ -4321,8 +4329,9 @@ Leave a swarm
|
||||||
|
|
||||||
**Status codes**:
|
**Status codes**:
|
||||||
|
|
||||||
- **200** – no error
|
- **200** – no error
|
||||||
- **406** – node is not part of a swarm
|
- **406** – node is not part of a swarm
|
||||||
|
- **500** - server error
|
||||||
|
|
||||||
#### Update a swarm
|
#### Update a swarm
|
||||||
|
|
||||||
|
@ -4374,9 +4383,10 @@ Update a swarm
|
||||||
|
|
||||||
**Status codes**:
|
**Status codes**:
|
||||||
|
|
||||||
- **200** – no error
|
- **200** – no error
|
||||||
- **400** – bad parameter
|
- **400** – bad parameter
|
||||||
- **406** – node is not part of a swarm
|
- **406** – node is not part of a swarm
|
||||||
|
- **500** - server error
|
||||||
|
|
||||||
JSON Parameters:
|
JSON Parameters:
|
||||||
|
|
||||||
|
@ -4511,8 +4521,9 @@ List services
|
||||||
|
|
||||||
**Status codes**:
|
**Status codes**:
|
||||||
|
|
||||||
- **200** – no error
|
- **200** – no error
|
||||||
- **500** – server error
|
- **406** – node is not part of a swarm
|
||||||
|
- **500** – server error
|
||||||
|
|
||||||
#### Create a service
|
#### Create a service
|
||||||
|
|
||||||
|
@ -4606,9 +4617,10 @@ image](#create-an-image) section for more details.
|
||||||
|
|
||||||
**Status codes**:
|
**Status codes**:
|
||||||
|
|
||||||
- **201** – no error
|
- **201** – no error
|
||||||
- **406** – server error or node is not part of a swarm
|
- **406** – node is not part of a swarm
|
||||||
- **409** – name conflicts with an existing object
|
- **409** – name conflicts with an existing object
|
||||||
|
- **500** - server error
|
||||||
|
|
||||||
**JSON Parameters**:
|
**JSON Parameters**:
|
||||||
|
|
||||||
|
@ -4708,6 +4720,7 @@ Stop and remove the service `id`
|
||||||
|
|
||||||
- **200** – no error
|
- **200** – no error
|
||||||
- **404** – no such service
|
- **404** – no such service
|
||||||
|
- **406** - node is not part of a swarm
|
||||||
- **500** – server error
|
- **500** – server error
|
||||||
|
|
||||||
#### Inspect one or more services
|
#### Inspect one or more services
|
||||||
|
@ -4797,6 +4810,7 @@ Return information on the service `id`.
|
||||||
|
|
||||||
- **200** – no error
|
- **200** – no error
|
||||||
- **404** – no such service
|
- **404** – no such service
|
||||||
|
- **406** - node is not part of a swarm
|
||||||
- **500** – server error
|
- **500** – server error
|
||||||
|
|
||||||
#### Update a service
|
#### Update a service
|
||||||
|
@ -4930,6 +4944,7 @@ image](#create-an-image) section for more details.
|
||||||
|
|
||||||
- **200** – no error
|
- **200** – no error
|
||||||
- **404** – no such service
|
- **404** – no such service
|
||||||
|
- **406** - node is not part of a swarm
|
||||||
- **500** – server error
|
- **500** – server error
|
||||||
|
|
||||||
### 3.10 Tasks
|
### 3.10 Tasks
|
||||||
|
@ -5131,15 +5146,16 @@ List tasks
|
||||||
|
|
||||||
**Status codes**:
|
**Status codes**:
|
||||||
|
|
||||||
- **200** – no error
|
- **200** – no error
|
||||||
- **500** – server error
|
- **406** - node is not part of a swarm
|
||||||
|
- **500** – server error
|
||||||
|
|
||||||
#### Inspect a task
|
#### Inspect a task
|
||||||
|
|
||||||
|
|
||||||
`GET /tasks/(task id)`
|
`GET /tasks/(id)`
|
||||||
|
|
||||||
Get details on a task
|
Get details on the task `id`
|
||||||
|
|
||||||
**Example request**:
|
**Example request**:
|
||||||
|
|
||||||
|
@ -5233,9 +5249,10 @@ Get details on a task
|
||||||
|
|
||||||
**Status codes**:
|
**Status codes**:
|
||||||
|
|
||||||
- **200** – no error
|
- **200** – no error
|
||||||
- **404** – unknown task
|
- **404** – unknown task
|
||||||
- **500** – server error
|
- **406** - node is not part of a swarm
|
||||||
|
- **500** – server error
|
||||||
|
|
||||||
## 4. Going further
|
## 4. Going further
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue