New-ProtectionPolicy
SYNOPSIS
Creates a protection policy.
SYNTAX
ByName (Default)
New-ProtectionPolicy [-Cluster] <Cluster> [-Name] <String> [-Description <String>]
[-SnapshotRuleName <String[]>] [-ReplicationRuleName <String[]>] [<CommonParameters>]
ById
New-ProtectionPolicy [-Cluster] <Cluster> [-Name] <String> [-Description <String>]
[-SnapshotRuleId <String[]>] [-ReplicationRuleId <String[]>] [<CommonParameters>]
DESCRIPTION
Creates a protection policy. At least one snapshot or replication rule is required.
EXAMPLES
Example 1
PS C:\> New-ProtectionPolicy -Cluster $cluster -Name policy1 -Description "Policy 1" -SnapshotRuleName snapRuleName1
Where $cluster is a PowerStore cluster instance. Creates a new protection policy named policy1 using snapshot rule with name snapRuleName1.
Example 2
PS C:\> New-ProtectionPolicy -Cluster $cluster -Name policy1 -Description "Policy 1" -SnapshotRuleId snapRuleId1 -ReplicationRuleId replRuleId1
Where $cluster is a PowerStore cluster instance. Creates a new protection policy named policy1 using snapshot rule with Id snapRuleId1 and replication rule replRuleId1.
PARAMETERS
-Cluster
The PowerStore cluster instance.
Type: Cluster
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Name
Name of the new policy.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Description
Optional description for the protection policy.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SnapshotRuleName
List of snapshot rule names.
Type: String[]
Parameter Sets: ByName
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SnapshotRuleId
List of snapshot rule Ids.
Type: String[]
Parameter Sets: ById
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ReplicationRuleName
List of replication rule names.
Type: String[]
Parameter Sets: ByName
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ReplicationRuleId
List of replication rule Ids.
Type: String[]
Parameter Sets: ById
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.