Updated on 2026-06-23 GMT+08:00

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

  1. Log in to COC.
  2. In the navigation pane, choose Resources > Application and Resource Management.
  3. Click Applications.
  4. Click Create Application.
  5. 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.

  1. On the application creation page, click the Advanced Creation tab.
  2. 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.

  3. 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.

    -

  4. 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.

  1. On the application creation page, click the Quick Creation tab.
  2. 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

  3. 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

  4. 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.

  1. Log in to COC.
  2. In the navigation pane, choose Resources > Application and Resource Management.
  3. Click Applications.
  4. On the displayed page, in the left pane, select the application for which you want to create a sub-application for and click .
  5. 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.

    -

  6. 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.

Table 5 More operations

Function

Scenario

Operation

Modifying an application

After an application is created, you can modify the application name and description.

  1. In the navigation pane, choose Resources > Application and Resource Management. On the Applications tab page, locate the application you want to modify and click . The Modify Application page is displayed.
  2. Modify the application name and description based on service changes.
  3. Click OK. The application is modified.

Modifying a sub-application

After a sub-application is created, you can modify its name and description.

  1. In the navigation pane, choose Resources > Application and Resource Management. On the Applications tab page, locate the sub-application you want to modify and click . The Modify Application page is displayed.
  2. Modify the name and description of the sub-application based on service changes.
  3. Click OK. The sub-application is modified.

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.

  1. In the navigation pane, choose Resources > Application and Resource Management. On the Applications tab page, locate the application you want to delete and click .
  2. In the displayed dialog box, click OK. The application is deleted.

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.

  1. In the navigation pane, choose Resources > Application and Resource Management. On the Applications tab page, locate the sub-application you want to delete and click .
  2. In the displayed dialog box, click OK. The sub-application is deleted.

Helpful Links

You can use COC to create, modify, delete, and query applications by calling APIs. For details, see Application Management.