|
@@ -2739,7 +2739,9 @@ Content-Type: application/json
|
|
|
|
|
|
#### Inspect network
|
|
#### Inspect network
|
|
|
|
|
|
-`GET /networks/<network-id>`
|
|
|
|
|
|
+`GET /networks/(id or name)`
|
|
|
|
+
|
|
|
|
+Return low-level information on the network `id`
|
|
|
|
|
|
**Example request**:
|
|
**Example request**:
|
|
|
|
|
|
@@ -2787,6 +2789,7 @@ Content-Type: application/json
|
|
|
|
|
|
- **200** - no error
|
|
- **200** - no error
|
|
- **404** - network not found
|
|
- **404** - network not found
|
|
|
|
+- **500** - server error
|
|
|
|
|
|
#### Create a network
|
|
#### Create a network
|
|
|
|
|
|
@@ -2853,7 +2856,7 @@ Content-Type: application/json
|
|
|
|
|
|
#### Connect a container to a network
|
|
#### Connect a container to a network
|
|
|
|
|
|
-`POST /networks/(id)/connect`
|
|
|
|
|
|
+`POST /networks/(id or name)/connect`
|
|
|
|
|
|
Connect a container to a network
|
|
Connect a container to a network
|
|
|
|
|
|
@@ -2884,7 +2887,7 @@ Content-Type: application/json
|
|
|
|
|
|
#### Disconnect a container from a network
|
|
#### Disconnect a container from a network
|
|
|
|
|
|
-`POST /networks/(id)/disconnect`
|
|
|
|
|
|
+`POST /networks/(id or name)/disconnect`
|
|
|
|
|
|
Disconnect a container from a network
|
|
Disconnect a container from a network
|
|
|
|
|
|
@@ -2915,7 +2918,7 @@ Content-Type: application/json
|
|
|
|
|
|
#### Remove a network
|
|
#### Remove a network
|
|
|
|
|
|
-`DELETE /networks/(id)`
|
|
|
|
|
|
+`DELETE /networks/(id or name)`
|
|
|
|
|
|
Instruct the driver to remove the network (`id`).
|
|
Instruct the driver to remove the network (`id`).
|
|
|
|
|
|
@@ -2930,6 +2933,7 @@ Instruct the driver to remove the network (`id`).
|
|
**Status codes**:
|
|
**Status codes**:
|
|
|
|
|
|
- **200** - no error
|
|
- **200** - no error
|
|
|
|
+- **403** - operation not supported for pre-defined networks
|
|
- **404** - no such network
|
|
- **404** - no such network
|
|
- **500** - server error
|
|
- **500** - server error
|
|
|
|
|