@@ -2179,79 +2179,137 @@ definitions:
2179
2179
type : " object"
2180
2180
properties :
2181
2181
Name :
2182
+ description : |
2183
+ Name of the network.
2182
2184
type : " string"
2185
+ example : " my_network"
2183
2186
Id :
2187
+ description : |
2188
+ ID that uniquely identifies a network on a single machine.
2184
2189
type : " string"
2190
+ example : " 7d86d31b1478e7cca9ebed7e73aa0fdeec46c5ca29497431d3007d2d9e15ed99"
2185
2191
Created :
2192
+ description : |
2193
+ Date and time at which the network was created in
2194
+ [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
2186
2195
type : " string"
2187
2196
format : " dateTime"
2197
+ example : " 2016-10-19T04:33:30.360899459Z"
2188
2198
Scope :
2199
+ description : |
2200
+ The level at which the network exists (e.g. `swarm` for cluster-wide
2201
+ or `local` for machine level)
2189
2202
type : " string"
2203
+ example : " local"
2190
2204
Driver :
2205
+ description : |
2206
+ The name of the driver used to create the network (e.g. `bridge`,
2207
+ `overlay`).
2191
2208
type : " string"
2209
+ example : " overlay"
2192
2210
EnableIPv6 :
2211
+ description : |
2212
+ Whether the network was created with IPv6 enabled.
2193
2213
type : " boolean"
2214
+ example : false
2194
2215
IPAM :
2195
2216
$ref : " #/definitions/IPAM"
2196
2217
Internal :
2218
+ description : |
2219
+ Whether the network is created to only allow internal networking
2220
+ connectivity.
2197
2221
type : " boolean"
2222
+ default : false
2223
+ example : false
2198
2224
Attachable :
2225
+ description : |
2226
+ Wheter a global / swarm scope network is manually attachable by regular
2227
+ containers from workers in swarm mode.
2199
2228
type : " boolean"
2229
+ default : false
2230
+ example : false
2200
2231
Ingress :
2232
+ description : |
2233
+ Whether the network is providing the routing-mesh for the swarm cluster.
2201
2234
type : " boolean"
2235
+ default : false
2236
+ example : false
2237
+ ConfigFrom :
2238
+ $ref : " #/definitions/ConfigReference"
2239
+ ConfigOnly :
2240
+ description : |
2241
+ Whether the network is a config-only network. Config-only networks are
2242
+ placeholder networks for network configurations to be used by other
2243
+ networks. Config-only networks cannot be used directly to run containers
2244
+ or services.
2245
+ type : " boolean"
2246
+ default : false
2202
2247
Containers :
2248
+ description : |
2249
+ Contains endpoints attached to the network.
2203
2250
type : " object"
2204
2251
additionalProperties :
2205
2252
$ref : " #/definitions/NetworkContainer"
2253
+ example :
2254
+ 19a4d5d687db25203351ed79d478946f861258f018fe384f229f2efa4b23513c :
2255
+ Name : " test"
2256
+ EndpointID : " 628cadb8bcb92de107b2a1e516cbffe463e321f548feb37697cce00ad694f21a"
2257
+ MacAddress : " 02:42:ac:13:00:02"
2258
+ IPv4Address : " 172.19.0.2/16"
2259
+ IPv6Address : " "
2206
2260
Options :
2261
+ description : |
2262
+ Network-specific options uses when creating the network.
2207
2263
type : " object"
2208
2264
additionalProperties :
2209
2265
type : " string"
2266
+ example :
2267
+ com.docker.network.bridge.default_bridge : " true"
2268
+ com.docker.network.bridge.enable_icc : " true"
2269
+ com.docker.network.bridge.enable_ip_masquerade : " true"
2270
+ com.docker.network.bridge.host_binding_ipv4 : " 0.0.0.0"
2271
+ com.docker.network.bridge.name : " docker0"
2272
+ com.docker.network.driver.mtu : " 1500"
2210
2273
Labels :
2274
+ description : " User-defined key/value metadata."
2211
2275
type : " object"
2212
2276
additionalProperties :
2213
2277
type : " string"
2214
- example :
2215
- Name : " net01"
2216
- Id : " 7d86d31b1478e7cca9ebed7e73aa0fdeec46c5ca29497431d3007d2d9e15ed99"
2217
- Created : " 2016-10-19T04:33:30.360899459Z"
2218
- Scope : " local"
2219
- Driver : " bridge"
2220
- EnableIPv6 : false
2221
- IPAM :
2222
- Driver : " default"
2223
- Config :
2224
- - Subnet : " 172.19.0.0/16"
2225
- Gateway : " 172.19.0.1"
2226
- Options :
2227
- foo : " bar"
2228
- Internal : false
2229
- Attachable : false
2230
- Ingress : false
2231
- Containers :
2232
- 19a4d5d687db25203351ed79d478946f861258f018fe384f229f2efa4b23513c :
2233
- Name : " test"
2234
- EndpointID : " 628cadb8bcb92de107b2a1e516cbffe463e321f548feb37697cce00ad694f21a"
2235
- MacAddress : " 02:42:ac:13:00:02"
2236
- IPv4Address : " 172.19.0.2/16"
2237
- IPv6Address : " "
2238
- Options :
2239
- com.docker.network.bridge.default_bridge : " true"
2240
- com.docker.network.bridge.enable_icc : " true"
2241
- com.docker.network.bridge.enable_ip_masquerade : " true"
2242
- com.docker.network.bridge.host_binding_ipv4 : " 0.0.0.0"
2243
- com.docker.network.bridge.name : " docker0"
2244
- com.docker.network.driver.mtu : " 1500"
2245
- Labels :
2246
- com.example.some-label : " some-value"
2247
- com.example.some-other-label : " some-other-value"
2278
+ example :
2279
+ com.example.some-label : " some-value"
2280
+ com.example.some-other-label : " some-other-value"
2281
+ Peers :
2282
+ description : |
2283
+ List of peer nodes for an overlay network. This field is only present
2284
+ for overlay networks, and omitted for other network types.
2285
+ type : " array"
2286
+ items :
2287
+ $ref : " #/definitions/PeerInfo"
2288
+ x-nullable : true
2289
+ # TODO: Add Services (only present when "verbose" is set).
2290
+
2291
+ ConfigReference :
2292
+ description : |
2293
+ The config-only network source to provide the configuration for
2294
+ this network.
2295
+ type : " object"
2296
+ properties :
2297
+ Network :
2298
+ description : |
2299
+ The name of the config-only network that provides the network's
2300
+ configuration. The specified network must be an existing config-only
2301
+ network. Only network names are allowed, not network IDs.
2302
+ type : " string"
2303
+ example : " config_only_network_01"
2304
+
2248
2305
IPAM :
2249
2306
type : " object"
2250
2307
properties :
2251
2308
Driver :
2252
2309
description : " Name of the IPAM driver to use."
2253
2310
type : " string"
2254
2311
default : " default"
2312
+ example : " default"
2255
2313
Config :
2256
2314
description : |
2257
2315
List of IPAM configuration options, specified as a map:
@@ -2267,16 +2325,21 @@ definitions:
2267
2325
type : " object"
2268
2326
additionalProperties :
2269
2327
type : " string"
2328
+ example :
2329
+ foo : " bar"
2270
2330
2271
2331
IPAMConfig :
2272
2332
type : " object"
2273
2333
properties :
2274
2334
Subnet :
2275
2335
type : " string"
2336
+ example : " 172.20.0.0/16"
2276
2337
IPRange :
2277
2338
type : " string"
2339
+ example : " 172.20.10.0/24"
2278
2340
Gateway :
2279
2341
type : " string"
2342
+ example : " 172.20.10.11"
2280
2343
AuxiliaryAddresses :
2281
2344
type : " object"
2282
2345
additionalProperties :
@@ -2287,14 +2350,35 @@ definitions:
2287
2350
properties :
2288
2351
Name :
2289
2352
type : " string"
2353
+ example : " container_1"
2290
2354
EndpointID :
2291
2355
type : " string"
2356
+ example : " 628cadb8bcb92de107b2a1e516cbffe463e321f548feb37697cce00ad694f21a"
2292
2357
MacAddress :
2293
2358
type : " string"
2359
+ example : " 02:42:ac:13:00:02"
2294
2360
IPv4Address :
2295
2361
type : " string"
2362
+ example : " 172.19.0.2/16"
2296
2363
IPv6Address :
2297
2364
type : " string"
2365
+ example : " "
2366
+
2367
+ PeerInfo :
2368
+ description : |
2369
+ PeerInfo represents one peer of an overlay network.
2370
+ type : " object"
2371
+ properties :
2372
+ Name :
2373
+ description :
2374
+ ID of the peer-node in the Swarm cluster.
2375
+ type : " string"
2376
+ example : " 6869d7c1732b"
2377
+ IP :
2378
+ description :
2379
+ IP-address of the peer-node in the Swarm cluster.
2380
+ type : " string"
2381
+ example : " 10.133.77.91"
2298
2382
2299
2383
BuildInfo :
2300
2384
type : " object"
@@ -10104,14 +10188,22 @@ paths:
10104
10188
Name :
10105
10189
description : " The network's name."
10106
10190
type : " string"
10191
+ example : " my_network"
10107
10192
CheckDuplicate :
10108
10193
description : |
10109
10194
Deprecated: CheckDuplicate is now always enabled.
10110
10195
type : " boolean"
10196
+ example : true
10111
10197
Driver :
10112
10198
description : " Name of the network driver plugin to use."
10113
10199
type : " string"
10114
10200
default : " bridge"
10201
+ example : " bridge"
10202
+ Scope :
10203
+ description : |
10204
+ The level at which the network exists (e.g. `swarm` for cluster-wide
10205
+ or `local` for machine level).
10206
+ type : " string"
10115
10207
Internal :
10116
10208
description : " Restrict external access to the network."
10117
10209
type : " boolean"
@@ -10120,55 +10212,55 @@ paths:
10120
10212
Globally scoped network is manually attachable by regular
10121
10213
containers from workers in swarm mode.
10122
10214
type : " boolean"
10215
+ example : true
10123
10216
Ingress :
10124
10217
description : |
10125
10218
Ingress network is the network which provides the routing-mesh
10126
10219
in swarm mode.
10127
10220
type : " boolean"
10221
+ example : false
10222
+ ConfigOnly :
10223
+ description : |
10224
+ Creates a config-only network. Config-only networks are placeholder
10225
+ networks for network configurations to be used by other networks.
10226
+ Config-only networks cannot be used directly to run containers
10227
+ or services.
10228
+ type : " boolean"
10229
+ default : false
10230
+ example : false
10231
+ ConfigFrom :
10232
+ description : |
10233
+ Specifies the source which will provide the configuration for
10234
+ this network. The specified network must be an existing
10235
+ config-only network; see ConfigOnly.
10236
+ $ref : " #/definitions/ConfigReference"
10128
10237
IPAM :
10129
10238
description : " Optional custom IP scheme for the network."
10130
10239
$ref : " #/definitions/IPAM"
10131
10240
EnableIPv6 :
10132
10241
description : " Enable IPv6 on the network."
10133
10242
type : " boolean"
10243
+ example : true
10134
10244
Options :
10135
10245
description : " Network specific options to be used by the drivers."
10136
10246
type : " object"
10137
10247
additionalProperties :
10138
10248
type : " string"
10249
+ example :
10250
+ com.docker.network.bridge.default_bridge : " true"
10251
+ com.docker.network.bridge.enable_icc : " true"
10252
+ com.docker.network.bridge.enable_ip_masquerade : " true"
10253
+ com.docker.network.bridge.host_binding_ipv4 : " 0.0.0.0"
10254
+ com.docker.network.bridge.name : " docker0"
10255
+ com.docker.network.driver.mtu : " 1500"
10139
10256
Labels :
10140
10257
description : " User-defined key/value metadata."
10141
10258
type : " object"
10142
10259
additionalProperties :
10143
10260
type : " string"
10144
- example :
10145
- Name : " isolated_nw"
10146
- CheckDuplicate : false
10147
- Driver : " bridge"
10148
- EnableIPv6 : true
10149
- IPAM :
10150
- Driver : " default"
10151
- Config :
10152
- - Subnet : " 172.20.0.0/16"
10153
- IPRange : " 172.20.10.0/24"
10154
- Gateway : " 172.20.10.11"
10155
- - Subnet : " 2001:db8:abcd::/64"
10156
- Gateway : " 2001:db8:abcd::1011"
10157
- Options :
10158
- foo : " bar"
10159
- Internal : true
10160
- Attachable : false
10161
- Ingress : false
10162
- Options :
10163
- com.docker.network.bridge.default_bridge : " true"
10164
- com.docker.network.bridge.enable_icc : " true"
10165
- com.docker.network.bridge.enable_ip_masquerade : " true"
10166
- com.docker.network.bridge.host_binding_ipv4 : " 0.0.0.0"
10167
- com.docker.network.bridge.name : " docker0"
10168
- com.docker.network.driver.mtu : " 1500"
10169
- Labels :
10170
- com.example.some-label : " some-value"
10171
- com.example.some-other-label : " some-other-value"
10261
+ example :
10262
+ com.example.some-label : " some-value"
10263
+ com.example.some-other-label : " some-other-value"
10172
10264
tags : ["Network"]
10173
10265
10174
10266
/networks/{id}/connect :
0 commit comments