Signed-off-by: Allen Sun <shlallen1990@gmail.com>
| ... | ... |
@@ -6941,16 +6941,20 @@ paths: |
| 6941 | 6941 |
description: | |
| 6942 | 6942 |
A JSON encoded value of filters (a `map[string][]string`) to process on the event list. Available filters: |
| 6943 | 6943 |
|
| 6944 |
+ - `config=<string>` config name or ID |
|
| 6944 | 6945 |
- `container=<string>` container name or ID |
| 6945 | 6946 |
- `daemon=<string>` daemon name or ID |
| 6946 | 6947 |
- `event=<string>` event type |
| 6947 | 6948 |
- `image=<string>` image name or ID |
| 6948 | 6949 |
- `label=<string>` image or container label |
| 6949 | 6950 |
- `network=<string>` network name or ID |
| 6951 |
+ - `node=<string>` node ID |
|
| 6950 | 6952 |
- `plugin`=<string> plugin name or ID |
| 6951 | 6953 |
- `scope`=<string> local or swarm |
| 6952 |
- - `type=<string>` object to filter by, one of `container`, `image`, `volume`, `network`, `daemon`, `plugin`, `node`, `service` or `secret` |
|
| 6953 |
- - `volume=<string>` volume name or ID |
|
| 6954 |
+ - `secret=<string>` secret name or ID |
|
| 6955 |
+ - `service=<string>` service name or ID |
|
| 6956 |
+ - `type=<string>` object to filter by, one of `container`, `image`, `volume`, `network`, `daemon`, `plugin`, `node`, `service`, `secret` or `config` |
|
| 6957 |
+ - `volume=<string>` volume name |
|
| 6954 | 6958 |
type: "string" |
| 6955 | 6959 |
tags: ["System"] |
| 6956 | 6960 |
/system/df: |
| ... | ... |
@@ -27,6 +27,10 @@ func (ef *Filter) Include(ev events.Message) bool {
|
| 27 | 27 |
ef.matchVolume(ev) && |
| 28 | 28 |
ef.matchNetwork(ev) && |
| 29 | 29 |
ef.matchImage(ev) && |
| 30 |
+ ef.matchNode(ev) && |
|
| 31 |
+ ef.matchService(ev) && |
|
| 32 |
+ ef.matchSecret(ev) && |
|
| 33 |
+ ef.matchConfig(ev) && |
|
| 30 | 34 |
ef.matchLabels(ev.Actor.Attributes) |
| 31 | 35 |
} |
| 32 | 36 |
|
| ... | ... |
@@ -18,7 +18,8 @@ keywords: "API, Docker, rcli, REST, documentation" |
| 18 | 18 |
|
| 19 | 19 |
[Docker Engine API v1.33](https://docs.docker.com/engine/api/v1.33/) documentation |
| 20 | 20 |
|
| 21 |
- |
|
| 21 |
+* `GET /events` now supports filtering 4 more kinds of events: `config`, `node`, |
|
| 22 |
+`secret` and `service`. |
|
| 22 | 23 |
|
| 23 | 24 |
## v1.32 API changes |
| 24 | 25 |
|