mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
docs follow-ups for networks "dangling" filter
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
8df160dde7
commit
ca91918dd4
3 changed files with 11 additions and 3 deletions
|
@ -8088,6 +8088,10 @@ paths:
|
|||
description: |
|
||||
JSON encoded value of the filters (a `map[string][]string`) to process on the networks list. Available filters:
|
||||
|
||||
- `dangling=<boolean>` When set to `true` (or `1`), returns all
|
||||
networks that are not in use by a container. When set to `false`
|
||||
(or `0`), only networks that are in use by one or more
|
||||
containers are returned.
|
||||
- `driver=<driver-name>` Matches a network's driver.
|
||||
- `id=<network-id>` Matches all or part of a network ID.
|
||||
- `label=<key>` or `label=<key>=<value>` of a network label.
|
||||
|
|
|
@ -112,13 +112,13 @@ type ConfigReference struct {
|
|||
}
|
||||
|
||||
var acceptedFilters = map[string]bool{
|
||||
"dangling": true,
|
||||
"driver": true,
|
||||
"type": true,
|
||||
"name": true,
|
||||
"id": true,
|
||||
"label": true,
|
||||
"name": true,
|
||||
"scope": true,
|
||||
"dangling": true,
|
||||
"type": true,
|
||||
}
|
||||
|
||||
// ValidateFilters validates the list of filter args with the available filters.
|
||||
|
|
|
@ -35,6 +35,10 @@ keywords: "API, Docker, rcli, REST, documentation"
|
|||
* `POST /services/{id}/update` now includes `Runtime` as an option in `ContainerSpec.Configs`
|
||||
* `GET /tasks` now returns `Sysctls` as part of the `ContainerSpec`.
|
||||
* `GET /tasks/{id}` now returns `Sysctls` as part of the `ContainerSpec`.
|
||||
* `GET /networks` now supports a `dangling` filter type. When set to `true` (or
|
||||
`1`), the endpoint returns all networks that are not in use by a container. When
|
||||
set to `false` (or `0`), only networks that are in use by one or more containers
|
||||
are returned.
|
||||
* `GET /nodes` now supports a filter type `node.label` filter to filter nodes based
|
||||
on the node.label. The format of the label filter is `node.label=<key>`/`node.label=<key>=<value>`
|
||||
to return those with the specified labels, or `node.label!=<key>`/`node.label!=<key>=<value>`
|
||||
|
|
Loading…
Reference in a new issue