浏览代码

Merge pull request #34035 from allencloud/add-cluster-event-details-in-swagger

add cluster events details in swagger.yml
Victor Vieux 8 年之前
父节点
当前提交
6978a6e25a
共有 1 个文件被更改,包括 12 次插入5 次删除
  1. 12 5
      api/swagger.yaml

+ 12 - 5
api/swagger.yaml

@@ -5662,16 +5662,22 @@ paths:
 
 
         Various objects within Docker report events when something happens to them.
         Various objects within Docker report events when something happens to them.
 
 
-        Containers report these events: `attach, commit, copy, create, destroy, detach, die, exec_create, exec_detach, exec_start, export, health_status, kill, oom, pause, rename, resize, restart, start, stop, top, unpause, update`
+        Containers report these events: `attach`, `commit`, `copy`, `create`, `destroy`, `detach`, `die`, `exec_create`, `exec_detach`, `exec_start`, `export`, `health_status`, `kill`, `oom`, `pause`, `rename`, `resize`, `restart`, `start`, `stop`, `top`, `unpause`, and `update`
 
 
-        Images report these events: `delete, import, load, pull, push, save, tag, untag`
+        Images report these events: `delete`, `import`, `load`, `pull`, `push`, `save`, `tag`, and `untag`
 
 
-        Volumes report these events: `create, mount, unmount, destroy`
+        Volumes report these events: `create`, `mount`, `unmount`, and `destroy`
 
 
-        Networks report these events: `create, connect, disconnect, destroy`
+        Networks report these events: `create`, `connect`, `disconnect`, `destroy`, `update`, and `remove`
 
 
         The Docker daemon reports these events: `reload`
         The Docker daemon reports these events: `reload`
 
 
+        Services report these events: `create`, `update`, and `remove`
+
+        Nodes report these events: `create`, `update`, and `remove`
+
+        Secrets report these events: `create`, `update`, and `remove`
+
       operationId: "SystemEvents"
       operationId: "SystemEvents"
       produces:
       produces:
         - "application/json"
         - "application/json"
@@ -5745,7 +5751,8 @@ paths:
             - `label=<string>` image or container label
             - `label=<string>` image or container label
             - `network=<string>` network name or ID
             - `network=<string>` network name or ID
             - `plugin`=<string> plugin name or ID
             - `plugin`=<string> plugin name or ID
-            - `type=<string>` object to filter by, one of `container`, `image`, `volume`, `network`, or `daemon`
+            - `scope`=<string> local or swarm
+            - `type=<string>` object to filter by, one of `container`, `image`, `volume`, `network`, `daemon`, `plugin`, `node`, `service` or `secret`
             - `volume=<string>` volume name or ID
             - `volume=<string>` volume name or ID
           type: "string"
           type: "string"
       tags: ["System"]
       tags: ["System"]