Network

@Serializable
data class Network(val name: String? = null, val id: String? = null, val created: String? = null, val scope: String? = null, val driver: String? = null, val enableIPv4: Boolean? = null, val enableIPv6: Boolean? = null, val IPAM: IPAM? = null, val internal: Boolean? = false, val attachable: Boolean? = false, val ingress: Boolean? = false, val configFrom: ConfigReference? = null, val configOnly: Boolean? = false, val containers: Map<String, NetworkContainer>? = null, val options: Map<String, String>? = null, val labels: Map<String, String>? = null, val peers: List<PeerInfo>? = null)

Parameters

name

Name of the network.

id

ID that uniquely identifies a network on a single machine.

created

Date and time at which the network was created in RFC 3339 format with nano-seconds.

scope

The level at which the network exists (e.g. swarm for cluster-wide or local for machine level)

driver

The name of the driver used to create the network (e.g. bridge, overlay).

enableIPv4

Whether the network was created with IPv4 enabled.

enableIPv6

Whether the network was created with IPv6 enabled.

IPAM
`internal`

Whether the network is created to only allow internal networking connectivity.

attachable

Whether a global / swarm scope network is manually attachable by regular containers from workers in swarm mode.

ingress

Whether the network is providing the routing-mesh for the swarm cluster.

configFrom
configOnly

Whether the network is a config-only network. Config-only networks are placeholder networks for network configurations to be used by other networks. Config-only networks cannot be used directly to run containers or services.

containers

Contains endpoints attached to the network.

options

Network-specific options uses when creating the network.

labels

User-defined key/value metadata.

peers

List of peer nodes for an overlay network. This field is only present for overlay networks, and omitted for other network types.

Constructors

Link copied to clipboard
constructor(name: String? = null, id: String? = null, created: String? = null, scope: String? = null, driver: String? = null, enableIPv4: Boolean? = null, enableIPv6: Boolean? = null, IPAM: IPAM? = null, internal: Boolean? = false, attachable: Boolean? = false, ingress: Boolean? = false, configFrom: ConfigReference? = null, configOnly: Boolean? = false, containers: Map<String, NetworkContainer>? = null, options: Map<String, String>? = null, labels: Map<String, String>? = null, peers: List<PeerInfo>? = null)

Properties

Link copied to clipboard
@SerialName(value = "Attachable")
val attachable: Boolean?
Link copied to clipboard
@SerialName(value = "ConfigFrom")
val configFrom: ConfigReference?
Link copied to clipboard
@SerialName(value = "ConfigOnly")
val configOnly: Boolean?
Link copied to clipboard
@SerialName(value = "Containers")
val containers: Map<String, NetworkContainer>?
Link copied to clipboard
@SerialName(value = "Created")
val created: String?
Link copied to clipboard
@SerialName(value = "Driver")
val driver: String?
Link copied to clipboard
@SerialName(value = "EnableIPv4")
val enableIPv4: Boolean?
Link copied to clipboard
@SerialName(value = "EnableIPv6")
val enableIPv6: Boolean?
Link copied to clipboard
@SerialName(value = "Id")
val id: String?
Link copied to clipboard
@SerialName(value = "Ingress")
val ingress: Boolean?
Link copied to clipboard
@SerialName(value = "Internal")
val internal: Boolean?
Link copied to clipboard
@SerialName(value = "IPAM")
val IPAM: IPAM?
Link copied to clipboard
@SerialName(value = "Labels")
val labels: Map<String, String>?
Link copied to clipboard
@SerialName(value = "Name")
val name: String?
Link copied to clipboard
@SerialName(value = "Options")
val options: Map<String, String>?
Link copied to clipboard
@SerialName(value = "Peers")
val peers: List<PeerInfo>?
Link copied to clipboard
@SerialName(value = "Scope")
val scope: String?