azure-native.storsimple.BackupSchedule

Explore with Pulumi AI

The backup schedule. 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",
    });

});
package main

import (
	storsimple "github.com/pulumi/pulumi-azure-native-sdk/storsimple"
	"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
	})
}
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 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(Map.ofEntries(
                Map.entry("recurrenceType", "Weekly"),
                Map.entry("recurrenceValue", 1),
                Map.entry("weeklyDaysList",                 
                    "Friday",
                    "Thursday",
                    "Monday")
            ))
            .scheduleStatus("Enabled")
            .startTime("2017-06-24T01:00:00Z")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

backup_schedule = azure_native.storsimple.BackupSchedule("backupSchedule",
    backup_policy_name="BkUpPolicy01ForSDKTest",
    backup_schedule_name="schedule2",
    backup_type=azure_native.storsimple.BackupType.CLOUD_SNAPSHOT,
    device_name="Device05ForSDKTest",
    kind=azure_native.storsimple.Kind.SERIES8000,
    manager_name="ManagerForSDKTest1",
    resource_group_name="ResourceGroupForSDKTest",
    retention_count=1,
    schedule_recurrence=azure_native.storsimple.ScheduleRecurrenceArgs(
        recurrence_type=azure_native.storsimple.RecurrenceType.WEEKLY,
        recurrence_value=1,
        weekly_days_list=[
            azure_native.storsimple.DayOfWeek.FRIDAY,
            azure_native.storsimple.DayOfWeek.THURSDAY,
            azure_native.storsimple.DayOfWeek.MONDAY,
        ],
    ),
    schedule_status=azure_native.storsimple.ScheduleStatus.ENABLED,
    start_time="2017-06-24T01:00:00Z")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const backupSchedule = new azure_native.storsimple.BackupSchedule("backupSchedule", {
    backupPolicyName: "BkUpPolicy01ForSDKTest",
    backupScheduleName: "schedule2",
    backupType: azure_native.storsimple.BackupType.CloudSnapshot,
    deviceName: "Device05ForSDKTest",
    kind: azure_native.storsimple.Kind.Series8000,
    managerName: "ManagerForSDKTest1",
    resourceGroupName: "ResourceGroupForSDKTest",
    retentionCount: 1,
    scheduleRecurrence: {
        recurrenceType: azure_native.storsimple.RecurrenceType.Weekly,
        recurrenceValue: 1,
        weeklyDaysList: [
            azure_native.storsimple.DayOfWeek.Friday,
            azure_native.storsimple.DayOfWeek.Thursday,
            azure_native.storsimple.DayOfWeek.Monday,
        ],
    },
    scheduleStatus: azure_native.storsimple.ScheduleStatus.Enabled,
    startTime: "2017-06-24T01:00:00Z",
});
resources:
  backupSchedule:
    type: azure-native:storsimple:BackupSchedule
    properties:
      backupPolicyName: BkUpPolicy01ForSDKTest
      backupScheduleName: schedule2
      backupType: CloudSnapshot
      deviceName: Device05ForSDKTest
      kind: Series8000
      managerName: ManagerForSDKTest1
      resourceGroupName: ResourceGroupForSDKTest
      retentionCount: 1
      scheduleRecurrence:
        recurrenceType: Weekly
        recurrenceValue: 1
        weeklyDaysList:
          - Friday
          - Thursday
          - Monday
      scheduleStatus: Enabled
      startTime: 2017-06-24T01:00:00Z

Create BackupSchedule Resource

new BackupSchedule(name: string, args: BackupScheduleArgs, opts?: CustomResourceOptions);
@overload
def BackupSchedule(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   backup_policy_name: Optional[str] = None,
                   backup_schedule_name: Optional[str] = None,
                   backup_type: Optional[BackupType] = None,
                   device_name: Optional[str] = None,
                   kind: Optional[Kind] = None,
                   manager_name: Optional[str] = None,
                   resource_group_name: Optional[str] = None,
                   retention_count: Optional[float] = None,
                   schedule_recurrence: Optional[ScheduleRecurrenceArgs] = None,
                   schedule_status: Optional[ScheduleStatus] = None,
                   start_time: Optional[str] = None)
@overload
def BackupSchedule(resource_name: str,
                   args: BackupScheduleArgs,
                   opts: Optional[ResourceOptions] = None)
func NewBackupSchedule(ctx *Context, name string, args BackupScheduleArgs, opts ...ResourceOption) (*BackupSchedule, error)
public BackupSchedule(string name, BackupScheduleArgs args, CustomResourceOptions? opts = null)
public BackupSchedule(String name, BackupScheduleArgs args)
public BackupSchedule(String name, BackupScheduleArgs args, CustomResourceOptions options)
type: azure-native:storsimple:BackupSchedule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args BackupScheduleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args BackupScheduleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args BackupScheduleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args BackupScheduleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args BackupScheduleArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

BackupSchedule Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The BackupSchedule resource accepts the following input properties:

BackupPolicyName string

The backup policy name.

BackupType Pulumi.AzureNative.StorSimple.BackupType

The type of backup which needs to be taken.

DeviceName string

The device name

ManagerName string

The manager name

ResourceGroupName string

The resource group name

RetentionCount double

The number of backups to be retained.

ScheduleRecurrence Pulumi.AzureNative.StorSimple.Inputs.ScheduleRecurrenceArgs

The schedule recurrence.

ScheduleStatus Pulumi.AzureNative.StorSimple.ScheduleStatus

The schedule status.

StartTime string

The start time of the schedule.

BackupScheduleName string

The backup schedule name.

Kind Pulumi.AzureNative.StorSimple.Kind

The Kind of the object. Currently only Series8000 is supported

BackupPolicyName string

The backup policy name.

BackupType BackupType

The type of backup which needs to be taken.

DeviceName string

The device name

ManagerName string

The manager name

ResourceGroupName string

The resource group name

RetentionCount float64

The number of backups to be retained.

ScheduleRecurrence ScheduleRecurrenceArgs

The schedule recurrence.

ScheduleStatus ScheduleStatus

The schedule status.

StartTime string

The start time of the schedule.

BackupScheduleName string

The backup schedule name.

Kind Kind

The Kind of the object. Currently only Series8000 is supported

backupPolicyName String

The backup policy name.

backupType BackupType

The type of backup which needs to be taken.

deviceName String

The device name

managerName String

The manager name

resourceGroupName String

The resource group name

retentionCount Double

The number of backups to be retained.

scheduleRecurrence ScheduleRecurrenceArgs

The schedule recurrence.

scheduleStatus ScheduleStatus

The schedule status.

startTime String

The start time of the schedule.

backupScheduleName String

The backup schedule name.

kind Kind

The Kind of the object. Currently only Series8000 is supported

backupPolicyName string

The backup policy name.

backupType BackupType

The type of backup which needs to be taken.

deviceName string

The device name

managerName string

The manager name

resourceGroupName string

The resource group name

retentionCount number

The number of backups to be retained.

scheduleRecurrence ScheduleRecurrenceArgs

The schedule recurrence.

scheduleStatus ScheduleStatus

The schedule status.

startTime string

The start time of the schedule.

backupScheduleName string

The backup schedule name.

kind Kind

The Kind of the object. Currently only Series8000 is supported

backup_policy_name str

The backup policy name.

backup_type BackupType

The type of backup which needs to be taken.

device_name str

The device name

manager_name str

The manager name

resource_group_name str

The resource group name

retention_count float

The number of backups to be retained.

schedule_recurrence ScheduleRecurrenceArgs

The schedule recurrence.

schedule_status ScheduleStatus

The schedule status.

start_time str

The start time of the schedule.

backup_schedule_name str

The backup schedule name.

kind Kind

The Kind of the object. Currently only Series8000 is supported

backupPolicyName String

The backup policy name.

backupType "LocalSnapshot" | "CloudSnapshot"

The type of backup which needs to be taken.

deviceName String

The device name

managerName String

The manager name

resourceGroupName String

The resource group name

retentionCount Number

The number of backups to be retained.

scheduleRecurrence Property Map

The schedule recurrence.

scheduleStatus "Enabled" | "Disabled"

The schedule status.

startTime String

The start time of the schedule.

backupScheduleName String

The backup schedule name.

kind "Series8000"

The Kind of the object. Currently only Series8000 is supported

Outputs

All input properties are implicitly available as output properties. Additionally, the BackupSchedule resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

LastSuccessfulRun string

The last successful backup run which was triggered for the schedule.

Name string

The name of the object.

Type string

The hierarchical type of the object.

Id string

The provider-assigned unique ID for this managed resource.

LastSuccessfulRun string

The last successful backup run which was triggered for the schedule.

Name string

The name of the object.

Type string

The hierarchical type of the object.

id String

The provider-assigned unique ID for this managed resource.

lastSuccessfulRun String

The last successful backup run which was triggered for the schedule.

name String

The name of the object.

type String

The hierarchical type of the object.

id string

The provider-assigned unique ID for this managed resource.

lastSuccessfulRun string

The last successful backup run which was triggered for the schedule.

name string

The name of the object.

type string

The hierarchical type of the object.

id str

The provider-assigned unique ID for this managed resource.

last_successful_run str

The last successful backup run which was triggered for the schedule.

name str

The name of the object.

type str

The hierarchical type of the object.

id String

The provider-assigned unique ID for this managed resource.

lastSuccessfulRun String

The last successful backup run which was triggered for the schedule.

name String

The name of the object.

type String

The hierarchical type of the object.

Supporting Types

BackupType

LocalSnapshot
LocalSnapshot
CloudSnapshot
CloudSnapshot
BackupTypeLocalSnapshot
LocalSnapshot
BackupTypeCloudSnapshot
CloudSnapshot
LocalSnapshot
LocalSnapshot
CloudSnapshot
CloudSnapshot
LocalSnapshot
LocalSnapshot
CloudSnapshot
CloudSnapshot
LOCAL_SNAPSHOT
LocalSnapshot
CLOUD_SNAPSHOT
CloudSnapshot
"LocalSnapshot"
LocalSnapshot
"CloudSnapshot"
CloudSnapshot

DayOfWeek

Sunday
Sunday
Monday
Monday
Tuesday
Tuesday
Wednesday
Wednesday
Thursday
Thursday
Friday
Friday
Saturday
Saturday
DayOfWeekSunday
Sunday
DayOfWeekMonday
Monday
DayOfWeekTuesday
Tuesday
DayOfWeekWednesday
Wednesday
DayOfWeekThursday
Thursday
DayOfWeekFriday
Friday
DayOfWeekSaturday
Saturday
Sunday
Sunday
Monday
Monday
Tuesday
Tuesday
Wednesday
Wednesday
Thursday
Thursday
Friday
Friday
Saturday
Saturday
Sunday
Sunday
Monday
Monday
Tuesday
Tuesday
Wednesday
Wednesday
Thursday
Thursday
Friday
Friday
Saturday
Saturday
SUNDAY
Sunday
MONDAY
Monday
TUESDAY
Tuesday
WEDNESDAY
Wednesday
THURSDAY
Thursday
FRIDAY
Friday
SATURDAY
Saturday
"Sunday"
Sunday
"Monday"
Monday
"Tuesday"
Tuesday
"Wednesday"
Wednesday
"Thursday"
Thursday
"Friday"
Friday
"Saturday"
Saturday

Kind

Series8000
Series8000
KindSeries8000
Series8000
Series8000
Series8000
Series8000
Series8000
SERIES8000
Series8000
"Series8000"
Series8000

RecurrenceType

Minutes
Minutes
Hourly
Hourly
Daily
Daily
Weekly
Weekly
RecurrenceTypeMinutes
Minutes
RecurrenceTypeHourly
Hourly
RecurrenceTypeDaily
Daily
RecurrenceTypeWeekly
Weekly
Minutes
Minutes
Hourly
Hourly
Daily
Daily
Weekly
Weekly
Minutes
Minutes
Hourly
Hourly
Daily
Daily
Weekly
Weekly
MINUTES
Minutes
HOURLY
Hourly
DAILY
Daily
WEEKLY
Weekly
"Minutes"
Minutes
"Hourly"
Hourly
"Daily"
Daily
"Weekly"
Weekly

ScheduleRecurrence

RecurrenceType Pulumi.AzureNative.StorSimple.RecurrenceType

The recurrence type.

RecurrenceValue int

The recurrence value.

WeeklyDaysList List<Pulumi.AzureNative.StorSimple.DayOfWeek>

The week days list. Applicable only for schedules of recurrence type 'weekly'.

RecurrenceType RecurrenceType

The recurrence type.

RecurrenceValue int

The recurrence value.

WeeklyDaysList []DayOfWeek

The week days list. Applicable only for schedules of recurrence type 'weekly'.

recurrenceType RecurrenceType

The recurrence type.

recurrenceValue Integer

The recurrence value.

weeklyDaysList List<DayOfWeek>

The week days list. Applicable only for schedules of recurrence type 'weekly'.

recurrenceType RecurrenceType

The recurrence type.

recurrenceValue number

The recurrence value.

weeklyDaysList DayOfWeek[]

The week days list. Applicable only for schedules of recurrence type 'weekly'.

recurrence_type RecurrenceType

The recurrence type.

recurrence_value int

The recurrence value.

weekly_days_list Sequence[DayOfWeek]

The week days list. Applicable only for schedules of recurrence type 'weekly'.

recurrenceType "Minutes" | "Hourly" | "Daily" | "Weekly"

The recurrence type.

recurrenceValue Number

The recurrence value.

weeklyDaysList List<"Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday">

The week days list. Applicable only for schedules of recurrence type 'weekly'.

ScheduleRecurrenceResponse

RecurrenceType string

The recurrence type.

RecurrenceValue int

The recurrence value.

WeeklyDaysList List<string>

The week days list. Applicable only for schedules of recurrence type 'weekly'.

RecurrenceType string

The recurrence type.

RecurrenceValue int

The recurrence value.

WeeklyDaysList []string

The week days list. Applicable only for schedules of recurrence type 'weekly'.

recurrenceType String

The recurrence type.

recurrenceValue Integer

The recurrence value.

weeklyDaysList List<String>

The week days list. Applicable only for schedules of recurrence type 'weekly'.

recurrenceType string

The recurrence type.

recurrenceValue number

The recurrence value.

weeklyDaysList string[]

The week days list. Applicable only for schedules of recurrence type 'weekly'.

recurrence_type str

The recurrence type.

recurrence_value int

The recurrence value.

weekly_days_list Sequence[str]

The week days list. Applicable only for schedules of recurrence type 'weekly'.

recurrenceType String

The recurrence type.

recurrenceValue Number

The recurrence value.

weeklyDaysList List<String>

The week days list. Applicable only for schedules of recurrence type 'weekly'.

ScheduleStatus

Enabled
Enabled
Disabled
Disabled
ScheduleStatusEnabled
Enabled
ScheduleStatusDisabled
Disabled
Enabled
Enabled
Disabled
Disabled
Enabled
Enabled
Disabled
Disabled
ENABLED
Enabled
DISABLED
Disabled
"Enabled"
Enabled
"Disabled"
Disabled

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:storsimple:BackupSchedule schedule2 /subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/backupPolicies/BkUpPolicy01ForSDKTest/schedules/schedule2 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0