Resource Types
    • PDF

    Resource Types

    • PDF

    Article summary

    Resource types are used to define resources. For example, a resource type can be a database, a Linux Server, or different flavors types of databases (e.g. MySQL, Oracle, etc.) or servers (RHEL, Ubuntu). You can configure a common set of fields for every resource, for example, credentials, database URL, etc. The resource type is used as a template for all similar resources. You can create multiple resources of a particular resource type.

    1. Login to Britive.
    2. Click on Admin->Resource Manager->Resource Types.
    3. Click the Create Resource Type button to create a new resource type.
    4. Enter the Name and Description of a resource type.
    5. Click Save.
    6. Click Add Field to add properties of a resource type in the Fields tab:
      1. Enter the Name of the field.
      2. Select the Field Type.
      3. Select if this is a mandatory field.
      4. Click Add.
    7. Click the Create Permission button to create a permission this resource type supports. You can use these permissions when creating a profile. Every update to a permission creates a newer version of it. After permission creation, you can keep it in the Draft mode or Save to enable it immediately. You can keep updating the permission in Draft mode. The users control the permissions and what happens after a certain profile is checked out.
      1. Enter the Name and Description for permission.
      2. Checkout or Checkin: Enter the details about the actions to be executed after a checkout or checkin of a profile. 
        • Insert Code
          1. Select language from the drop-down list.
          2. Enter the actions/script in the in-line editor text box.
            Notes:
            • Both the checkout and checkin must have the same command mode. Both should be either Insert Code, or Add File.
            • For the Insert code selection, the same language must be used for both the checkout and checkin. 
            • Changing the mode or language in one tab also changes in the other.
        • Add File: Upload a file which indicates the permissions required for this resource type. The user is responsible for this script, it could be a Python script, Unix commands, etc. Uploading a file depends on whether it needs to be used as a local or remote permission.
        • Variables: Add one or multiple variables to be used in the script as the script can be used for multiple users for different resources.
        • Time Limit: Enter the Time Limit in minutes. This specifies the time required for the script to execute on a server. The maximum time allowed is 15 minutes.
        • Response Templates: Click Add Templates button to view and add response templates. Select the templates based on the response expected from the profile checkout. For every permission version can have more than one response templates associated with it. For more information about creating and managing response templates, see Response Templates
    8. Click Save.
    9. For the already created permission, to update the description or options under Commands tab, you need to create a new version of a permission using Create Version button. Update the required details and click Save



    Was this article helpful?