Query Specified VPC
Last Updated:2020-07-20
Description
Query the detailed information of the specified VPC.
Request Structure
GET /v{version}/vpc/{vpcId} HTTP/1.1
Host: bcc.bj.baidubce.com
Authorization: authorization string
Request Header
There are no other special headers except the public headers.
Request Parameter
Parameter name | Type | Required or not | Parameter position | Description |
---|---|---|---|---|
version | String | Yes | URL parameter | API version number |
vpcId | String | Yes | URL parameter | id of VPC |
Return Header
There are no other special headers except the public headers.
Return Parameter
Parameter name | Type | Description |
---|---|---|
vpc | ShowVpcModel | VPC entity |
Request Example
GET /v1/vpc/vpc-IyWRtII7 HTTP/1.1
Host: bcc.bj.baidubce.com
Authorization: authorization string
Return Example
HTTP/1.1 200 OK
x-bce-request-id: 1214cca7 4ad5 451d 9215 71cb844c0a50
Date: Thu, 16 Mar 2017 06:29:48 GMT
Content Type: application/json;charset=UTF 8
Server: BWS
{
"vpc": {
"vpcId': "vpc-IyWRtII7",
"name": u"\u9ed8\u8ba4\u79c1\u6709\u7f51\u7edc",
"isDefault": True,
"cidr": "0.0.0.0/0",
"description": "default",
"subnets": [
{
"Name": "Predefined subnet of the system",
"subnetId": "sbn-IyWRnII7",
"zoneName": "cn-bj-a",
"cidr": "192.168.0.0/20",
"vpcId": "vpc-IyrqYIQ7",
"subnetType": "BCC",
"description": ""
}
],
"tags":[
{
"tagKey": "tagKey",
"tagValue": "tagValue"
}
]
}
}