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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BackupSchedule(name: string, args: BackupScheduleArgs, opts?: CustomResourceOptions);
@overload
def BackupSchedule(resource_name: str,
args: BackupScheduleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BackupSchedule(resource_name: str,
opts: Optional[ResourceOptions] = None,
backup_policy_name: Optional[str] = None,
backup_type: Optional[BackupType] = None,
device_name: Optional[str] = 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,
backup_schedule_name: Optional[str] = None,
kind: Optional[Kind] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var backupScheduleResource = new AzureNative.Storsimple.BackupSchedule("backupScheduleResource", new()
{
BackupPolicyName = "string",
BackupType = "LocalSnapshot",
DeviceName = "string",
ManagerName = "string",
ResourceGroupName = "string",
RetentionCount = 0,
ScheduleRecurrence =
{
{ "recurrenceType", "Minutes" },
{ "recurrenceValue", 0 },
{ "weeklyDaysList", new[]
{
"Sunday",
} },
},
ScheduleStatus = "Enabled",
StartTime = "string",
BackupScheduleName = "string",
Kind = "Series8000",
});
example, err := storsimple.NewBackupSchedule(ctx, "backupScheduleResource", &storsimple.BackupScheduleArgs{
BackupPolicyName: "string",
BackupType: "LocalSnapshot",
DeviceName: "string",
ManagerName: "string",
ResourceGroupName: "string",
RetentionCount: 0,
ScheduleRecurrence: map[string]interface{}{
"recurrenceType": "Minutes",
"recurrenceValue": 0,
"weeklyDaysList": []string{
"Sunday",
},
},
ScheduleStatus: "Enabled",
StartTime: "string",
BackupScheduleName: "string",
Kind: "Series8000",
})
var backupScheduleResource = new BackupSchedule("backupScheduleResource", BackupScheduleArgs.builder()
.backupPolicyName("string")
.backupType("LocalSnapshot")
.deviceName("string")
.managerName("string")
.resourceGroupName("string")
.retentionCount(0)
.scheduleRecurrence(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.scheduleStatus("Enabled")
.startTime("string")
.backupScheduleName("string")
.kind("Series8000")
.build());
backup_schedule_resource = azure_native.storsimple.BackupSchedule("backupScheduleResource",
backup_policy_name=string,
backup_type=LocalSnapshot,
device_name=string,
manager_name=string,
resource_group_name=string,
retention_count=0,
schedule_recurrence={
recurrenceType: Minutes,
recurrenceValue: 0,
weeklyDaysList: [Sunday],
},
schedule_status=Enabled,
start_time=string,
backup_schedule_name=string,
kind=Series8000)
const backupScheduleResource = new azure_native.storsimple.BackupSchedule("backupScheduleResource", {
backupPolicyName: "string",
backupType: "LocalSnapshot",
deviceName: "string",
managerName: "string",
resourceGroupName: "string",
retentionCount: 0,
scheduleRecurrence: {
recurrenceType: "Minutes",
recurrenceValue: 0,
weeklyDaysList: ["Sunday"],
},
scheduleStatus: "Enabled",
startTime: "string",
backupScheduleName: "string",
kind: "Series8000",
});
type: azure-native:storsimple:BackupSchedule
properties:
backupPolicyName: string
backupScheduleName: string
backupType: LocalSnapshot
deviceName: string
kind: Series8000
managerName: string
resourceGroupName: string
retentionCount: 0
scheduleRecurrence:
recurrenceType: Minutes
recurrenceValue: 0
weeklyDaysList:
- Sunday
scheduleStatus: Enabled
startTime: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The BackupSchedule resource accepts the following input properties:
- Backup
Policy stringName - The backup policy name.
- Backup
Type Pulumi.Azure Native. Stor Simple. Backup Type - The type of backup which needs to be taken.
- Device
Name string - The device name
- Manager
Name string - The manager name
- Resource
Group stringName - The resource group name
- Retention
Count double - The number of backups to be retained.
- Schedule
Recurrence Pulumi.Azure Native. Stor Simple. Inputs. Schedule Recurrence - The schedule recurrence.
- Schedule
Status Pulumi.Azure Native. Stor Simple. Schedule Status - The schedule status.
- Start
Time string - The start time of the schedule.
- Backup
Schedule stringName - The backup schedule name.
- Kind
Pulumi.
Azure Native. Stor Simple. Kind - The Kind of the object. Currently only Series8000 is supported
- Backup
Policy stringName - The backup policy name.
- Backup
Type BackupType - The type of backup which needs to be taken.
- Device
Name string - The device name
- Manager
Name string - The manager name
- Resource
Group stringName - The resource group name
- Retention
Count float64 - The number of backups to be retained.
- Schedule
Recurrence ScheduleRecurrence Args - The schedule recurrence.
- Schedule
Status ScheduleStatus - The schedule status.
- Start
Time string - The start time of the schedule.
- Backup
Schedule stringName - The backup schedule name.
- Kind Kind
- The Kind of the object. Currently only Series8000 is supported
- backup
Policy StringName - The backup policy name.
- backup
Type BackupType - The type of backup which needs to be taken.
- device
Name String - The device name
- manager
Name String - The manager name
- resource
Group StringName - The resource group name
- retention
Count Double - The number of backups to be retained.
- schedule
Recurrence ScheduleRecurrence - The schedule recurrence.
- schedule
Status ScheduleStatus - The schedule status.
- start
Time String - The start time of the schedule.
- backup
Schedule StringName - The backup schedule name.
- kind Kind
- The Kind of the object. Currently only Series8000 is supported
- backup
Policy stringName - The backup policy name.
- backup
Type BackupType - The type of backup which needs to be taken.
- device
Name string - The device name
- manager
Name string - The manager name
- resource
Group stringName - The resource group name
- retention
Count number - The number of backups to be retained.
- schedule
Recurrence ScheduleRecurrence - The schedule recurrence.
- schedule
Status ScheduleStatus - The schedule status.
- start
Time string - The start time of the schedule.
- backup
Schedule stringName - The backup schedule name.
- kind Kind
- The Kind of the object. Currently only Series8000 is supported
- backup_
policy_ strname - 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_ strname - The resource group name
- retention_
count float - The number of backups to be retained.
- schedule_
recurrence ScheduleRecurrence Args - The schedule recurrence.
- schedule_
status ScheduleStatus - The schedule status.
- start_
time str - The start time of the schedule.
- backup_
schedule_ strname - The backup schedule name.
- kind Kind
- The Kind of the object. Currently only Series8000 is supported
- backup
Policy StringName - The backup policy name.
- backup
Type "LocalSnapshot" | "Cloud Snapshot" - The type of backup which needs to be taken.
- device
Name String - The device name
- manager
Name String - The manager name
- resource
Group StringName - The resource group name
- retention
Count Number - The number of backups to be retained.
- schedule
Recurrence Property Map - The schedule recurrence.
- schedule
Status "Enabled" | "Disabled" - The schedule status.
- start
Time String - The start time of the schedule.
- backup
Schedule StringName - 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.
- Last
Successful stringRun - 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.
- Last
Successful stringRun - 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.
- last
Successful StringRun - 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.
- last
Successful stringRun - 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_ strrun - 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.
- last
Successful StringRun - 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, BackupTypeArgs
- Local
Snapshot - LocalSnapshot
- Cloud
Snapshot - CloudSnapshot
- Backup
Type Local Snapshot - LocalSnapshot
- Backup
Type Cloud Snapshot - CloudSnapshot
- Local
Snapshot - LocalSnapshot
- Cloud
Snapshot - CloudSnapshot
- Local
Snapshot - LocalSnapshot
- Cloud
Snapshot - CloudSnapshot
- LOCAL_SNAPSHOT
- LocalSnapshot
- CLOUD_SNAPSHOT
- CloudSnapshot
- "Local
Snapshot" - LocalSnapshot
- "Cloud
Snapshot" - CloudSnapshot
DayOfWeek, DayOfWeekArgs
- Sunday
- Sunday
- Monday
- Monday
- Tuesday
- Tuesday
- Wednesday
- Wednesday
- Thursday
- Thursday
- Friday
- Friday
- Saturday
- Saturday
- Day
Of Week Sunday - Sunday
- Day
Of Week Monday - Monday
- Day
Of Week Tuesday - Tuesday
- Day
Of Week Wednesday - Wednesday
- Day
Of Week Thursday - Thursday
- Day
Of Week Friday - Friday
- Day
Of Week 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
- "Sunday"
- Sunday
- "Monday"
- Monday
- "Tuesday"
- Tuesday
- "Wednesday"
- Wednesday
- "Thursday"
- Thursday
- "Friday"
- Friday
- "Saturday"
- Saturday
Kind, KindArgs
- Series8000
- Series8000
- Kind
Series8000 - Series8000
- Series8000
- Series8000
- Series8000
- Series8000
- SERIES8000
- Series8000
- "Series8000"
- Series8000
RecurrenceType, RecurrenceTypeArgs
- Minutes
- Minutes
- Hourly
- Hourly
- Daily
- Daily
- Weekly
- Weekly
- Recurrence
Type Minutes - Minutes
- Recurrence
Type Hourly - Hourly
- Recurrence
Type Daily - Daily
- Recurrence
Type 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
- "Minutes"
- Minutes
- "Hourly"
- Hourly
- "Daily"
- Daily
- "Weekly"
- Weekly
ScheduleRecurrence, ScheduleRecurrenceArgs
- Recurrence
Type Pulumi.Azure Native. Stor Simple. Recurrence Type - The recurrence type.
- Recurrence
Value int - The recurrence value.
- Weekly
Days List<Pulumi.List Azure Native. Stor Simple. Day Of Week> - 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 []DayList Of Week - The week days list. Applicable only for schedules of recurrence type 'weekly'.
- recurrence
Type RecurrenceType - The recurrence type.
- recurrence
Value Integer - The recurrence value.
- weekly
Days List<DayList Of Week> - The week days list. Applicable only for schedules of recurrence type 'weekly'.
- recurrence
Type RecurrenceType - The recurrence type.
- recurrence
Value number - The recurrence value.
- weekly
Days DayList Of Week[] - 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_ Sequence[Daylist Of Week] - The week days list. Applicable only for schedules of recurrence type 'weekly'.
- recurrence
Type "Minutes" | "Hourly" | "Daily" | "Weekly" - The recurrence type.
- recurrence
Value Number - The recurrence value.
- weekly
Days List<"Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday">List - The week days list. Applicable only for schedules of recurrence type 'weekly'.
ScheduleRecurrenceResponse, ScheduleRecurrenceResponseArgs
- Recurrence
Type string - The recurrence type.
- Recurrence
Value int - The recurrence value.
- Weekly
Days List<string>List - The week days list. Applicable only for schedules of recurrence type 'weekly'.
- Recurrence
Type string - The recurrence type.
- Recurrence
Value int - The recurrence value.
- Weekly
Days []stringList - The week days list. Applicable only for schedules of recurrence type 'weekly'.
- recurrence
Type String - The recurrence type.
- recurrence
Value Integer - The recurrence value.
- weekly
Days List<String>List - The week days list. Applicable only for schedules of recurrence type 'weekly'.
- recurrence
Type string - The recurrence type.
- recurrence
Value number - The recurrence value.
- weekly
Days string[]List - 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_ Sequence[str]list - The week days list. Applicable only for schedules of recurrence type 'weekly'.
- recurrence
Type String - The recurrence type.
- recurrence
Value Number - The recurrence value.
- weekly
Days List<String>List - The week days list. Applicable only for schedules of recurrence type 'weekly'.
ScheduleStatus, ScheduleStatusArgs
- Enabled
- Enabled
- Disabled
- Disabled
- Schedule
Status Enabled - Enabled
- Schedule
Status Disabled - 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0