Viewing and Deleting Resources in a Subnet¶
Scenarios¶
VPC subnets have private IP addresses used by cloud resources. This section describes how to view resources that are using private IP addresses of subnets. If these resources are no longer required, you can delete them.
You can view resources, including ECSs, BMSs, load balancers, and NAT gateways.
Important
After you delete all resources in a subnet by referring to this section, the message "Delete the resource that is using the subnet and then delete the subnet." is displayed when you delete the subnet, you can refer to Viewing IP Addresses in a Subnet.
Procedure¶
Log in to the management console.
Click in the upper left corner and select the desired region and project.
Click in the upper left corner and choose Network > Virtual Private Cloud.
The Virtual Private Cloud page is displayed.
In the navigation pane on the left, choose Virtual Private Cloud > Subnets.
The Subnets page is displayed.
Locate the target subnet and click its name.
The subnet details page is displayed.
On the Summary page, view the resources in the subnet.
In the VPC Resources area, view the quantities of resources, such as ECSs, BMSs, network interfaces, and load balancers, in the subnet. Click the resource quantity with a hyperlink to view the resources in the subnet.
In the Networking Components area on the right of the page, view the NAT gateway, route table, and subnet.
Delete resources from the subnet.
¶ Resource
Reference
ECS
Currently, you cannot directly switch to ECSs from the subnet details page. You need to search for the target ECS in the ECS list and delete it.
In the ECS list, click the ECS name.
The ECS details page is displayed.
In the NICs area, view the name of the subnet associated with the ECS.
BMS
Currently, you cannot directly switch to BMSs from the subnet details page. You need to search for the target BMS in the BMS list and delete it.
In the BMS list, click the BMS name.
The BMS details page is displayed.
In the NICs tab, view the subnet associated with the BMS.
Load balancer
You can directly switch to load balancers from the subnet details page.
Click the load balancer quantity.
The load balancer list is displayed.
Locate the row that contains the load balancer and click Delete in the Operation column.
NAT gateway
You can directly switch to NAT gateways from the subnet details page.
Click the NAT gateway name in the Networking Components area.
The NAT gateway details page is displayed.
Click to return to the NAT gateway list.
Locate the row that contains the NAT gateway and click Delete in the Operation column.