查询PrivateZone详情
更新时间:2024-12-27
描述
查询指定的PrivateZone详情。
请求结构
                Plain Text
                
            
            1GET /v{version}/privatezone/{zoneId} HTTP/1.1 
2Host: privatezone.baidubce.com   
3Authorization: authorization string     
            请求头域
除公共头域外,无其它特殊头域。
请求参数
| 参数名称 | 类型 | 是否必需 | 参数位置 | 描述 | 
|---|---|---|---|---|
| version | String | 是 | URL参数 | API版本号,当前取值为1 | 
| zoneId | String | 是 | URL参数 | zone的ID | 
返回头域
除公共头域,无其它特殊头域。
返回参数
| 参数名称 | 类型 | 描述 | 
|---|---|---|
| zoneId | String | Zone的ID | 
| zoneName | String | Zone的名称 | 
| recordCount | Integer | 含有的解析记录总数 | 
| createTime | String | 创建时间 | 
| updateTime | String | 更新时间 | 
| bindVpcs | List<Vpc> | 关联的Vpc列表 | 
请求示例
                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
            返回示例:
                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}
            