1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #29216 from allencloud/add-status-code-403-for-services-create

add missing status code 403 for services/create in docs
This commit is contained in:
Vincent Demeester 2016-12-13 12:27:56 +01:00 committed by GitHub
commit 1bc942597d
2 changed files with 10 additions and 0 deletions

View file

@ -7139,6 +7139,10 @@ paths:
example: example:
ID: "ak7w3gjqoa3kuz8xcpnyy0pvl" ID: "ak7w3gjqoa3kuz8xcpnyy0pvl"
Warning: "unable to pin image doesnotexist:latest to digest: image library/doesnotexist:latest not found" Warning: "unable to pin image doesnotexist:latest to digest: image library/doesnotexist:latest not found"
403:
description: "network is not eligible for services"
schema:
$ref: "#/definitions/ErrorResponse"
409: 409:
description: "name conflicts with an existing service" description: "name conflicts with an existing service"
schema: schema:

View file

@ -4563,6 +4563,11 @@ image](#create-an-image) section for more details.
], ],
"User": "33" "User": "33"
}, },
"Networks": [
{
"Target": "overlay1"
}
],
"LogDriver": { "LogDriver": {
"Name": "json-file", "Name": "json-file",
"Options": { "Options": {
@ -4620,6 +4625,7 @@ image](#create-an-image) section for more details.
**Status codes**: **Status codes**:
- **201** no error - **201** no error
- **403** - network is not eligible for services
- **406** 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 - **500** - server error