Query the list of BCC instances eligible for no charge for stopped instances
Updated at:2025-10-20
This API is used to query detailed information about all instances that meet the criteria in terms of no charge for stopped instances. The following 6 types of instances do not support no charge for stopped instances:
- Prepaid instances
- Instances with local disks (local SSD type & big data type)
- Heterogeneous instances: (GPU cloud servers (some) & FPGA cloud servers)
- DCC dedicated instances
- Spot instances
- Instances that are not in a running status
- Instances from ica2/ca2/ga2/ma2 instance families
- Elastic bare metal (EBC) instances
Request structure
Plain Text
1GET /v{version}/instance/noCharge?marker={marker}&maxKeys={maxKeys}&internalIp={internalIp}&keypairId={keypairId}&zoneName={zoneName} HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: 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 | API version number |
| marker | String | No | Query | The starting position of the batch list query is a system-generated string |
| maxKeys | int | No | Query | The maximum number of items per page is 1,000, with a default value of 1,000. |
| internalIp | String | No | Query | Internet IP |
| keypairId | String | No | Query | Key pair ID |
| zoneName | String | No | Query | Availability zone name, e.g., cn-bj-a |
Response headers
No special headers are required beyond the standard ones.
Response parameters
| Parameter name | Types | Description |
|---|---|---|
| marker | String | Mark the starting position of the query. |
| isTruncated | Boolean | true indicates there is more data later, false indicates it is the last page |
| nextMarker | String | The marker value needed to fetch the next page. This field is absent when isTruncated is false. |
| maxKeys | int | Maximum number of items included per page |
| instances | List<[InstanceModel](BCC/API Reference/Appendix.md#InstanceModel)> | Instance information comprised of InstanceModel |
Request example
Plain Text
1GET /v2/instance/noCharge?marker=i-ED2BiZR7&maxKeys=1 HTTP/1.1
2Host: bcc.bj.baidubce.com
3ContentType: application/json
4Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
Response example
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
3Date: Wed, 03 Dec 2014 06:42:19 GMT
4Content-Type: application/json;charset=UTF-8
5Server: BWS
6{
7 "marker": "i-ED2BiZR7",
8 "isTruncated": true,
9 "nextMarker": "i-15lNKlWp",
10 "maxKeys": 1,
11 "instances": [
12 {
13 "id": "i-ED2BiZR7",
14 "name": "test-name",
15 "hostname": "hostname",
16 "instanceType": "N6",
17 "status": "Running",
18 "desc": "",
19 "paymentTiming": "Postpaid",
20 "createTime": "2023-11-16T08:37:09Z",
21 "internalIp": "192.168.0.11",
22 "publicIp": "",
23 "cpuCount": 1,
24 "isomerismCard": "",
25 "cardCount": "0",
26 "memoryCapacityInGB": 4,
27 "localDiskSizeInGB": 0,
28 "imageId": "m-6TqSR4r0",
29 "placementPolicy": "unknown",
30 "subnetId": "sbn-1rg9fb0caqq3",
31 "vpcId": "vpc-5mbbq0mx2a1n",
32 "zoneName": "cn-bj-a",
33 "dedicatedHostId": "",
34 "nicInfo": {
35 "eniId": "eni-mhegdfrq4337",
36 "eniUuid": "712b244b-6ae7-4cb9-9668-ffa62323f449",
37 "name": "eth0",
38 "type": "primary",
39 "subnetId": "cfb112c1-9c7f-4be3-aafb-beb94a36ac31",
40 "subnetType": "BCC",
41 "az": "zoneA",
42 "description": "",
43 "deviceId": "8d67c5ae-e1e2-4771-8aae-d3d056dada0b",
44 "status": "inuse",
45 "macAddress": "fa:f6:00:11:f2:d9",
46 "vpcId": "ca0327d6-ddb8-4bea-a58c-abf21947c1e7",
47 "createdTime": "Thu Nov 16 16:37:10 UTC 2023",
48 "eniNum": 0,
49 "ips": [
50 {
51 "privateIp": "192.168.0.11",
52 "eip": "null",
53 "primary": "true",
54 "eipId": "",
55 "eipAllocationId": "",
56 "eipSize": "0",
57 "eipStatus": "",
58 "eipGroupId": "",
59 "eipType": "null"
60 }
61 ],
62 "securityGroups": [
63 "g-rrza83kb8wkw"
64 ]
65 },
66 "eniNum": "0",
67 "tags": [
68 {
69 "tagKey": "Default project",
70 "tagValue": ""
71 }
72 ],
73 "networkCapacityInMbps": 0
74 }
75 ]
76}
