1. Packages
  2. Azure Native v2
  3. API Docs
  4. storsimple
  5. BackupPolicy
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.storsimple.BackupPolicy

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

The backup policy. Azure REST API version: 2017-06-01. Prior API version in Azure Native 1.x: 2017-06-01.

Example Usage

BackupPoliciesCreateOrUpdate

using System.Collections.Generic;
using System.Linq;
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",
        },
    });

});
Copy
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.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
	})
}
Copy
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());

    }
}
Copy
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",
    ],
});
Copy
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",
    ])
Copy
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
Copy

Create BackupPolicy Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new BackupPolicy(name: string, args: BackupPolicyArgs, opts?: CustomResourceOptions);
@overload
def BackupPolicy(resource_name: str,
                 args: BackupPolicyArgs,
                 opts: Optional[ResourceOptions] = None)

@overload
def BackupPolicy(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 device_name: Optional[str] = None,
                 manager_name: Optional[str] = None,
                 resource_group_name: Optional[str] = None,
                 volume_ids: Optional[Sequence[str]] = None,
                 backup_policy_name: Optional[str] = None,
                 kind: Optional[Kind] = 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.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. BackupPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. BackupPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. BackupPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. BackupPolicyArgs
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 examplebackupPolicyResourceResourceFromStorsimple = new AzureNative.Storsimple.BackupPolicy("examplebackupPolicyResourceResourceFromStorsimple", new()
{
    DeviceName = "string",
    ManagerName = "string",
    ResourceGroupName = "string",
    VolumeIds = new[]
    {
        "string",
    },
    BackupPolicyName = "string",
    Kind = "Series8000",
});
Copy
example, err := storsimple.NewBackupPolicy(ctx, "examplebackupPolicyResourceResourceFromStorsimple", &storsimple.BackupPolicyArgs{
	DeviceName:        "string",
	ManagerName:       "string",
	ResourceGroupName: "string",
	VolumeIds: []string{
		"string",
	},
	BackupPolicyName: "string",
	Kind:             "Series8000",
})
Copy
var examplebackupPolicyResourceResourceFromStorsimple = new BackupPolicy("examplebackupPolicyResourceResourceFromStorsimple", BackupPolicyArgs.builder()
    .deviceName("string")
    .managerName("string")
    .resourceGroupName("string")
    .volumeIds("string")
    .backupPolicyName("string")
    .kind("Series8000")
    .build());
Copy
examplebackup_policy_resource_resource_from_storsimple = azure_native.storsimple.BackupPolicy("examplebackupPolicyResourceResourceFromStorsimple",
    device_name=string,
    manager_name=string,
    resource_group_name=string,
    volume_ids=[string],
    backup_policy_name=string,
    kind=Series8000)
Copy
const examplebackupPolicyResourceResourceFromStorsimple = new azure_native.storsimple.BackupPolicy("examplebackupPolicyResourceResourceFromStorsimple", {
    deviceName: "string",
    managerName: "string",
    resourceGroupName: "string",
    volumeIds: ["string"],
    backupPolicyName: "string",
    kind: "Series8000",
});
Copy
type: azure-native:storsimple:BackupPolicy
properties:
    backupPolicyName: string
    deviceName: string
    kind: Series8000
    managerName: string
    resourceGroupName: string
    volumeIds:
        - string
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The BackupPolicy resource accepts the following input properties:

DeviceName
This property is required.
Changes to this property will trigger replacement.
string
The device name
ManagerName
This property is required.
Changes to this property will trigger replacement.
string
The manager name
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The resource group name
VolumeIds This property is required. List<string>
The path IDs of the volumes which are part of the backup policy.
BackupPolicyName Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
string
The device name
ManagerName
This property is required.
Changes to this property will trigger replacement.
string
The manager name
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The resource group name
VolumeIds This property is required. []string
The path IDs of the volumes which are part of the backup policy.
BackupPolicyName Changes to this property will trigger replacement. string
The name of the backup policy to be created/updated.
Kind Kind
The Kind of the object. Currently only Series8000 is supported
deviceName
This property is required.
Changes to this property will trigger replacement.
String
The device name
managerName
This property is required.
Changes to this property will trigger replacement.
String
The manager name
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The resource group name
volumeIds This property is required. List<String>
The path IDs of the volumes which are part of the backup policy.
backupPolicyName Changes to this property will trigger replacement. String
The name of the backup policy to be created/updated.
kind Kind
The Kind of the object. Currently only Series8000 is supported
deviceName
This property is required.
Changes to this property will trigger replacement.
string
The device name
managerName
This property is required.
Changes to this property will trigger replacement.
string
The manager name
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The resource group name
volumeIds This property is required. string[]
The path IDs of the volumes which are part of the backup policy.
backupPolicyName Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
str
The device name
manager_name
This property is required.
Changes to this property will trigger replacement.
str
The manager name
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The resource group name
volume_ids This property is required. Sequence[str]
The path IDs of the volumes which are part of the backup policy.
backup_policy_name Changes to this property will trigger replacement. str
The name of the backup policy to be created/updated.
kind Kind
The Kind of the object. Currently only Series8000 is supported
deviceName
This property is required.
Changes to this property will trigger replacement.
String
The device name
managerName
This property is required.
Changes to this property will trigger replacement.
String
The manager name
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The resource group name
volumeIds This property is required. List<String>
The path IDs of the volumes which are part of the backup policy.
backupPolicyName Changes to this property will trigger replacement. 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
, KindArgs

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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupPolicies/{backupPolicyName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi