Backup Schedule
The backup schedule. Uses Azure REST API version 2017-06-01. In version 2.x of the Azure Native provider, it used API version 2017-06-01.
Example Usage
BackupSchedulesCreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var backupSchedule = new AzureNative.StorSimple.BackupSchedule("backupSchedule", new()
{
BackupPolicyName = "BkUpPolicy01ForSDKTest",
BackupScheduleName = "schedule2",
BackupType = AzureNative.StorSimple.BackupType.CloudSnapshot,
DeviceName = "Device05ForSDKTest",
Kind = AzureNative.StorSimple.Kind.Series8000,
ManagerName = "ManagerForSDKTest1",
ResourceGroupName = "ResourceGroupForSDKTest",
RetentionCount = 1,
ScheduleRecurrence = new AzureNative.StorSimple.Inputs.ScheduleRecurrenceArgs
{
RecurrenceType = AzureNative.StorSimple.RecurrenceType.Weekly,
RecurrenceValue = 1,
WeeklyDaysList = new[]
{
AzureNative.StorSimple.DayOfWeek.Friday,
AzureNative.StorSimple.DayOfWeek.Thursday,
AzureNative.StorSimple.DayOfWeek.Monday,
},
},
ScheduleStatus = AzureNative.StorSimple.ScheduleStatus.Enabled,
StartTime = "2017-06-24T01:00:00Z",
});
});
Content copied to clipboard
package main
import (
storsimple "github.com/pulumi/pulumi-azure-native-sdk/storsimple/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storsimple.NewBackupSchedule(ctx, "backupSchedule", &storsimple.BackupScheduleArgs{
BackupPolicyName: pulumi.String("BkUpPolicy01ForSDKTest"),
BackupScheduleName: pulumi.String("schedule2"),
BackupType: storsimple.BackupTypeCloudSnapshot,
DeviceName: pulumi.String("Device05ForSDKTest"),
Kind: storsimple.KindSeries8000,
ManagerName: pulumi.String("ManagerForSDKTest1"),
ResourceGroupName: pulumi.String("ResourceGroupForSDKTest"),
RetentionCount: pulumi.Float64(1),
ScheduleRecurrence: &storsimple.ScheduleRecurrenceArgs{
RecurrenceType: storsimple.RecurrenceTypeWeekly,
RecurrenceValue: pulumi.Int(1),
WeeklyDaysList: storsimple.DayOfWeekArray{
storsimple.DayOfWeekFriday,
storsimple.DayOfWeekThursday,
storsimple.DayOfWeekMonday,
},
},
ScheduleStatus: storsimple.ScheduleStatusEnabled,
StartTime: pulumi.String("2017-06-24T01:00:00Z"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storsimple.BackupSchedule;
import com.pulumi.azurenative.storsimple.BackupScheduleArgs;
import com.pulumi.azurenative.storsimple.inputs.ScheduleRecurrenceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var backupSchedule = new BackupSchedule("backupSchedule", BackupScheduleArgs.builder()
.backupPolicyName("BkUpPolicy01ForSDKTest")
.backupScheduleName("schedule2")
.backupType("CloudSnapshot")
.deviceName("Device05ForSDKTest")
.kind("Series8000")
.managerName("ManagerForSDKTest1")
.resourceGroupName("ResourceGroupForSDKTest")
.retentionCount(1)
.scheduleRecurrence(ScheduleRecurrenceArgs.builder()
.recurrenceType("Weekly")
.recurrenceValue(1)
.weeklyDaysList(
"Friday",
"Thursday",
"Monday")
.build())
.scheduleStatus("Enabled")
.startTime("2017-06-24T01:00:00Z")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:storsimple:BackupSchedule schedule2 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupPolicies/{backupPolicyName}/schedules/{backupScheduleName}
Content copied to clipboard
Properties
Link copied to clipboard
The Azure API version of the resource.
Link copied to clipboard
The type of backup which needs to be taken.
Link copied to clipboard
The last successful backup run which was triggered for the schedule.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The number of backups to be retained.
Link copied to clipboard
The schedule recurrence.
Link copied to clipboard
The schedule status.