Get-PASMasterPolicy
Get-PASMasterPolicy
SYNOPSIS
Retrieves Master Policy details
SYNTAX
Get-PASMasterPolicy [-PolicyId <Int32>] [<CommonParameters>]
DESCRIPTION
Retrieves Master Policy details
EXAMPLES
Example 1
Get-PASMasterPolicy
Outputs all Master Policy details. Policy ID 1 is the main Master Policy
Example 2
Get-PASMasterPolicy -PolicyId 2
Outputs all Master Policy details for platform with id 2
Example 3
2 | Get-PASMasterPolicy
Outputs all Master Policy details for platform with id 2, providing the PolicyId via the pipeline by value.
Example 4
[pscustomobject]@{PolicyId = 3} | Get-PASMasterPolicy
Outputs all Master Policy details for platform with id 3, providing the PolicyId via the pipeline by property name.
Minimum required version 15.0
PARAMETERS
-PolicyId
The ID of the policy to retrieve.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 1
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
None
OUTPUTS
System.Object
NOTES
RELATED LINKS
https://pspas.pspete.dev/commands/Get-PASMasterPolicy
https://docs.cyberark.com/pam-self-hosted/latest/en/content/webservices/get-policy-by-id.htm