getPolicy

Retrieves information about the specified policy.

Samples


fun main() { 
   //sampleStart 
   // The following example retrieves information about the specified policy contained in the specified
// policy store. In this example, the requested policy is a template linked policy, so it returns the ID of
// the policy template, and the specific principal and resource used by this policy.
val resp = verifiedPermissionsClient.getPolicy {
    policyId = "9wYixMplbbZQb5fcZHyJhY"
    policyStoreId = "C7v5xMplfFH3i3e4Jrzb1a"
} 
   //sampleEnd
}