đŸ’ģCreating Policy using UI

Once you login as a Standard Registry and finish the setup, click on Policies tab.

We have two options to create Policy :

  1. Creating Policy from scratch

  2. Importing Policy (zip file format)either from file or from IPFS.

1. Creating Policy from Scratch

1.1 To create Policy from scratch, we need to click on "Create Policy" button.

1.2 Once you click on Create Policy , you get a dialog box to fill out basic Policy details.

1.3 Once the details are filled and clicked on OK. Initially, Policy is created in Draft status.

1.4 You can even edit the Policy by clicking Edit button.

1.5 When clicked on Edit, the screen is navigated to Policies configuration tab, which gives an option to add/remove any block from the Policy.

1.6 Once the Policy is configured, you can go to Policies tab and click on Publish.

2. Importing Policy either from File or from IPFS

Instead of creating Policy from scratch, there is an option of importing the Policy zip file from Local system.

Note: Files with .policy extension are only accepted. These files are in zip format, i.e. they are zip archives of the text file.

2.1 Once the .zip file is selected, we get the Policy Import Review screen. Once everything looks good, click on Import Button.

2.2 The Policy can also be imported by importing it from IPFS.

2.3 To do this, you can use the sample policy that we have already uploaded to IPFS by entering the Hedera Message IDs.

2.4 If the timestamp entered is correct, we get Policy Import Preview screen. If the imported Policy looks good, click on Import button.

2.5 Once the Policy is imported, if everything looks good, click on Publish button. Policy will be published and it is represented by changing the status as Published.

2.6 There is also an option to Export the Policy. To export the policy click on Export button. Once, you click on Export, you get Export dialog, where we have two exporting options: Copy message Identifier and saving the Policy as file.

When you click on Save to file, Policy is exported as a .zip file.

Note: While importing tool via file, or policy via file or IPFS, you can change used tools in preview dialog, it will change tools references in schemas and config automatically.

To get complete information about tools, please refer to Tools section.

3. Filtering Policies

On the Policy page, it is now possible to filter the policies list by policy name and tags. All available tags are presented in the dropdown list, which you can create using "Create Tag" for each policy, which makes it easier using the filter.

Last updated