getPolicyTemplate

Retrieve the details for the specified policy template in the specified policy store.

Samples


fun main() { 
   //sampleStart 
   // The following example displays the details of the specified policy template.
val resp = verifiedPermissionsClient.getPolicyTemplate {
    policyStoreId = "C7v5xMplfFH3i3e4Jrzb1a"
    policyTemplateId = "PTEXAMPLEabcdefg111111"
} 
   //sampleEnd
}

fun main() { 
   //sampleStart 
   // The following example retrieves the details of a policy template using its name instead of its ID.
val resp = verifiedPermissionsClient.getPolicyTemplate {
    policyStoreId = "C7v5xMplfFH3i3e4Jrzb1a"
    policyTemplateId = "name/example-policy-template"
} 
   //sampleEnd
}