Policies
The policies in JSDN are a set of rules that are executed when some specified criteria is met.
You can create policies and thus automate tasks and actions which might otherwise need user’s intervention. The policies in JSDN are a set of rules that are executed when some specified criteria is met. You can also use the policy framework to run scheduler driven tasks. For example, you can create a policy to resize the instance if your instance’s CPU utilization is at the critical level 3 times in 60 seconds. First, you need to select the resource type for which you want to create the policy, then select the specific action category. You can also request your administrator to create a policy by uploading the rule file (containing.drl extension).
A quick graphical representation of Policy functionality that works in the platform.
The Policies page displays the policies that are created. The General tab within the Policies page displays the generic store policies.
The following table displays the options available on the Policies page:
Fields | Description |
---|---|
Name | Displays the name of the policy. |
Created On | Displays the date and time when the policy is created. |
Created By | Displays the name of the user who created the policy. |
Updated On | Displays the date and time when the policy is updated. |
Updated By | Displays the name of the user who updated the policy. |
Actions |
|
Create Policies
The policies are created to define set of rules and thus automate tasks and actions which might otherwise need user’s intervention. While creating a policy you can define a rule to restrict a user from launching an instance based on provider region, images, size and network.
To create policies, do the following:
- On the My Company menu, click Policies. The Policies page is displayed.
- Click the Add Policy icon available on the top left of the page. The Add Policy page is displayed.
- Type the policy name in the Name field.
- Provide a short description about the policy in the Description field.
- Select the Policy Category for which you want to create the policy from the drop-down list. The listing of the action is based on the Policy Category you select here.
- Enter the Resources with tags for the instances which you want to associate with your policy. If you do not associate tags with policies, the particular policy will be associated with all active instances. Provide the key and value in the fields. Refer to the What are Tags? topic for more information on tags.
- Select the type of policy you want to create next to the Using Events
field.
The store provides different types of policies to define, 1) IaaS Resources, 2) Instance, 3) Volume, and 4) Usage.
If you have selected IaaS Resources policy, by default the policy will be driven using IaaS Configuration Screen.
OR
If you have selected Instance policy, then you have to select either Calendar Driven Policies, Instance Monitoring Driven Policies, and or Server Recovery Policies as an event type.
OR
If you have selected Volume policy, by default the polices will be driven by using Calendar Driven Policies.
OR
If you have selected Usage policy, by default the polices will be driven by using Calendar Driven Policies.
View Policy Details
- On the My Company menu, click Policies. The Policies page
is displayed.
OR
- If you are on the Add Policy page, click the Policies icon available on the top left of the page. The Policies page is displayed.
- Click the Edit link from the Actions drop-down list next to the policy you want to edit.
The View Details page is displayed. It displays the details related to the policy. Review the details.
Edit Policy Details
- On the My Company menu, click Policies. The Policies page is displayed. Or
- If you are on the Add Policy page, click the Policies icon available on the top left of the page. The Policies page is displayed.
- Click the Edit link from the Actions drop-down list next to the policy you want to edit.
- On the Edit Details page, you can make the changes as required and then
click Save & Finish.Note: You will not be able to edit the policies created by the administrator using the drl file.
Delete Policies
- On the My Company menu, click Policies. The Policies page
is displayed.
OR
- If you are on the Add Policy page, click the Policies icon available on the top left of the page. The Policies page is displayed.
- Click the Delete link from the Action drop-down list next to the policy you want to edit.
- You will be prompted to confirm the deletion. Click Yes to confirm the deletion.
Download Policy Logs
The policy transaction log records for all the policies that are executed are available in the system. You can download the log file that contains the policy transaction status list from the Policy page. You can view the policy details, status of the action whether failure or completed, the details of the user who executed the policy, error code and error description in case if the transaction is a failure.
To download the policy log, do the following:
- On the My Company menu, click Policies. The Policies page
is displayed.
OR
- If you are on the Add Policy page, click the Policies icon available on the top left of the page. The Policies page is displayed.
- Click the Download Policy Log link at the top right of the page. The policy log file gets downloaded to your local system.