Merge pull request #46713 from p-fruck/docs/api-network-connect-403

This commit is contained in:
Brian Goff 2023-11-09 12:48:59 -08:00 committed by GitHub
commit 99638f5f76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10089,6 +10089,7 @@ paths:
/networks/{id}/connect:
post:
summary: "Connect a container to a network"
description: "The network must be either a local-scoped network or a swarm-scoped network with the `attachable` option set. A network cannot be re-attached to a running container"
operationId: "NetworkConnect"
consumes:
- "application/json"
@ -10100,7 +10101,7 @@ paths:
schema:
$ref: "#/definitions/ErrorResponse"
403:
description: "Operation not supported for swarm scoped networks"
description: "Operation forbidden"
schema:
$ref: "#/definitions/ErrorResponse"
404: