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.
- Login to Britive.
- Click on Admin->Resource Manager->Response Templates.
- Click the Create a new Template button to create a new response template.
- Enter the Name and Description of a response template.
- 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.
- 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) }}
- Click Save.