Apache CloudStack 4.15.0.0 Root Admin API Reference
createSnapshotPolicy
Creates a snapshot policy for the account.
Request parameters
Parameter Name | Description | Required |
intervaltype | valid values are HOURLY, DAILY, WEEKLY, and MONTHLY | true |
maxsnaps | maximum number of snapshots to retain | true |
schedule | time the snapshot is scheduled to be taken. Format is:* if HOURLY, MM* if DAILY, MM:HH* if WEEKLY, MM:HH:DD (1-7)* if MONTHLY, MM:HH:DD (1-28) | true |
timezone | Specifies a timezone for this command. For more information on the timezone parameter, see Time Zone Format. | true |
volumeid | the ID of the disk volume | true |
fordisplay | an optional field, whether to the display the policy to the end user or not | false |
tags | Map of tags (key/value pairs) | false |
Response Tags
Response Name | Description |
id | the ID of the snapshot policy |
fordisplay | is this policy for display to the regular user |
intervaltype | the interval type of the snapshot policy |
maxsnaps | maximum number of snapshots retained |
schedule | time the snapshot is scheduled to be taken. |
timezone | the time zone of the snapshot policy |
volumeid | the ID of the disk volume |