Parameter |
Choices/Defaults |
Comments |
account
|
|
Account the volume is related to.
|
api_http_method
|
|
HTTP method used to query the API endpoint.
If not given, the CLOUDSTACK_METHOD env variable is considered.
As the last option, the value is taken from the ini config file, also see the notes.
Fallback value is get if not specified.
|
api_key
|
|
API key of the CloudStack API.
If not given, the CLOUDSTACK_KEY env variable is considered.
As the last option, the value is taken from the ini config file, also see the notes.
|
api_region
|
Default:
"cloudstack"
|
Name of the ini section in the cloustack.ini file.
If not given, the CLOUDSTACK_REGION env variable is considered.
|
api_secret
|
|
Secret key of the CloudStack API.
If not set, the CLOUDSTACK_SECRET env variable is considered.
As the last option, the value is taken from the ini config file, also see the notes.
|
api_timeout
|
|
HTTP timeout in seconds.
If not given, the CLOUDSTACK_TIMEOUT env variable is considered.
As the last option, the value is taken from the ini config file, also see the notes.
Fallback value is 10 seconds if not specified.
|
api_url
|
|
URL of the CloudStack API e.g. https://cloud.example.com/client/api.
If not given, the CLOUDSTACK_ENDPOINT env variable is considered.
As the last option, the value is taken from the ini config file, also see the notes.
|
device_id
(added in 2.3) |
|
ID of the device on a VM the volume is attached to.
This will only be considered if VM has multiple DATADISK volumes.
|
domain
|
|
Domain the volume is related to.
|
interval_type
|
Choices:
- hourly
daily ←
- weekly
- monthly
|
Interval of the snapshot.
aliases: interval
|
max_snaps
|
Default:
8
|
Max number of snapshots.
aliases: max
|
project
|
|
Name of the project the volume is related to.
|
schedule
|
|
Time the snapshot is scheduled. Required if state=present .
Format for interval_type=HOURLY : MM
Format for interval_type=DAILY : MM:HH
Format for interval_type=WEEKLY : MM:HH:DD (1-7 )
Format for interval_type=MONTHLY : MM:HH:DD (1-28 )
|
state
|
Choices:
present ←
- absent
|
State of the snapshot policy.
|
time_zone
|
Default:
"UTC"
|
Specifies a timezone for this command.
aliases: timezone
|
vm
(added in 2.3) |
|
Name of the instance to select the volume from.
Use volume_type if VM has a DATADISK and ROOT volume.
In case of volume_type=DATADISK , additionally use device_id if VM has more than one DATADISK volume.
Either volume or vm is required.
|
volume
|
|
Name of the volume.
Either volume or vm is required.
|
volume_type
(added in 2.3) |
|
Type of the volume.
|
vpc
(added in 2.3) |
|
Name of the vpc the instance is deployed in.
|