How Do I Know the Instances Associated with a Security Group?
When you create an instance, such as ECS, cloud container, or database, you need to add the instance to a security group. To delete a security group, you must remove all instances from the security group first.
You can perform the following operations to view the instances associated with a security group:
- In the security group list, locate the row that contains the target security group and click Manage Instance in the Operation column.
On the Associated Instances tab, you can view instances associated with the security group, such as servers and extension NICs.
If there is no instance associated with the security group on the Associated Instances tab, but the system still displays a message indicating that the security group has instances associated, perform the following operations:
- In the upper right corner of the console, choose Resources > My Resources and check whether there are resources listed in Table 1 in the same region as the security group.
The table lists some common resources. If you have other resources, check them.
A security group is associated with various instances through ports. You can call the APIs to query the ports and then use the ID of the security group to search for the target ports. Then you will get the required information, including name (port name), device_id (ID of the device to which the port belongs), device_owner (device owner), instance_id (ID of the instance), and instance_type (type of the instance to which the port belongs). The port information helps you check the resources associated with the security group.
Table 1 Check list Product Category
Product/Instance
Databases
GaussDB
Relational Database Service (RDS)
Document Database Service (DDS)
GaussDB NoSQL
Distributed Database Middleware (DDM)
Applications
Distributed Cache Service (DCS)- Redis instance
- Memcached instance
Distributed Message Service (DMS)- Kafka instance
- RabbitMQ instance
API Gateway
EI
MapReduce Service (MRS)
Data Warehouse Service (DWS)
Cloud Search Service (CSS)
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.