Updated on 2024-08-07 GMT+08:00

Creating a Resource Group

Scenarios

If you use multiple types of cloud services, you can add all related resources, such as ECSs, BMSs, EVS disks, EIPs, bandwidths, and databases to the same resource group for easier management and O&M.

Restrictions

  • Each user can create up to 1,000 resource groups.
  • Each resource group can contain 1 to 10,000 cloud service resources.
  • There are restrictions on the number of resources of different types that can be added to a resource group. For details, see the tips on the Cloud Eye console.

Procedure

  1. Log in to the management console.
  2. In the upper left corner, select a region and project.
  3. Click Service List in the upper left corner and select Cloud Eye.
  4. In the navigation pane, choose Resource Groups.
  5. In the upper right corner, click Create Resource Group.
  6. On the Create Resource Group page, enter a group name and configure other parameters.
    1. If you select Automatically for Add Resources, select Instance name, Enterprise project, Tag, or Enterprise project and tag for Matching Resource By.
      1. If you select Instance name, select a cloud product and configure rules to match resources.
        Figure 1 Matching resources by instance name

      2. If you select Enterprise project, select a value for Resource Level and select an enterprise project to match resources. After you select an enterprise project, resources in the resource group will be automatically kept consistent with the resources in the enterprise project. To manage resources in this resource group, you can only add or remove resources to and from the enterprise project. Figure 2 shows an example.
        • If you select Cloud product for Resource Level, select a cloud product.
        • If you select Specific dimension for Resource Level, all available resources in the selected enterprise projects will be automatically added to this resource group. For details, click View Types of Resources That Can Be Added Automatically.
        Figure 2 Matching resources by enterprise project

      3. If you select Tag, select a value for Resource Level and set Matching Rule. Figure 3 shows an example.
        • If you select Cloud product for Resource Level, select a cloud product.
        • If you select Specific dimension for Resource Level, all available resources that meet the tag matching rules will be automatically added to this resource group. For details, click View Types of Resources That Can Be Added Automatically.
        Figure 3 Matching resources by tag

        • If you enter multiple tags, the relationship between different keys is AND, and the relationship between values of the same key is OR.
        • You can add up to 10 tags.
      1. If you select Enterprise project and tag for Matching Resource By, select a value for Resource Level and set Matching Rule. Figure 4 shows an example.
        • If you select Cloud product for Resource Level, select one or more cloud products and set matching rules by selecting enterprise projects, resource tag keys, and resource tag values. The relationship between rules is OR.
        • If you select Specific dimension for Resource Level, all available resources that meet the matching rules will be automatically added to this resource group. For details, click View Types of Resources That Can Be Added Automatically.
        Figure 4 Matching resources by enterprise project and tag

        • If you enter multiple tags, the relationship between different keys is AND, and the relationship between values of the same key is OR.
        • You can add up to 10 combinations.
    2. If you select Manually for Add Resources, set Resource Level. Figure 5 shows an example.
      • If you select Cloud product for Resource Level, select a cloud product.
      • If you select Specific dimension for Resource Level, manually select resources to be added to the resource group.
      Figure 5 Manually adding resources

    You can search for ECSs and BMSs by name, ID, and private IP address. You can only search other cloud services by name and ID.

  7. Select an enterprise project.
    Figure 6 Enterprise Project
    Table 1 Enterprise project

    Parameter

    Description

    Enterprise Project

    Specifies the enterprise project to which the resource group belongs. Only users who have all permissions for the enterprise project can manage the resource group. For details about how to create an enterprise project, see Creating an Enterprise Project.

  8. (Optional) Set Advanced Settings.
    Select an alarm template and configure alarm notification parameters.
    Figure 7 Configuring alarm notifications

    Table 2 Advanced Settings parameters

    Parameter

    Description

    Enterprise Project

    Specifies the enterprise project that the alarm template belongs to. Only users who have all permissions for the enterprise project can manage the alarm template. For details about how to create an enterprise project, see Creating an Enterprise Project.

    Alarm Notification

    Specifies whether to notify users when alarms are triggered. Notifications can be sent by email, SMS message, or HTTP/HTTPS message.

    Notification Recipient

    Specifies the alarm notification recipient. You can select Notification policies, Notification group, or Topic subscription.

    Notification Policies

    When you select Notification policies for Notification Recipient, select one or more notification policies. If existing notification policies cannot meet your requirements, create a notification policy, where you can specify the notification group, window, template, and other parameters. For details, see Creating, Modifying, or Deleting a Notification Policy.

    Notification Group

    When you select Notification group for Notification Recipient, select the notification groups to which alarm notifications will be sent. Select or create a notification template and set the notification window.

    Notification Object

    Specifies the object to which alarm notifications will be sent. You can select the account contact or a topic name. This parameter is available only when you select Topic subscription for Notification Recipient.

    • Account contact: Enter the phone number and email address of the registered account.
    • Topic: A topic is used to publish messages and subscribe to notifications. If the required topic is unavailable, create one first and add subscriptions to it. For details, see Creating a Topic and Adding Subscriptions.

    Notification Template

    This parameter is available only when you select Notification group or Topic subscription for Notification Recipient. You can select an existing template or create a new one.

    Notification Window

    Specifies the time window during which Cloud Eye sends notifications.

    If you set Notification Window to 08:00-20:00, Cloud Eye sends notifications within this time window.

    Trigger Condition

    Specifies the condition that will trigger an alarm notification. You can select Generated alarm (when an alarm is generated), Cleared alarm (when an alarm is cleared), or both.

  9. Click Create.