获取VPC信息-DescribeVPC
获取VPC信息
Request Parameters
Parameter name | Type | Description | Required |
Region | string | 地域。 参见 地域和可用区列表 | Yes |
ProjectId | string | 项目ID。不填写为默认项目,子帐号必须填写。 请参考GetProjectList接口 | Yes |
VPCIds.n | string | VPCId | No |
Tag | string | 业务组名称 | No |
Response Elements
Parameter name | Type | Description | Required |
RetCode | int | 操作返回码 | Yes |
Action | string | 操作名称 | Yes |
DataSet | array | vpc信息,具体结构见下方VPCInfo | No |
VPCInfo
Parameter name | Type | Description | Required |
Network | array | VPC网段 | Yes |
SubnetCount | string | 子网数量 | Yes |
CreateTime | int | 创建时间 | Yes |
UpdateTime | int | 修改时间 | Yes |
VPCId | string | VPCId | No |
Request Example
https://api.ucloud.cn/?Action=DescribeVPC &ProjectId=org-xxx &Region=cn-sh2 &VPCIds.0=uvnet-xxx
Response Example
{ "Action": "DescribeVPCResponse", "DataSet": [ { "CreateTime": 1514313728, "Name": "DefaultVPC", "Network": [ "10.44.x.0/16" ], "NetworkInfo": [ { "Network": "10.44.x.0/16", "SubnetCount": 1 } ], "SubnetCount": 1, "Tag": "Default", "UpdateTime": 1514313728, "VPCId": "uvnet-xxx" }, { "CreateTime": 1533891436, "Name": "testabc", "Network": [ "192.168.x.0/16", "10.0.0.0/8" ], "NetworkInfo": [ { "Network": "192.168.x.0/16", "SubnetCount": 1 }, { "Network": "10.0.0.0/8", "SubnetCount": 1 } ], "Remark": "", "SubnetCount": 2, "Tag": "Default", "UpdateTime": 1533891438, "VPCId": "uvnet-xxxxx" } ], "RetCode": 0 }