Adding an Assignment
Scenarios
Add an assignment and view its details.
You can use one account to add up to 30 assignments.
Adding an Assignment
- Log in to the management console.
- In the upper right corner of the page, choose Resources > My Resources. Figure 1 RMS service entry
If the resolution of the screen is low, in the upper right corner of the page, choose More > Resources > My Resources.
Figure 2 RMS service entry (low resolution)
Alternatively, click
in the upper left corner of the page. In the service list that is displayed, under Management & Governance, select Resource Management. - In the left navigation pane, choose Resource Compliance.
- In the middle of the page, click Add Assignment. On the displayed Configure Basic Details page, select a policy, specify Assignment Name and Description, and click Next. Figure 3 Configure Basic Details
For details about parameter settings, see Table 1.
Table 1 Basic configuration parameters Parameter
Description
Example Value
Policy Type
Only Built-in policy is supported.
Built-in policy
Built-in Policy
Specifies the policy that has been developed for a service.
You can use built-in policies to quickly add assignments.
For details about the preset policies, see Built-in Policies.
volumes-encrypted-check
Assignment Name
By default, the assignment name is the same as the name of the selected policy. You can also customize the assignment name.
There are no restrictions on the assignment name.
volumes-encrypted-check
Description
By default, the assignment description is the same as the description about the selected policy. You can also customize the assignment description.
There are no restrictions on the assignment description.
The mounted EVS disk is non-compliant if it is not encrypted
- On the displayed Configure Assignment Parameters page, configure required parameters and click Next. Figure 4 Configure Assignment Parameters
For details about parameter settings, see Table 2.
Table 2 Parameter descriptions Parameter
Description
Example Value
Trigger Type
Specifies the condition for triggering the assignment.
Only Configuration change is supported, indicating that the assignment will be triggered when a specific cloud resource is changed.
Configuration change
Filter Type
Specifies the resources to evaluate.
Possible types are:
- Specific resources: Resources of a specific type will be evaluated.
- All resources: All resources under your account will be evaluated.
Specific resources
Resource Scope
If you set Filter Type to Specific resources, you need to specify a resource scope.
- Service: Select the service the resource belongs to.
- Resource type: Select the resource type of the corresponding service.
- Region: Select the region where the resource is located.
N/A
Filter Scope
After you enable Filter Scope, you can filter resources by resource ID or tag.
You can specify a specific resource for compliance evaluation.
Filter Scope is disabled by default.
Configure Assignment Parameters
Specifies the parameter configuration for the built-in policy you selected in step Configure Basic Details.
For example, if you select policy required-tag-check and Keywords is tag, you need to specify a tag key and a tag value here. Then, resources that do not have this tag are non-compliant.
Not all built-in policies have parameters to be configured. For example, if you select policy volumes-encrypted-check, you do not need to configure any assignment parameters.
-
- On the Confirm page displayed, confirm the assignment information and click Submit. Figure 5 Confirm
Figure 6 Querying an assignment
After you add an assignment, the first evaluation is automatically triggered immediately.
Viewing Assignment Details
After you add an assignment, you can view its details.
- Go to the Resource Compliance page.
- Click the name of the assignment you want to view.
- In the Assignment Details area, view the assignment details.
Last Article: Resource Compliance
Next Article: Triggering Resource Compliance Evaluation
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.