< Back

Get-OktaPolicyRule

Sat Jan 18, 2020 5:46 pm

NAME Get-OktaPolicyRule



SYNOPSIS

Gets one or more Okta policy rules.





SYNTAX

Get-OktaPolicyRule -Id <String> [-RuleId <String>] [<CommonParameters>]





DESCRIPTION

Gets one or more Okta policy rules. Accepts a policy If via the pipeline and a rule Id can also be supplied to

retrieve only a particular rule.





PARAMETERS

-Id <String>

The Id of the policy to retrieve rules for. This can be specified as a string, or by passing one or more

policy objects via the pipeline.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-RuleId <String>

The Id of the rule you'd like to retrieve.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String







OUTPUTS

Okta.Sdk.PolicyRule







NOTES









-------------------------- Example 1 --------------------------



PS C:\\> Get-OktaPolicy -Identity "00pmw1mgtiHPRsYJH0h7" | Get-OktaPolicyRule



Get all rules for a policy.

-------------------------- Example 2 --------------------------



PS C:\\> Get-OktaPolicy -Identity "00pmw1mgtiHPRsYJH0h7" | Get-OktaPolicyRule -RuleId "0prmw1on9kK5Yr6aW0h7"



Get a specific policy rule.



RELATED LINKS