Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.25 KB

Get-CaplPolicy.md

File metadata and controls

35 lines (25 loc) · 1.25 KB

Get-CaplPolicy Cmdlet

Back

Returns a CAPL AuthorizationPolicy object from Piraeus.

Parameter Optional Description
ServiceUrl N The management API service URL, e.g., https://<dns>.<location>.cloudapp.azure.com
SecurityToken N The security token previously acquired to access the management API.
PolicyID N The unique policy ID URI that identifies the CAPL policy.

|

Example

$url = "http://piraeus.eastus.cloudapp.azure.com"  
$code = "12345678"  
$token = Get-PiraeusManagementToken '
	-ServiceUrl $url `
	-Key $code

$policyId = “http://skunklab.io/policy/test”
$policy = Get-CaplPolicy
                         -PolicyID $policyId  
                         -ServiceUrl $url  
                         – SecurityToken $token
                                          

Management API