Query details of a PrivateZone
Updated at:2025-11-11
Description
Query the details of a specific PrivateZone.
Request structure
Plain Text
1GET /v{version}/privatezone/{zoneId} HTTP/1.1
2Host: privatezone.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 | For API version No., the current value is 1 |
| zoneId | String | Yes | URL parameter | Zone ID |
Response headers
No special headers are required beyond the standard ones.
Response parameters
| Parameter name | Types | Description |
|---|---|---|
| zoneId | String | Zone ID |
| zoneName | String | Zone name |
| recordCount | Integer | Total number of included resolution records |
| createTime | String | Creation time |
| updateTime | String | Update time |
| bindVpcs | List<[Vpc](DNS/API Reference/Appendix.md#Vpc)> | List of associated VPCs |
Request example
Plain Text
1GET /v1/privatezone/zone-xktdeMSf HTTP/1.1
2Host: privatezone.baidubce.com
3Authorization: bce-auth-v1/c98fb9a1366011e8912505e5e0ae9978/2018-05-22T10:54:32Z/3600/host;x-bce-account;x-bce-client-ip;x-bce-date;x-bce-request-id;x-bce-security-token/e66be5966b6d6728d8f0431b0cd10558e8a69989cbddfc5e9211371fe05fa7e9
Response example:
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 9d3e5721-d77f-4984-9fff-3092fa4e31a3
3Date:Fri, 17 Mar 2017 13:22:21 GMT
4Content-Type: application/json;charset=UTF-8
5Server: BWS
6{
7 "zoneId": "zone-xktdeMSf",
8 "zoneName": "baidu1.com",
9 "recordCount": 2,
10 "createTime": "2018-12-26 20:30:45",
11 "updateTime": "2018-12-28 21:35:40"
12 "bindVpcs": [{
13 "vpcId": "vpc-jikh8hds",
14 "vpcName": "vpcTest",
15 "vpcRegion": "bj"
16 }]
17}
