Merge pull request #28349 from allencloud/add-missing-code-in-api-docs
add missing status code of swarm cluster in api 1.24
This commit is contained in:
commit
535db46be5
2 changed files with 44 additions and 27 deletions
|
@ -56,7 +56,7 @@ info:
|
|||
|
||||
Docker version | API version | Changes
|
||||
----------------|-------------|---------
|
||||
1.13.x | [1.25](https://docs.docker.com/engine/api/v1.25/) | [API changes](https://docs.docker.com/engine/api/version-history/#v1-24-api-changes)
|
||||
1.13.x | [1.25](https://docs.docker.com/engine/api/v1.25/) | [API changes](https://docs.docker.com/engine/api/version-history/#v1-25-api-changes)
|
||||
1.12.x | [1.24](https://docs.docker.com/engine/api/v1.24/) | [API changes](https://docs.docker.com/engine/api/version-history/#v1-24-api-changes)
|
||||
1.11.x | [1.23](https://docs.docker.com/engine/api/v1.23/) | [API changes](https://docs.docker.com/engine/api/version-history/#v1-23-api-changes)
|
||||
1.10.x | [1.22](https://docs.docker.com/engine/api/v1.22/) | [API changes](https://docs.docker.com/engine/api/version-history/#v1-22-api-changes)
|
||||
|
|
|
@ -3963,6 +3963,7 @@ List nodes
|
|||
**Status codes**:
|
||||
|
||||
- **200** – no error
|
||||
- **406** - node is not part of a swarm
|
||||
- **500** – server error
|
||||
|
||||
#### Inspect a node
|
||||
|
@ -4045,6 +4046,7 @@ Return low-level information on the node `id`
|
|||
|
||||
- **200** – no error
|
||||
- **404** – no such node
|
||||
- **406** – node is not part of a swarm
|
||||
- **500** – server error
|
||||
|
||||
#### Remove a node
|
||||
|
@ -4073,6 +4075,7 @@ Remove a node from the swarm.
|
|||
|
||||
- **200** – no error
|
||||
- **404** – no such node
|
||||
- **406** – node is not part of a swarm
|
||||
- **500** – server error
|
||||
|
||||
#### Update a node
|
||||
|
@ -4128,6 +4131,7 @@ JSON Parameters:
|
|||
|
||||
- **200** – no error
|
||||
- **404** – no such node
|
||||
- **406** – node is not part of a swarm
|
||||
- **500** – server error
|
||||
|
||||
### 3.8 Swarm
|
||||
|
@ -4179,6 +4183,8 @@ Inspect swarm
|
|||
**Status codes**:
|
||||
|
||||
- **200** - no error
|
||||
- **406** – node is not part of a swarm
|
||||
- **500** - sever error
|
||||
|
||||
#### Initialize a new swarm
|
||||
|
||||
|
@ -4219,6 +4225,7 @@ Initialize a new swarm. The body of the HTTP response includes the node ID.
|
|||
- **200** – no error
|
||||
- **400** – bad parameter
|
||||
- **406** – node is already part of a swarm
|
||||
- **500** - server error
|
||||
|
||||
JSON Parameters:
|
||||
|
||||
|
@ -4285,6 +4292,7 @@ Join an existing swarm
|
|||
- **200** – no error
|
||||
- **400** – bad parameter
|
||||
- **406** – node is already part of a swarm
|
||||
- **500** - server error
|
||||
|
||||
JSON Parameters:
|
||||
|
||||
|
@ -4323,6 +4331,7 @@ Leave a swarm
|
|||
|
||||
- **200** – no error
|
||||
- **406** – node is not part of a swarm
|
||||
- **500** - server error
|
||||
|
||||
#### Update a swarm
|
||||
|
||||
|
@ -4377,6 +4386,7 @@ Update a swarm
|
|||
- **200** – no error
|
||||
- **400** – bad parameter
|
||||
- **406** – node is not part of a swarm
|
||||
- **500** - server error
|
||||
|
||||
JSON Parameters:
|
||||
|
||||
|
@ -4512,6 +4522,7 @@ List services
|
|||
**Status codes**:
|
||||
|
||||
- **200** – no error
|
||||
- **406** – node is not part of a swarm
|
||||
- **500** – server error
|
||||
|
||||
#### Create a service
|
||||
|
@ -4607,8 +4618,9 @@ image](#create-an-image) section for more details.
|
|||
**Status codes**:
|
||||
|
||||
- **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
|
||||
- **500** - server error
|
||||
|
||||
**JSON Parameters**:
|
||||
|
||||
|
@ -4708,6 +4720,7 @@ Stop and remove the service `id`
|
|||
|
||||
- **200** – no error
|
||||
- **404** – no such service
|
||||
- **406** - node is not part of a swarm
|
||||
- **500** – server error
|
||||
|
||||
#### Inspect one or more services
|
||||
|
@ -4797,6 +4810,7 @@ Return information on the service `id`.
|
|||
|
||||
- **200** – no error
|
||||
- **404** – no such service
|
||||
- **406** - node is not part of a swarm
|
||||
- **500** – server error
|
||||
|
||||
#### Update a service
|
||||
|
@ -4930,6 +4944,7 @@ image](#create-an-image) section for more details.
|
|||
|
||||
- **200** – no error
|
||||
- **404** – no such service
|
||||
- **406** - node is not part of a swarm
|
||||
- **500** – server error
|
||||
|
||||
### 3.10 Tasks
|
||||
|
@ -5132,14 +5147,15 @@ List tasks
|
|||
**Status codes**:
|
||||
|
||||
- **200** – no error
|
||||
- **406** - node is not part of a swarm
|
||||
- **500** – server error
|
||||
|
||||
#### Inspect a task
|
||||
|
||||
|
||||
`GET /tasks/(task id)`
|
||||
`GET /tasks/(id)`
|
||||
|
||||
Get details on a task
|
||||
Get details on the task `id`
|
||||
|
||||
**Example request**:
|
||||
|
||||
|
@ -5235,6 +5251,7 @@ Get details on a task
|
|||
|
||||
- **200** – no error
|
||||
- **404** – unknown task
|
||||
- **406** - node is not part of a swarm
|
||||
- **500** – server error
|
||||
|
||||
## 4. Going further
|
||||
|
|
Loading…
Reference in a new issue