lbcli get snapshots-policy (2.2 and above)

Gets a snapshot policy.

Bash
Copy

Examples:

Bash
Copy
FlagShortTypeDefaultDescription
--help-hboolHelp for snapshots-policy.
--project-namestringThe project name (required).
--UUIDstringPolicy UUID.

This command returns the following fields for the 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 UUIDstringVolume UUID that the policy relates to.
Resource NamestringVolume name that the policy relates to.
Schedule PolicystructSee the snapshot schedule policy table.

Schedule policy table:

FieldTypeDescription
Schedule Policiesstruct

The following schedule policies are supported:

  • Hourly Snapshot Schedule Policy
  • Daily Snapshot Schedule Policy

See tables below.

RetentiondurationSnapshot retention duration.

Hourly snapshot schedule policy:

FieldTypeDescription
Start TimetimestampPolicy start time.
Hours in CycleintegerHourly interval for new snapshot creation.

Daily snapshot schedule policy:

FieldTypeDescription
Start TimetimestampPolicy start time.
Days in CycleintegerDaily interval for new snapshot creation.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard