Apache CloudStack v4.1.0 User API Reference

createSnapshotPolicy

Creates a snapshot policy for the account.

Request parameters

Parameter NameDescriptionRequired
intervaltypevalid values are HOURLY, DAILY, WEEKLY, and MONTHLYtrue
maxsnapsmaximum number of snapshots to retaintrue
scheduletime 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
timezoneSpecifies a timezone for this command. For more information on the timezone parameter, see Time Zone Format.true
volumeidthe ID of the disk volumetrue

Response Tags

Response NameDescription
idthe ID of the snapshot policy
intervaltypethe interval type of the snapshot policy
maxsnapsmaximum number of snapshots retained
scheduletime the snapshot is scheduled to be taken.
timezonethe time zone of the snapshot policy
volumeidthe ID of the disk volume