azure-native.storsimple.BackupPolicy
Explore with Pulumi AI
The backup policy. API Version: 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",
},
});
});
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.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
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 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.
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",
});
example, err := storsimple.NewBackupPolicy(ctx, "examplebackupPolicyResourceResourceFromStorsimple", &storsimple.BackupPolicyArgs{
DeviceName: "string",
ManagerName: "string",
ResourceGroupName: "string",
VolumeIds: []string{
"string",
},
BackupPolicyName: "string",
Kind: "Series8000",
})
var examplebackupPolicyResourceResourceFromStorsimple = new BackupPolicy("examplebackupPolicyResourceResourceFromStorsimple", BackupPolicyArgs.builder()
.deviceName("string")
.managerName("string")
.resourceGroupName("string")
.volumeIds("string")
.backupPolicyName("string")
.kind("Series8000")
.build());
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)
const examplebackupPolicyResourceResourceFromStorsimple = new azure_native.storsimple.BackupPolicy("examplebackupPolicyResourceResourceFromStorsimple", {
deviceName: "string",
managerName: "string",
resourceGroupName: "string",
volumeIds: ["string"],
backupPolicyName: "string",
kind: "Series8000",
});
type: azure-native:storsimple:BackupPolicy
properties:
backupPolicyName: string
deviceName: string
kind: Series8000
managerName: string
resourceGroupName: string
volumeIds:
- string
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:
- Device
Name string - The device name
- Manager
Name string - The manager name
- Resource
Group stringName - The resource group name
- Volume
Ids List<string> - The path IDs of the volumes which are part of the backup policy.
- Backup
Policy stringName - The name of the backup policy to be created/updated.
- Kind
Pulumi.
Azure Native. Stor Simple. Kind - The Kind of the object. Currently only Series8000 is supported
- Device
Name string - The device name
- Manager
Name string - The manager name
- Resource
Group stringName - The resource group name
- Volume
Ids []string - The path IDs of the volumes which are part of the backup policy.
- Backup
Policy stringName - The name of the backup policy to be created/updated.
- Kind Kind
- The Kind of the object. Currently only Series8000 is supported
- device
Name String - The device name
- manager
Name String - The manager name
- resource
Group StringName - The resource group name
- volume
Ids List<String> - The path IDs of the volumes which are part of the backup policy.
- backup
Policy StringName - The name of the backup policy to be created/updated.
- kind Kind
- The Kind of the object. Currently only Series8000 is supported
- device
Name string - The device name
- manager
Name string - The manager name
- resource
Group stringName - The resource group name
- volume
Ids string[] - The path IDs of the volumes which are part of the backup policy.
- backup
Policy stringName - 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_ strname - The resource group name
- volume_
ids Sequence[str] - The path IDs of the volumes which are part of the backup policy.
- backup_
policy_ strname - The name of the backup policy to be created/updated.
- kind Kind
- The Kind of the object. Currently only Series8000 is supported
- device
Name String - The device name
- manager
Name String - The manager name
- resource
Group StringName - The resource group name
- volume
Ids List<String> - The path IDs of the volumes which are part of the backup policy.
- backup
Policy StringName - 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:
- Backup
Policy stringCreation Type - 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.
- Last
Backup stringTime - The time of the last backup for the backup policy.
- Name string
- The name of the object.
- Next
Backup stringTime - The time of the next backup for the backup policy.
- Scheduled
Backup stringStatus - Indicates whether at least one of the schedules in the backup policy is active or not.
- Schedules
Count double - The count of schedules the backup policy contains.
- Ssm
Host stringName - 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 stringCreation Type - 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.
- Last
Backup stringTime - The time of the last backup for the backup policy.
- Name string
- The name of the object.
- Next
Backup stringTime - The time of the next backup for the backup policy.
- Scheduled
Backup stringStatus - Indicates whether at least one of the schedules in the backup policy is active or not.
- Schedules
Count float64 - The count of schedules the backup policy contains.
- Ssm
Host stringName - 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 StringCreation Type - 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.
- last
Backup StringTime - The time of the last backup for the backup policy.
- name String
- The name of the object.
- next
Backup StringTime - The time of the next backup for the backup policy.
- scheduled
Backup StringStatus - Indicates whether at least one of the schedules in the backup policy is active or not.
- schedules
Count Double - The count of schedules the backup policy contains.
- ssm
Host StringName - 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 stringCreation Type - 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.
- last
Backup stringTime - The time of the last backup for the backup policy.
- name string
- The name of the object.
- next
Backup stringTime - The time of the next backup for the backup policy.
- scheduled
Backup stringStatus - Indicates whether at least one of the schedules in the backup policy is active or not.
- schedules
Count number - The count of schedules the backup policy contains.
- ssm
Host stringName - 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_ strcreation_ type - 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_ strtime - The time of the last backup for the backup policy.
- name str
- The name of the object.
- next_
backup_ strtime - The time of the next backup for the backup policy.
- scheduled_
backup_ strstatus - 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_ strname - 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.
- backup
Policy StringCreation Type - 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.
- last
Backup StringTime - The time of the last backup for the backup policy.
- name String
- The name of the object.
- next
Backup StringTime - The time of the next backup for the backup policy.
- scheduled
Backup StringStatus - Indicates whether at least one of the schedules in the backup policy is active or not.
- schedules
Count Number - The count of schedules the backup policy contains.
- ssm
Host StringName - 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
- Kind
Series8000 - 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
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