Get-ProtectionPolicy

SYNOPSIS

Gets details of protection policies on the PowerStore cluster.

SYNTAX

All (Default)

Get-ProtectionPolicy [-Cluster] <Cluster> [-Identify] [<CommonParameters>]

ByName

Get-ProtectionPolicy [-Cluster] <Cluster> [-Name] <String[]> [<CommonParameters>]

ById

Get-ProtectionPolicy [-Cluster] <Cluster> -Id <String[]> [<CommonParameters>]

DESCRIPTION

Returns a list of all policies of type Protection with details on associated volumes, volume groups, replication rules, and snapshot rules.

EXAMPLES

Example 1

PS C:\> Get-ProtectionPolicy -Cluster $cluster

Where $cluster is a PowerStore cluster instance. Returns all protection policies on the PowerStore cluster.

Example 2

PS C:\> Get-ProtectionPolicy -Cluster $cluster -Identify

Where $cluster is a PowerStore cluster instance. Returns a list of Identity objects with the Id and Name of each protection policy on the PowerStore cluster

Example 3

PS C:\> Get-ProtectionPolicy -Cluster $cluster -Name policy1,policy2

Where $cluster is a PowerStore cluster instance. Returns full details of the policies with names policy1 and policy2.

Example 4

PS C:\> Get-ProtectionPolicy -Cluster $cluster -Id f97a36da-1880-44e6-bfc7-f657c84b7f0b,f3d556fd-d06b-43dc-ad3c-916b4ddd4f4c

Where $cluster is a PowerStore cluster instance. Returns full details of the policies with Ids f97a36da-1880-44e6-bfc7-f657c84b7f0b and f3d556fd-d06b-43dc-ad3c-916b4ddd4f4c.

PARAMETERS

-Cluster

The PowerStore cluster instance obtained from the Connect-Cluster command.

Type: Cluster
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Identify

Returns Identity objects which contain the Id and Name properties of each entity.

Type: SwitchParameter
Parameter Sets: All
Aliases: List

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Name

A list of policy names to query.

Type: String[]
Parameter Sets: ByName
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Id

A list of policy Ids to query.

Type: String[]
Parameter Sets: ById
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
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.

INPUTS

System.String[]

OUTPUTS

Dell.PowerStore.Management.Model.ProtectionPolicy

Dell.PowerStore.Management.Model.Identity

NOTES