Response Templates

Prev Next

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 be 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. Log in to Britive.
  2. Click on Admin->Resource Manager->Response Templates.
  3. Click the Create Response Template button to create a new response template.
  4. Enter the Name and Description of a response template.
  5. Check Enable Console to access the UI console and provide the template details.
    • 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 to transform the response. For example, to add 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) }} 
  6. Check Show on UI only for programmatic access templates. Enable Console and Show on UI are mutually exclusive fields.
  7. Click Save.