查询指定VPC
更新时间:2024-12-30
描述
查询指定VPC的详情信息。
请求结构
Plain Text
1 GET /v{version}/vpc/{vpcId} HTTP/1.1
2 Host: bcc.bj.baidubce.com
3 Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必需 | 参数位置 | 描述 |
---|---|---|---|---|
version | String | 是 | URL参数 | API版本号,当前取值为1 |
vpcId | String | 是 | URL参数 | VPC的ID |
返回头域
除公共头域,无其它特殊头域。
返回参数
参数名称 | 类型 | 描述 |
---|---|---|
vpc | ShowVpcModel | VPC实体 |
请求示例
Plain Text
1 GET /v1/vpc/vpc-IyrqYIQ7 HTTP/1.1
2 Host: bcc.bj.baidubce.com
3 Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2017-03-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
返回示例
Plain Text
1 HTTP/1.1 200 OK
2 x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
3 Date: Thu, 16 Mar 2017 06:29:48 GMT
4 Content-Type: application/json;charset=UTF-8
5 Server: BWS
6 {
7 "vpc": {
8 "vpcId": "vpc-IyrqYIQ7",
9 "name": "default",
10 "isDefault": true,
11 "relay": false,
12 "cidr": "192.168.0.0/20",
13 "ipv6Cidr": "2400:da00:e003:4c11::/64",
14 "description": "default",
15 "createdTime": "2017-09-20T03:11:10Z"
16 "subnets": [
17 {
18 "name": "系统预定义子网",
19 "subnetId": "sbn-IyWRnII7",
20 "zoneName": "cn-bj-a",
21 "cidr": "192.168.0.0/20",
22 "ipv6Cidr": "2400:da00:e003:4c11::/64",
23 "vpcId": "vpc-IyrqYIQ7",
24 "subnetType": "BCC",
25 "description": "this is a subnet",
26 "createdTime": "2018-03-14T14:45:02Z"
27 }
28 ],
29 "secondaryCidr": [
30 "10.0.1.0/24"
31 ],
32 "tags":[
33 {
34 "tagKey": "tagKey",
35 "tagValue": "tagValue"
36 }
37 ]
38 }
39 }