cfcli create snapshot

AI Tools

Creates a new snapshot.

Synopsis

Creates a new snapshot with specified properties.

cfcli create snapshot [flags]

Examples:

#create a snapshot in project: "proj" with snapshot name: "snap", source volume uuid: {volume-uuid} description: snapshot-description cfcli create snapshot --project-name proj --name snap --source-volume-uuid {volume-uuid} --description a-snapshot-description --retention-time 7200s #create a snapshot in project: "proj" with snapshot name: "snap", source volume name: {volume-name} description: snapshot-description cfcli create snapshot --project-name proj --name snap --source-volume-name {volume-name} --description a-snapshot-description --retention-time 7200s

Flag

Short

Type

Default

Description

--help

-h

bool


Help for snapshot.

--description


string


Snapshot description.

--name


string


Snapshot name.

--project-name


string


The project this snapshot belongs to.

--retention-time


string


Retention time to keep the snapshot (optional). Retention time is a string constructed by a decimal number followed by the units: ns, us, ms, s, m, h. For example: 7200s, 120m, 2h.

--source-volume-name


string


Volume name from which to take the snapshot (required if source-volume-uuid was not provided).

--source-volume-uuid


string


Volume UUID from which to take the snapshot (required if source-volume-name was not provided).