Update API history and example response for volume CreatedAt
This adds the new `CreatedAt` field to the API version history
and updates some examples to show this information.
The `CreatedAt` field was implemented in a46f757c40
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
fa7db52e26
commit
48a83a3a18
|
@ -1058,7 +1058,7 @@ definitions:
|
||||||
CreatedAt:
|
CreatedAt:
|
||||||
type: "string"
|
type: "string"
|
||||||
format: "dateTime"
|
format: "dateTime"
|
||||||
description: "Time volume was created."
|
description: "Date/Time the volume was created."
|
||||||
Status:
|
Status:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: |
|
description: |
|
||||||
|
@ -6257,7 +6257,8 @@ paths:
|
||||||
examples:
|
examples:
|
||||||
application/json:
|
application/json:
|
||||||
Volumes:
|
Volumes:
|
||||||
- Name: "tardis"
|
- CreatedAt: "2017-07-19T12:00:26Z"
|
||||||
|
Name: "tardis"
|
||||||
Driver: "local"
|
Driver: "local"
|
||||||
Mountpoint: "/var/lib/docker/volumes/tardis"
|
Mountpoint: "/var/lib/docker/volumes/tardis"
|
||||||
Labels:
|
Labels:
|
||||||
|
|
|
@ -7,7 +7,7 @@ package types
|
||||||
// swagger:model Volume
|
// swagger:model Volume
|
||||||
type Volume struct {
|
type Volume struct {
|
||||||
|
|
||||||
// Time volume was created.
|
// Date/Time the volume was created.
|
||||||
CreatedAt string `json:"CreatedAt,omitempty"`
|
CreatedAt string `json:"CreatedAt,omitempty"`
|
||||||
|
|
||||||
// Name of the volume driver used by the volume.
|
// Name of the volume driver used by the volume.
|
||||||
|
|
|
@ -28,6 +28,13 @@ keywords: "API, Docker, rcli, REST, documentation"
|
||||||
* `GET /images/(name)/get` now includes an `ImageMetadata` field which contains image metadata that is local to the engine and not part of the image config.
|
* `GET /images/(name)/get` now includes an `ImageMetadata` field which contains image metadata that is local to the engine and not part of the image config.
|
||||||
* `POST /services/create` now accepts a `PluginSpec` when `TaskTemplate.Runtime` is set to `plugin`
|
* `POST /services/create` now accepts a `PluginSpec` when `TaskTemplate.Runtime` is set to `plugin`
|
||||||
* `GET /events` now supports config events `create`, `update` and `remove` that are emitted when users create, update or remove a config
|
* `GET /events` now supports config events `create`, `update` and `remove` that are emitted when users create, update or remove a config
|
||||||
|
* `GET /volumes/` and `GET /volumes/{name}` now return a `CreatedAt` field,
|
||||||
|
containing the date/time the volume was created. This field is omitted if the
|
||||||
|
creation date/time for the volume is unknown. For volumes with scope "global",
|
||||||
|
this field represents the creation date/time of the local _instance_ of the
|
||||||
|
volume, which may differ from instances of the same volume on different nodes.
|
||||||
|
* `GET /system/df` now returns a `CreatedAt` field for `Volumes`. Refer to the
|
||||||
|
`/volumes/` endpoint for a description of this field.
|
||||||
|
|
||||||
## v1.30 API changes
|
## v1.30 API changes
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue