Query IP Usage by Products in VPC
Updated at:2025-10-16
Description
Used to query information about intranet IP usage in VPC products.
Request structure
Plain Text
1 GET /v{version}/vpc/resourceIp?vpcId={vpcId}&subnetId={subnetId}&resourceType={resourceType}&pageNo={pageNo}&pageSize={pageSize} HTTP/1.1
2 Host: bcc.bj.baidubce.com
3 Authorization: authorization string
Request headers
There are no special headers required beyond the common headers.
Request parameters
| Parameter name | Types | Whether required | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | For API version No., the current value is 1 |
| vpcId | String | Yes | Query | VPC ID |
| subnetId | String | No | Query | Subnet ID |
| resourceType | String | No | Query | Product type, such as bcc, enic, and blb |
| pageNo | Integer | No | Query | pageNo >= 1, with default value being 1 |
| pageSize | Integer | No | Query | Valid range: [1,1000], default value: 100 |
Response headers
No special headers are required beyond the standard ones.
Response parameters
| Parameter name | Types | Description |
|---|---|---|
| pageNo | Integer | page number |
| pageSize | Integer | page size |
| totalCount | Integer | Total number of results matching the query criteria |
| result | List<[ResourceIp](VPC/API Reference/Appendix.md#ResourceIp)> | Information on IP pagination occupied by products within VPC |
Request example
Plain Text
1 GET /v1/vpc/resourceIp?vpcId=vpc-e2v0a2imhshj&subnetId=sbn-56s25qecigix&resourceType=enic&pageNo=1&pageSize=2 HTTP/1.1
2 Host: bcc.bj.baidubce.com
3 Authorization: authorization string
Response example
Plain Text
1 HTTP/1.1 200 OK
2 x-bce-request-id: cae72192-b5e6-4e3b-81fd-b91fab13d876
3 Date: Thu, 16 Mar 2017 06:29:48 GMT
4 Content Type: application/json;charset=UTF 8
5 Server: BWS
6
7 {
8 "result": [
9 {
10 "ip": "192.168.0.7",
11 "resourceType": "enic"
12 },
13 {
14 "ip": "192.168.0.8",
15 "resourceType": "enic"
16 }
17 ],
18 "pageNo": 1,
19 "pageSize": 2,
20 "totalCount": 19
21 }
