lbcli update snapshots-policy (2.2 and above)
Updates an existing snapshot policy.
Synopsis
Updates a snapshot policy.
lbcli update snapshots-policy [flags]Examples:
# Update a snapshots policy.lbcli -J $JWT update snapshots-policy --project-name=project1 --name=policy1 --description="updated description" --hours-in-cycle=2 --retention-time=4hlbcli -J $JWT update snapshots-policy --project-name=project1 --uuid=4c027341-7283-4b45-84f5-1460f4c96127 --description="updated description" --days-in-cycle=3 --retention-time=1d| Flag | Short | Type | Default | Description | |
|---|---|---|---|---|---|
| --description | string | Policy description (optional). | |||
| --help | -h | bool | Help for snapshots-policy. | ||
| --uuid | string | Policy UUID (required). | |||
| --project-name | string | The project name (required). | |||
| --retention-time | string | Retention time to keep the snapshot. Retention time is a string constructed by a decimal number followed by the units: ns, us, ms, s, m, h. For example, 7200s, 1200m, 2h. | |||
| --days-in-cycle | int | Days in cycle for daily schedule policy (required if hours-in-cycle was not provided). | |||
| --hours-in-cycle | int | Hours in cycle for hourly schedule policy (required if days-in-cycle was not provided). | |||
| --start-time | int | Scheduled start time. It must be in the form of HH:MM, in which HH is 00-23 and MM is 00-59. |
Was this page helpful?