Response Templates
    • PDF

    Response Templates

    • PDF

    Article summary

    Response templates are used to display the response received from the broker when an access profile is checked out. It may contain different variables and configured while creating permissions of a resource type. The same permission must be assigned to a profile. The resource template messages can be checked after checking out a profile from My Resources under the Credentials tab. For more information, see My Resources.

    1. Login to Britive.
    2. Click on Admin->Resource Manager->Response Templates.
    3. Click the Create a new Template button to create a new response template.
    4. Enter the Name and Description of a response template.
    5. Check Enable Console to True or False. A resource can have access to UI console, provide the details of the same by enabling this flag.
    6. Enter the template in the provided text area. You can use variables as part of the template. For example, The hostname is ${hostname}. You can also add control functions for the response for transforming the response. For example, adding a function for converting the ppk response to pem response, use {{ fn:convertPpkToPem(ppkContent) }}. The following functions can be used in the response template:
      • To convert ppk response to pem response, use convertPpkToPem {{ fn:convertPpkToPem(ppkContent) }} 
      • To convert pem response to ppk response use convertPemToPpk, {{ fn:convertPemToPpk(pemContent) }} 
      • To convert pem response to ppk2 response use convertPemToPpk2, {{ fn:convertPemToPpk2(pemContent) }} 
    7. Click Save.

    Was this article helpful?

    What's Next