azure-native.storsimple.BackupPolicy

Explore with Pulumi AI

The backup policy. API Version: 2017-06-01.

Example Usage

BackupPoliciesCreateOrUpdate

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var backupPolicy = new AzureNative.StorSimple.BackupPolicy("backupPolicy", new()
    {
        BackupPolicyName = "BkUpPolicy01ForSDKTest",
        DeviceName = "Device05ForSDKTest",
        Kind = AzureNative.StorSimple.Kind.Series8000,
        ManagerName = "ManagerForSDKTest1",
        ResourceGroupName = "ResourceGroupForSDKTest",
        VolumeIds = new[]
        {
            "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/volumeContainers/volumeContainerForSDKTest/volumes/Clonedvolume1",
            "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/volumeContainers/volumeContainerForSDKTest/volumes/volume1",
        },
    });

});
package main

import (
	storsimple "github.com/pulumi/pulumi-azure-native/sdk/go/azure/storsimple"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := storsimple.NewBackupPolicy(ctx, "backupPolicy", &storsimple.BackupPolicyArgs{
			BackupPolicyName:  pulumi.String("BkUpPolicy01ForSDKTest"),
			DeviceName:        pulumi.String("Device05ForSDKTest"),
			Kind:              storsimple.KindSeries8000,
			ManagerName:       pulumi.String("ManagerForSDKTest1"),
			ResourceGroupName: pulumi.String("ResourceGroupForSDKTest"),
			VolumeIds: pulumi.StringArray{
				pulumi.String("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/volumeContainers/volumeContainerForSDKTest/volumes/Clonedvolume1"),
				pulumi.String("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/volumeContainers/volumeContainerForSDKTest/volumes/volume1"),
			},
		})
		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.BackupPolicy;
import com.pulumi.azurenative.storsimple.BackupPolicyArgs;
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 backupPolicy = new BackupPolicy("backupPolicy", BackupPolicyArgs.builder()        
            .backupPolicyName("BkUpPolicy01ForSDKTest")
            .deviceName("Device05ForSDKTest")
            .kind("Series8000")
            .managerName("ManagerForSDKTest1")
            .resourceGroupName("ResourceGroupForSDKTest")
            .volumeIds(            
                "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/volumeContainers/volumeContainerForSDKTest/volumes/Clonedvolume1",
                "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/volumeContainers/volumeContainerForSDKTest/volumes/volume1")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

backup_policy = azure_native.storsimple.BackupPolicy("backupPolicy",
    backup_policy_name="BkUpPolicy01ForSDKTest",
    device_name="Device05ForSDKTest",
    kind=azure_native.storsimple.Kind.SERIES8000,
    manager_name="ManagerForSDKTest1",
    resource_group_name="ResourceGroupForSDKTest",
    volume_ids=[
        "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/volumeContainers/volumeContainerForSDKTest/volumes/Clonedvolume1",
        "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/volumeContainers/volumeContainerForSDKTest/volumes/volume1",
    ])
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const backupPolicy = new azure_native.storsimple.BackupPolicy("backupPolicy", {
    backupPolicyName: "BkUpPolicy01ForSDKTest",
    deviceName: "Device05ForSDKTest",
    kind: azure_native.storsimple.Kind.Series8000,
    managerName: "ManagerForSDKTest1",
    resourceGroupName: "ResourceGroupForSDKTest",
    volumeIds: [
        "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/volumeContainers/volumeContainerForSDKTest/volumes/Clonedvolume1",
        "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/volumeContainers/volumeContainerForSDKTest/volumes/volume1",
    ],
});
resources:
  backupPolicy:
    type: azure-native:storsimple:BackupPolicy
    properties:
      backupPolicyName: BkUpPolicy01ForSDKTest
      deviceName: Device05ForSDKTest
      kind: Series8000
      managerName: ManagerForSDKTest1
      resourceGroupName: ResourceGroupForSDKTest
      volumeIds:
        - /subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/volumeContainers/volumeContainerForSDKTest/volumes/Clonedvolume1
        - /subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/volumeContainers/volumeContainerForSDKTest/volumes/volume1

Create BackupPolicy Resource

new BackupPolicy(name: string, args: BackupPolicyArgs, opts?: CustomResourceOptions);
@overload
def BackupPolicy(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 backup_policy_name: Optional[str] = None,
                 device_name: Optional[str] = None,
                 kind: Optional[Kind] = None,
                 manager_name: Optional[str] = None,
                 resource_group_name: Optional[str] = None,
                 volume_ids: Optional[Sequence[str]] = None)
@overload
def BackupPolicy(resource_name: str,
                 args: BackupPolicyArgs,
                 opts: Optional[ResourceOptions] = None)
func NewBackupPolicy(ctx *Context, name string, args BackupPolicyArgs, opts ...ResourceOption) (*BackupPolicy, error)
public BackupPolicy(string name, BackupPolicyArgs args, CustomResourceOptions? opts = null)
public BackupPolicy(String name, BackupPolicyArgs args)
public BackupPolicy(String name, BackupPolicyArgs args, CustomResourceOptions options)
type: azure-native:storsimple:BackupPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args BackupPolicyArgs
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 BackupPolicyArgs
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 BackupPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args BackupPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args BackupPolicyArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

BackupPolicy 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 BackupPolicy resource accepts the following input properties:

DeviceName string

The device name

ManagerName string

The manager name

ResourceGroupName string

The resource group name

VolumeIds List<string>

The path IDs of the volumes which are part of the backup policy.

BackupPolicyName string

The name of the backup policy to be created/updated.

Kind Pulumi.AzureNative.StorSimple.Kind

The Kind of the object. Currently only Series8000 is supported

DeviceName string

The device name

ManagerName string

The manager name

ResourceGroupName string

The resource group name

VolumeIds []string

The path IDs of the volumes which are part of the backup policy.

BackupPolicyName string

The name of the backup policy to be created/updated.

Kind Kind

The Kind of the object. Currently only Series8000 is supported

deviceName String

The device name

managerName String

The manager name

resourceGroupName String

The resource group name

volumeIds List<String>

The path IDs of the volumes which are part of the backup policy.

backupPolicyName String

The name of the backup policy to be created/updated.

kind Kind

The Kind of the object. Currently only Series8000 is supported

deviceName string

The device name

managerName string

The manager name

resourceGroupName string

The resource group name

volumeIds string[]

The path IDs of the volumes which are part of the backup policy.

backupPolicyName string

The name of the backup policy to be created/updated.

kind Kind

The Kind of the object. Currently only Series8000 is supported

device_name str

The device name

manager_name str

The manager name

resource_group_name str

The resource group name

volume_ids Sequence[str]

The path IDs of the volumes which are part of the backup policy.

backup_policy_name str

The name of the backup policy to be created/updated.

kind Kind

The Kind of the object. Currently only Series8000 is supported

deviceName String

The device name

managerName String

The manager name

resourceGroupName String

The resource group name

volumeIds List<String>

The path IDs of the volumes which are part of the backup policy.

backupPolicyName String

The name of the backup policy to be created/updated.

kind "Series8000"

The Kind of the object. Currently only Series8000 is supported

Outputs

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

BackupPolicyCreationType string

The backup policy creation type. Indicates whether this was created through SaaS or through StorSimple Snapshot Manager.

Id string

The provider-assigned unique ID for this managed resource.

LastBackupTime string

The time of the last backup for the backup policy.

Name string

The name of the object.

NextBackupTime string

The time of the next backup for the backup policy.

ScheduledBackupStatus string

Indicates whether at least one of the schedules in the backup policy is active or not.

SchedulesCount double

The count of schedules the backup policy contains.

SsmHostName string

If the backup policy was created by StorSimple Snapshot Manager, then this field indicates the hostname of the StorSimple Snapshot Manager.

Type string

The hierarchical type of the object.

BackupPolicyCreationType string

The backup policy creation type. Indicates whether this was created through SaaS or through StorSimple Snapshot Manager.

Id string

The provider-assigned unique ID for this managed resource.

LastBackupTime string

The time of the last backup for the backup policy.

Name string

The name of the object.

NextBackupTime string

The time of the next backup for the backup policy.

ScheduledBackupStatus string

Indicates whether at least one of the schedules in the backup policy is active or not.

SchedulesCount float64

The count of schedules the backup policy contains.

SsmHostName string

If the backup policy was created by StorSimple Snapshot Manager, then this field indicates the hostname of the StorSimple Snapshot Manager.

Type string

The hierarchical type of the object.

backupPolicyCreationType String

The backup policy creation type. Indicates whether this was created through SaaS or through StorSimple Snapshot Manager.

id String

The provider-assigned unique ID for this managed resource.

lastBackupTime String

The time of the last backup for the backup policy.

name String

The name of the object.

nextBackupTime String

The time of the next backup for the backup policy.

scheduledBackupStatus String

Indicates whether at least one of the schedules in the backup policy is active or not.

schedulesCount Double

The count of schedules the backup policy contains.

ssmHostName String

If the backup policy was created by StorSimple Snapshot Manager, then this field indicates the hostname of the StorSimple Snapshot Manager.

type String

The hierarchical type of the object.

backupPolicyCreationType string

The backup policy creation type. Indicates whether this was created through SaaS or through StorSimple Snapshot Manager.

id string

The provider-assigned unique ID for this managed resource.

lastBackupTime string

The time of the last backup for the backup policy.

name string

The name of the object.

nextBackupTime string

The time of the next backup for the backup policy.

scheduledBackupStatus string

Indicates whether at least one of the schedules in the backup policy is active or not.

schedulesCount number

The count of schedules the backup policy contains.

ssmHostName string

If the backup policy was created by StorSimple Snapshot Manager, then this field indicates the hostname of the StorSimple Snapshot Manager.

type string

The hierarchical type of the object.

backup_policy_creation_type str

The backup policy creation type. Indicates whether this was created through SaaS or through StorSimple Snapshot Manager.

id str

The provider-assigned unique ID for this managed resource.

last_backup_time str

The time of the last backup for the backup policy.

name str

The name of the object.

next_backup_time str

The time of the next backup for the backup policy.

scheduled_backup_status str

Indicates whether at least one of the schedules in the backup policy is active or not.

schedules_count float

The count of schedules the backup policy contains.

ssm_host_name str

If the backup policy was created by StorSimple Snapshot Manager, then this field indicates the hostname of the StorSimple Snapshot Manager.

type str

The hierarchical type of the object.

backupPolicyCreationType String

The backup policy creation type. Indicates whether this was created through SaaS or through StorSimple Snapshot Manager.

id String

The provider-assigned unique ID for this managed resource.

lastBackupTime String

The time of the last backup for the backup policy.

name String

The name of the object.

nextBackupTime String

The time of the next backup for the backup policy.

scheduledBackupStatus String

Indicates whether at least one of the schedules in the backup policy is active or not.

schedulesCount Number

The count of schedules the backup policy contains.

ssmHostName String

If the backup policy was created by StorSimple Snapshot Manager, then this field indicates the hostname of the StorSimple Snapshot Manager.

type String

The hierarchical type of the object.

Supporting Types

Kind

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

Import

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

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

Package Details

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