lbcli list snapshots-policies (2.2 and above)

Lists snapshot policies.

Synopsis

Lists snapshot policies.

Bash
Copy

Examples:

Bash
Copy
FlagShortTypeDefaultDescription
--help-hboolHelp for snapshots-policies.
--project-namestringThe project name (required).
--UUIDstringPolicy UUID (required if volume UUID not provided).
--volume-UUIDstringVolume UUID (required if UUID not provided).

This command returns the following fields for each snapshot policy. The default output format is human-readable. The human-readable output only shows some of these fields. The json/yaml output format is also supported and includes additional fields.

FieldTypeDescription
DescriptionStringResource Description
StateString

Resource policy state:

  • Creating
  • Active
  • Deleting
  • Failed
NameStringPolicy Name
UUIDStringPolicy UUID
Resource UUIDStringSnapshot UUID which the policy relates to.
Resource NameStringsnapshot name which the policy relates to.
Schedule PolicystructSee snapshot schedule policy table:

Schedule policy table:

FieldTypeDescription
Schedule PoliciesString

The following schedule policies are supported:

  • Hourly Snapshot Schedule Policy
  • Daily Snapshot Schedule Policy

See tables below.

RetentiondurationPolicy retention duration.

Hourly snapshot schedule policy:

FieldTypeDescription
Start timeTimePolicy start time.
Hours in CycleHours between snapshot creation cycles.

Daily snapshot schedule policy:

FieldTypeDescription
Start TimeTimePolicy start time.
Days in CycleintegerDays between snapshot creation cycles.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard