Managing Groups Under an Application
To effectively manage applications, it is often necessary to adapt their functional architecture as your service evolves. A streamlined and flexible approach to creating and managing groups is crucial. With COC, you can directly create groups under an application, allowing you to easily adjust the application's architecture in line with the service's iteration pace. This flexibility enables you to manage application functions more efficiently, ultimately accelerating your service response.
Prerequisites
- You have created an application by referring to Creating an Application.
- You have created a component by referring to Creating a Component.
Creating a Group
- Log in to COC.
- In the navigation pane, choose Resources > Application and Resource Management.
- Click Applications.
- In the application list on the left, locate the target application, expand it, locate the target component, and click
. - Set group information by referring to Table 1. Figure 1 Creating a group
Table 1 Parameters for creating a group Parameter
Description
Example Value
Group
Specify a group name based on the naming rules.
The value can contain 3 to 60 characters, including letters, digits, hyphens (-), and underscores (_).
Test Group
Available Cloud Service Providers
Select the cloud service provider to which the target instance belongs.
Huawei Cloud
Account which the resource belongs to
This parameter is mandatory only when Available Cloud Service Providers is set to Cross-Account Resources.
-
Resource Association Method
Select a resource association method.
- Manual association: You can manually associate resources with the group you created for unified management. For details, see Managing Resources Associated with an Application.
- Automatic association: You can add all resources with the same tag in an enterprise project to a resource group.
Automatic association
Region
Select a region from the drop-down list.
-
Enterprise Project
This parameter is required only when Resource Association Method is set to Automatic association.
Select an enterprise project from the drop-down list.
default
Tag
This parameter is required only when Resource Association Method is set to Automatic association.
In the enterprise project, only resources that match all the configured tags will be automatically allocated to the application group.
- Tag key: Enter the tag key of the target instance.
- Tag value: Enter the tag value of the target instance.
- Tag key: testKey
- Tag value: testValue
Associate Resource with APM Environment
(Optional) Configure the application, component, and environment of the APM service corresponding to the group so that you can obtain APM-related information through this field during fault diagnosis.
-
- Click OK. The group is created.
Modifying a Group
- Log in to COC.
- In the navigation pane, choose Resources > Application and Resource Management.
- Click Applications.
- In the application list on the left, locate the target application, expand it, locate the target group, and click
. - Modify the group information by referring to Table 2.
Table 2 Parameters for modifying a group Parameter
Description
Example Value
Group
Specify a group name based on the naming rules.
Test Group
Resource Association Method
Select a resource association method.
- Manual association: You can manually associate resources with the group you created for unified management.
- Automatic association: You can add all resources with the same tag in an enterprise project to a resource group.
Manual association
Enterprise Project
This parameter is required only when Resource Association Method is set to Automatic association.
Select an enterprise project from the drop-down list. If no enterprise project is available, click Create Enterprise Project to create one.
default
Tag
This parameter is required only when Resource Association Method is set to Automatic association.
In the enterprise project, only resources that match all the configured tags will be automatically allocated to the application group.
- Tag key: Enter the tag key of the target instance.
- Tag Value: Enter the tag value of the target instance.
- Tag key: testKey
- Tag value: testValue
Associate Resource with APM Environment
(Optional) Configure the application, component, and environment of the APM service corresponding to the group so that you can obtain APM-related information through this field during fault diagnosis.
-
- Click OK. The group is modified.
Deleting a Group
- Log in to COC.
- In the navigation pane, choose Resources > Application and Resource Management.
- Click Applications.
- In the application list on the left, locate the target application, expand it, locate the target group, and click
. - In the dialog box that is displayed, select whether to forcibly delete it.
- If you select Yes, the system will automatically delete this group and resources associated with it.
Enter DELETE in the text box and confirm the forcible deletion.
- If you select No, only resource groups that are not associated with resources can be deleted.
- If you select Yes, the system will automatically delete this group and resources associated with it.
- Click OK. The group is deleted.
Helpful Links
You can use COC to create, modify, delete, and query groups by calling APIs. For details, see Group Management.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot