azure-native-v2.storsimple.BackupPolicy
Explore with Pulumi AI
The backup policy. Azure REST API version: 2017-06-01. Prior API version in Azure Native 1.x: 2017-06-01.
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",
});
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
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:
- Device
Name This property is required. Changes to this property will trigger replacement.
- The device name
- Manager
Name This property is required. Changes to this property will trigger replacement.
- The manager name
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The resource group name
- Volume
Ids This property is required. List<string> - The path IDs of the volumes which are part of the backup policy.
- Backup
Policy Name Changes to this property will trigger replacement.
- 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 This property is required. Changes to this property will trigger replacement.
- The device name
- Manager
Name This property is required. Changes to this property will trigger replacement.
- The manager name
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The resource group name
- Volume
Ids This property is required. []string - The path IDs of the volumes which are part of the backup policy.
- Backup
Policy Name Changes to this property will trigger replacement.
- 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.
- The device name
- manager
Name This property is required. Changes to this property will trigger replacement.
- The manager name
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The resource group name
- volume
Ids This property is required. List<String> - The path IDs of the volumes which are part of the backup policy.
- backup
Policy Name Changes to this property will trigger replacement.
- 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.
- The device name
- manager
Name This property is required. Changes to this property will trigger replacement.
- The manager name
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The resource group name
- volume
Ids This property is required. string[] - The path IDs of the volumes which are part of the backup policy.
- backup
Policy Name Changes to this property will trigger replacement.
- 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.
- The device name
- manager_
name This property is required. Changes to this property will trigger replacement.
- The manager name
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- 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.
- 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.
- The device name
- manager
Name This property is required. Changes to this property will trigger replacement.
- The manager name
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The resource group name
- volume
Ids This property is required. List<String> - The path IDs of the volumes which are part of the backup policy.
- backup
Policy Name Changes to this property will trigger replacement.
- 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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupPolicies/{backupPolicyName}
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