kyvernon datastore
Datastore files
kyvernon datastore <COMMAND>Subcommands: remove, refresh, ls, mkdir, rm, orphans, cp, mv, upload, download
The datastore command of the kyvernon CLI with its subcommands and arguments.
kyvernon datastoreDatastore files
kyvernon datastore <COMMAND>Subcommands: remove, refresh, ls, mkdir, rm, orphans, cp, mv, upload, download
kyvernon datastore removeRemove a datastore from every host and the inventory (files stay on the storage)
kyvernon datastore remove <ID>| Argument | Description | Required |
|---|---|---|
<ID> | Datastore id | yes |
API operation: DELETE /v1/datastores/{id}
kyvernon datastore refreshMeasure the size and free space of a datastore on a host that mounts it
kyvernon datastore refresh <ID>| Argument | Description | Required |
|---|---|---|
<ID> | Datastore id | yes |
API operation: POST /v1/datastores/{id}/refresh
kyvernon datastore lsList a folder
kyvernon datastore ls <ID> [PATH]| Argument | Description | Required |
|---|---|---|
<ID> | Datastore id | yes |
<PATH> | Path below the root (empty for the root) |
API operation: GET /v1/datastores/{id}/files
kyvernon datastore mkdirCreate a folder (and its parents)
kyvernon datastore mkdir <ID> <PATH>| Argument | Description | Required |
|---|---|---|
<ID> | Datastore id | yes |
<PATH> | Folder path | yes |
API operation: POST /v1/datastores/{id}/folders
kyvernon datastore rmDelete a file or empty folder
kyvernon datastore rm <ID> <PATH>| Argument | Description | Required |
|---|---|---|
<ID> | Datastore id | yes |
<PATH> | Path | yes |
API operation: DELETE /v1/datastores/{id}/files
kyvernon datastore orphansReport disk images nothing references (no virtual machine, template or snapshot; not an overlay or backing image of a referenced disk; not a content-library file), and change-tracking sidecars whose image is gone. Report only: nothing is deleted
kyvernon datastore orphans [OPTIONS] <ID>| Argument | Description | Required |
|---|---|---|
<ID> | Datastore id | yes |
--min-age-seconds | Leave out files changed within this many seconds (server default 300) |
API operation: GET /v1/datastores/{id}/orphan-disks
kyvernon datastore cpCopy a file (CopyDatastoreFile_Task)
kyvernon datastore cp [OPTIONS] <ID> <SOURCE> <DESTINATION>| Argument | Description | Required |
|---|---|---|
<ID> | Source datastore id | yes |
<SOURCE> | Source path below the root | yes |
<DESTINATION> | Destination path below the destination datastore root | yes |
--destination-datastore | Destination datastore (default: the source datastore) | |
--overwrite | Replace an existing destination |
API operation: POST /v1/datastores/{id}/files/copy
kyvernon datastore mvMove or rename a file (MoveDatastoreFile_Task)
kyvernon datastore mv [OPTIONS] <ID> <SOURCE> <DESTINATION>| Argument | Description | Required |
|---|---|---|
<ID> | Source datastore id | yes |
<SOURCE> | Source path below the root | yes |
<DESTINATION> | Destination path below the destination datastore root | yes |
--destination-datastore | Destination datastore (default: the source datastore) | |
--overwrite | Replace an existing destination |
API operation: POST /v1/datastores/{id}/files/move
kyvernon datastore uploadUpload a local file (streamed)
kyvernon datastore upload [OPTIONS] <ID> <FILE>| Argument | Description | Required |
|---|---|---|
<ID> | Datastore id | yes |
<FILE> | Local file | yes |
--path | Target path (default: the file name at the root) | |
--overwrite | Replace an existing file |
API operation: PUT /v1/datastores/{id}/files/content
kyvernon datastore downloadDownload a file (streamed) to a local path
kyvernon datastore download [OPTIONS] <ID> <PATH>| Argument | Description | Required |
|---|---|---|
<ID> | Datastore id | yes |
<PATH> | Path on the datastore | yes |
--to | Local file (default: the file name in the current directory) |
API operation: GET /v1/datastores/{id}/files/content
Version 0.1.