Creating an Application
When dealing with complex organizational structure and resources require centralized, fine‑grained management by organization, you can create applications to logically classify components. After an application is created, you can add sub-applications (to build a multi-level management structure) and new components. In this way, the resource organization system can be clearly formed based on service modules, making management more intuitive and maintenance more efficient.
Constraints
- If the large-scale application structure is selected, you can configure sub-applications.
- Only one type of node (sub-application/component) is allowed at the same level under an application or sub-application.
- A maximum of 50 components and 50 groups can be configured for an application.
Creating an Application
- Log in to COC.
- In the navigation pane, choose Resources > Application and Resource Management.
- Click Applications.
- Click Create Application.
- On the application creation page, create an application based on your service scenario.
COC provides two creation modes: advanced creation and quick creation.
If the resource structure is complex, for example, an application has multiple components, and each component involves resources in multiple regions, you can use the advanced creation method.
- On the application creation page, click the Advanced Creation tab.
- Select an application structure type based on the complexity of the application structure.
- Lightweight: Lightweight applications feature fewer layers and a simpler structure. Application layer structure: Applications > Components > Groups > Resources
- Large-scale: Large-scale applications have complex structures. Application layer structure: Applications > Sub-applications (multi-layer) > Components > Groups > Resources.
- Set the application structure by referring to Table 1.
After setting all mandatory fields of the current level, click OK to go to the next level. After all mandatory fields of all levels are specified, click OK to complete application creation.
Table 1 Parameters for creating an application Parameter
Description
Example Value
Application
Customize an application name based on the naming rule.
The application name can contain 3 to 50 characters, including letters, digits, hyphens (-), and underscores (_).
Test_application
Description
(Optional) Description of the application.
-
Subapplication Name
This parameter is required only when the large-scale application type is selected.
Customize a sub-application name based on the naming rule.
The sub-application name can contain 3 to 50 characters, including letters, digits, hyphens (-), and underscores (_).
Test_Sub-application
Description
(Optional) Description of a sub-application.
-
Component
Customize a component name based on the naming rule.
The component name can contain 3 to 60 characters, including letters, digits, hyphens (-), and underscores (_).
Test Component
Group
Customize a group name based on the naming rule.
The group name 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
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
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.
-
Tag Key
This parameter is required only when Resource Association Method is set to Automatic association.
Enter the tag key of the target instance.
testKey
Tag Value
This parameter is required only when Resource Association Method is set to Automatic association.
(Optional) Enter the tag value of the target instance.
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 Create. The application is created.
If the resource structure is simple, for example, an application requires only Huawei Cloud resources and the resources need to be associated with only one group, you can use the quick creation function.
- On the application creation page, click the Quick Creation tab.
- Set basic application information. Figure 1 Basic information
Table 2 Basic information parameters Parameter
Description
Example Value
Application
Customize an application name based on the naming rule.
The name can contain 3 to 50 characters, including letters, digits, hyphens (-), and underscores (_).
Test_application
Application Description
(Optional) Description of the application scenario.
-
Available Cloud Service Providers
The preset value is Huawei Cloud and cannot be changed.
Huawei Cloud
Region
Select a region from the drop-down list.
CN North-Beijing4
- Add resources by referring to Table 3.
Table 3 Parameters for adding a resource Parameter
Description
Example Value
Resource Association Method
Select a resource association method.
- Manual association: Click Select Resource to manually associate the resource data with the group for management.
- Automatic association: You can add all resources with the same tag in an enterprise project to a resource group.
Automatic 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.
default
Tag Key
This parameter is required only when Resource Association Method is set to Automatic association.
Enter the tag key of the target instance.
testKey
Tag Value
This parameter is required only when Resource Association Method is set to Automatic association.
(Optional) Enter the tag value of the target instance.
testValue
- Click OK. The application is created.
The system automatically generates components and groups named {Application-name}-component and {Application-name}-group, respectively.
Creating a Sub-application
You can create sub-applications under an application only when you select the Large-scale application structure type during application creation.
- Log in to COC.
- In the navigation pane, choose Resources > Application and Resource Management.
- Click Applications.
- On the displayed page, in the left pane, select the application for which you want to create a sub-application for and click
. - Set sub-application information.
Table 4 Parameters for creating a sub-application Parameter
Description
Example Value
Subapplication Name
Customize a sub-application name based on the naming rule.
Test_Sub-application
Description
(Optional) Description of a sub-application.
-
- Click OK. The sub-application is created.
After a sub-application is created, you can create components under the sub-application.
More Operations
After an application is created, you can perform the operations in the following table based on service requirements.
| Function | Scenario | Operation |
|---|---|---|
| Modifying an application | After an application is created, you can modify the application name and description. |
|
| Modifying a sub-application | After a sub-application is created, you can modify its name and description. |
|
| Deleting an application | If there is a group, component, or sub-application under an application, the application cannot be deleted. Before deleting a node, ensure that the node does not contain sub-nodes. Deleted applications cannot be restored. Exercise caution when performing this operation. |
|
| Deleting a sub-application | If there is a group or component under a sub-application, the sub-application cannot be deleted. Before deleting a node, ensure that the node does not contain sub-nodes. Deleted sub-applications cannot be restored. Exercise caution when performing this operation. |
|
Helpful Links
You can use COC to create, modify, delete, and query applications by calling APIs. For details, see Application 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



