docs
api
Private Network(UVPC)
DescribeVPC

Get VPC Information - DescribeVPC

Overview

Get VPC Information

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeVPC.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.Yes
VPCIds.NstringVPCIdNo
TagstringBusiness Group NameNo
OffsetintData offset, default is 0No
LimitintData Pagination ValueNo

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
DataSetarray[VPCInfo]VPC information, see the specific structure below VPCInfoNo
TotalCountintNo

Data Model

VPCInfo

Field NameTypeDescription InformationRequired
NetworkInfoarray[VPCNetworkInfo]VPC address space information, see VPCNetworkInfoYes
SubnetCountintSubnet NumberYes
CreateTimeintCreation TimeYes
UpdateTimeintUpdate TimeYes
TagstringBusiness GroupYes
NamestringVPC NameYes
VPCTypestringDefaultVPC Default VPC, DefinedVPC, Custom VPCNo
VPCIdstringVPC Resource IDNo
Networkarray[string]VPC SubnetNo
IPv6NetworkstringIPv6 segment associated with VPCNo
OperatorNamestringThe IPv6 network segment associated with the VPC belongs to the operatorNo

VPCNetworkInfo

Field NameTypeDescription InformationRequired
NetworkstringVPC address spaceNo
SubnetCountintNumber of Subnets in Address SpaceNo

Example

Request Example

https://api.surfercloud.com/?Action=DescribeVPC
&ProjectId=org-xxx
&Region=cn-sh2
&VPCIds.0=uvnet-xxx
&Offset=9
&Limit=9

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,
  "TotalCount": 9
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved
  • Contact our sales to help your business.
  • Contact our sales to help your business.