NetworkCreateRequest

@Serializable
data class NetworkCreateRequest(val name: String, val driver: String? = "bridge", val scope: String? = null, val internal: Boolean? = null, val attachable: Boolean? = null, val ingress: Boolean? = null, val configOnly: Boolean? = false, val configFrom: ConfigReference? = null, val IPAM: IPAM? = null, val enableIPv4: Boolean? = null, val enableIPv6: Boolean? = null, val options: Map<String, String>? = null, val labels: Map<String, String>? = null)

Parameters

name

The network's name.

driver

Name of the network driver plugin to use.

scope

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

`internal`

Restrict external access to the network.

attachable

Globally scoped network is manually attachable by regular containers from workers in swarm mode.

ingress

Ingress network is the network which provides the routing-mesh in swarm mode.

configOnly

Creates 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.

configFrom
IPAM
enableIPv4

Enable IPv4 on the network.

enableIPv6

Enable IPv6 on the network.

options

Network specific options to be used by the drivers.

labels

User-defined key/value metadata.

Constructors

Link copied to clipboard
constructor(name: String, driver: String? = "bridge", scope: String? = null, internal: Boolean? = null, attachable: Boolean? = null, ingress: Boolean? = null, configOnly: Boolean? = false, configFrom: ConfigReference? = null, IPAM: IPAM? = null, enableIPv4: Boolean? = null, enableIPv6: Boolean? = null, options: Map<String, String>? = null, labels: Map<String, String>? = 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 = "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 = "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")
@Required
val name: String
Link copied to clipboard
@SerialName(value = "Options")
val options: Map<String, String>?
Link copied to clipboard
@SerialName(value = "Scope")
val scope: String?