Skip to content

Commit

Permalink
api: swagger: Network: add Peers
Browse files Browse the repository at this point in the history
Add documentation for the Peers field.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed May 27, 2024
1 parent 4412553 commit 53542fe
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2206,7 +2206,7 @@ definitions:
The name of the driver used to create the network (e.g. `bridge`,
`overlay`).
type: "string"
example: "bridge"
example: "overlay"
EnableIPv6:
description: |
Whether the network was created with IPv6 enabled.
Expand Down Expand Up @@ -2278,6 +2278,15 @@ definitions:
example:
com.example.some-label: "some-value"
com.example.some-other-label: "some-other-value"
Peers:
description: |
List of peer nodes for an overlay network. This field is only present
for overlay networks, and omitted for other network types.
type: "array"
items:
$ref: "#/definitions/PeerInfo"
x-nullable: true
# TODO: Add Services (only present when "verbose" is set).

ConfigReference:
description: |
Expand Down Expand Up @@ -2355,6 +2364,22 @@ definitions:
type: "string"
example: ""

PeerInfo:
description: |
PeerInfo represents one peer of an overlay network.
type: "object"
properties:
Name:
description:
ID of the peer-node in the Swarm cluster.
type: "string"
example: "6869d7c1732b"
IP:
description:
IP-address of the peer-node in the Swarm cluster.
type: "string"
example: "10.133.77.91"

BuildInfo:
type: "object"
properties:
Expand Down

0 comments on commit 53542fe

Please sign in to comment.