enableSnapshots


SoftLayer_Network_Storage::enableSnapshots

Enable snapshots of this Storage Volume on a schedule.

Description

This method is not valid for Legacy iSCSI Storage Volumes.

Enable scheduled snapshots of this storage volume. Scheduling options include HOURLY, DAILY and WEEKLY schedules. For HOURLY schedules, provide relevant data for $scheduleType, $retentionCount and $minute. For DAILY schedules, provide relevant data for $scheduleType, $retentionCount, $minute, and $hour. For WEEKLY schedules, provide relevant data for all parameters of this method.


Parameters

Name Type Description
scheduleType string The type of schedule, among: ‘INTERVAL’, ‘HOURLY’, ‘DAILY’, ‘WEEKLY’.
retentionCount int The number of snapshots to attempt to retain in this schedule.
minute int The minute of the hour at which HOURLY, DAILY, and WEEKLY snapshots should be taken.
hour int The hour of the day at which DAILY and WEEKLY snapshots should be taken.
dayOfWeek string The day of the week on which WEEKLY snapshots should be taken, either as a string (‘SUNDAY’) or integer (cron-notation: ‘0’ is Sunday)

Required Headers

Optional Headers

  • None

Return Values

  • boolean
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [string, int, int, int, string]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Network_Storage/{SoftLayer_Network_StorageID}/enableSnapshots'