vpc

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

README

Virtual Private Cloud API Calls

Documentation: https://cloud.tencent.com/document/api/215/908

The following are examples of using tcpicli to issue API calls to VPC:

Query existing VPCs by vpcId (DescribeVpcEx)

Documentation: https://cloud.tencent.com/document/api/215/1372

tcpicli -vv vpc DescribeVpcEx Region=gz vpcId=vpc-12xvscaz

Input:

{
  "Action": "DescribeVpcEx",
  "Region": "gz",
  "vpcId": "vpc-12xvscaz"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "data": [
    {
      "cidrBlock": "192.168.0.0/16",
      "classicLinkNum": -1,
      "createTime": "2017-09-19 09:49:44",
      "isDefault": false,
      "isMulticast": false,
      "natNum": 0,
      "routeTableNum": 1,
      "subnetNum": 1,
      "unVpcId": "vpc-12xvscaz",
      "vpcDeviceNum": 0,
      "vpcId": "gz_vpc_222312",
      "vpcName": "james",
      "vpcPeerNum": 0,
      "vpgNum": 0,
      "vpnGwNum": 0
    }
  ],
  "message": "",
  "totalCount": 1
}
Create a new VPC (CreateVpc)

Documentation: https://cloud.tencent.com/document/api/215/1309

tcpicli -vv vpc CreateVpc Region=gz vpcName=apiTest cidrBlock="10.0.0.0/16"

Input:

{
  "Action": "CreateVpc",
  "Region": "gz",
  "cidrBlock": "10.0.0.0/16",
  "vpcName": "apiTest"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "message": "",
  "routeTableSet": [
    {
      "routeTableId": "gz_rtb_43796",
      "routeTableName": "default",
      "routeTableType": 1
    }
  ],
  "subnetSet": [],
  "uniqVpcId": "vpc-c4hlrvpr",
  "vpcCreateTime": "2017-10-01 16:06:37",
  "vpcId": "gz_vpc_226373"
}
Delete VPC (DeleteVpc)

Documentation: https://cloud.tencent.com/document/api/215/1307

tcpicli -vv vpc DeleteVpc Region=gz vpcId=vpc-c4hlrvpr

Input:

{
  "Action": "DeleteVpc",
  "Region": "gz",
  "vpcId": "vpc-c4hlrvpr"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "message": ""
}
Rename VPC (ModifyVpcAttribute)

Documentation: https://cloud.tencent.com/document/api/215/1310

tcpicli -vv vpc do ModifyVpcAttribute Region=gz vpcId=vpc-9tejit0j vpcName=grobbledongs

Input:

{
  "Action": "ModifyVpcAttribute",
  "Region": "gz",
  "vpcId": "vpc-9tejit0j",
  "vpcName": "grobbledongs"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "message": ""
}

Documentation: https://cloud.tencent.com/document/api/215/2098

tcpicli -vv vpc AttachClassicLinkVpc Region=gz vpcId=vpc-e7xezjpn instanceIds.0=ins-kn52i9r6

Input:

{
  "Action": "AttachClassicLinkVpc",
  "Region": "gz",
  "instanceIds.0": "ins-kn52i9r6",
  "vpcId": "vpc-e7xezjpn"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "message": "",
  "taskId": 18176709
}

Documentation: https://cloud.tencent.com/document/api/215/2112

tcpicli -vv vpc DescribeVpcClassicLink Region=gz

Input:

{
  "Action": "DescribeVpcClassicLink",
  "Region": "gz"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "data": [
    {
      "classicLinkId": "vcx-rw340z73",
      "createTime": "2017-10-02 10:32:24",
      "instanceId": "ins-kn52i9r6",
      "instanceName": "Unnamed",
      "lanIp": "10.104.167.105",
      "unVpcId": "vpc-e7xezjpn",
      "vpcId": "gz_vpc_225886"
    },
    {
      "classicLinkId": "vcx-qfmncw1x",
      "createTime": "2017-09-15 06:03:41",
      "instanceId": "ins-o5hamq0y",
      "instanceName": "kiyor",
      "lanIp": "10.104.98.1",
      "unVpcId": "vpc-jlqxir0t",
      "vpcId": "gz_vpc_214230"
    }
  ],
  "message": "",
  "totalCount": 2
}

Documentation: https://cloud.tencent.com/document/api/215/2097

tcpicli -vv vpc do DetachClassicLinkVpc Region=gz vpcId=vpc-e7xezjpn instanceIds.0=ins-kn52i9r6

Input:

{
  "Action": "DetachClassicLinkVpc",
  "Region": "gz",
  "instanceIds.0": "ins-kn52i9r6",
  "vpcId": "vpc-e7xezjpn"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "message": "",
  "taskId": 18180569
}
Query VPC limits (DescribeVpcLimit)

Documentation: https://cloud.tencent.com/document/api/215/1844

tcpicli -vv vpc DescribeVpcLimit Region=gz type.0=1 type.1=2

Input:

{
  "Action": "DescribeVpcLimit",
  "Region": "gz",
  "type.0": "1",
  "type.1": "2"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "data": {
    "limit": {
      "1": 10,
      "2": 10
    }
  },
  "message": ""
}
Create Subnet (CreateSubnet)

Documentation: https://cloud.tencent.com/document/api/215/1314

tcpicli -vv vpc CreateSubnet Region=gz vpcId=vpc-e7xezjpn subnetSet.0.subnetName="testApiSubApiCall" subnetSet.0.cidrBlock="10.0.1.0/24" subnetSet.0.zoneId=100002

Input:

{
  "Action": "CreateSubnet",
  "Region": "gz",
  "subnetSet.0.cidrBlock": "10.0.1.0/24",
  "subnetSet.0.subnetName": "testApiSubApiCall",
  "subnetSet.0.zoneId": "100002",
  "vpcId": "vpc-e7xezjpn"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "message": "",
  "subnetSet": [
    {
      "cidrBlock": "10.0.1.0/24",
      "routeTableId": "gz_rtb_43926",
      "subnetId": "gz_subnet_82103",
      "subnetName": "testApiSubApiCall",
      "unSubnetId": "subnet-1pia0da0",
      "zone": "ap-guangzhou-2",
      "zoneId": 100002
    }
  ]
}
Delete Subnet (DeleteSubnet)

Documentation: https://cloud.tencent.com/document/api/215/1312

tcpicli -vv vpc DeleteSubnet Region=gz vpcId=vpc-e7xezjpn subnetId=subnet-1pia0da0

Input:

{
  "Action": "DeleteSubnet",
  "Region": "gz",
  "subnetId": "subnet-1pia0da0",
  "vpcId": "vpc-e7xezjpn"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "message": ""
}
Modify Subnet (ModifySubnetAttribute)

Documentation: https://cloud.tencent.com/document/api/215/1313

tcpicli -vv vpc ModifySubnetAttribute Region=gz vpcId=vpc-e7xezjpn subnetId=subnet-1pia0da0 subnetName=testApiNameChange

Input:

{
  "Action": "ModifySubnetAttribute",
  "Region": "gz",
  "subnetId": "subnet-1pia0da0",
  "subnetName": "testApiNameChange",
  "vpcId": "vpc-e7xezjpn"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "message": ""
}
Query Subnets on VPC (DescribeSubnetEx)

Documentation: https://cloud.tencent.com/document/api/215/1371

tcpicli -vv vpc DescribeSubnetEx Region=gz vpcId=vpc-e7xezjpn

Input:

{
  "Action": "DescribeSubnetEx",
  "Region": "gz",
  "vpcId": "vpc-e7xezjpn"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "data": [
    {
      "availableIPNum": 252,
      "broadcast": false,
      "cidrBlock": "10.0.0.0/24",
      "isDefault": false,
      "networkAclId": null,
      "routeTableId": "gz_rtb_43926",
      "routeTableName": "default",
      "rtbNum": 0,
      "subnetCreateTime": "2017-10-02 10:18:02",
      "subnetId": "gz_subnet_81968",
      "subnetName": "apiTestSub",
      "totalIPNum": 253,
      "unRouteTableId": "rtb-n590r9fs",
      "unSubnetId": "subnet-358ndkca",
      "unVpcId": "vpc-e7xezjpn",
      "vpcCidrBlock": "10.0.0.0/16",
      "vpcDevices": 1,
      "vpcId": "gz_vpc_225886",
      "vpcName": "apiTest",
      "zone": "ap-guangzhou-2",
      "zoneId": 100002
    }
  ],
  "message": "",
  "totalCount": 1
}
Create a new Route Table (CreateRouteTable)

Documentation: https://cloud.tencent.com/document/api/215/1419

tcpicli -vv vpc CreateRouteTable Region=sh vpcId=vpc-70fpkwg8 routeTableName="apiTest" routeSet.0.destinationCidrBlock="192.168.10.0/24" routeSet.0.nextHub=pcx-deafiue0 routeSet.0.nextType=4

Input:

{
  "Action": "CreateRouteTable",
  "Region": "sh",
  "routeSet.0.destinationCidrBlock": "192.168.10.0/24",
  "routeSet.0.nextHub": "pcx-deafiue0",
  "routeSet.0.nextType": "4",
  "routeTableName": "apiTest",
  "vpcId": "vpc-70fpkwg8"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "message": "",
  "routeTableId": "sh_rtb_23969",
  "routeTableSet": [
    {
      "description": null,
      "destinationCidrBlock": "192.168.10.0/24",
      "nextHub": "pcx-deafiue0",
      "nextType": 4
    },
    {
      "description": null,
      "destinationCidrBlock": "Local",
      "nextHub": "Local",
      "nextType": 2
    }
  ],
  "unRouteTableId": "rtb-n66int2n"
}
Delete an existing Route Table (DeleteRouteTable)

Documentation: https://cloud.tencent.com/document/api/215/1418

tcpicli -vv vpc DeleteRouteTable Region=sh vpcId=vpc-70fpkwg8 routeTableId=sh_rtb_23971

Input:

{
  "Action": "DeleteRouteTable",
  "Region": "sh",
  "routeTableId": "sh_rtb_23971",
  "vpcId": "vpc-70fpkwg8"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "message": ""
}
Modify an existing Route Table (ModifyRouteTable)

Documentation: https://cloud.tencent.com/document/api/215/1417

tcpicli -vv vpc ModifyRouteTableAttribute Region=sh vpcId=vpc-70fpkwg8 routeTableId=rtb-0vlchz8j routeSet.0.destinationCidrBlock="192.168.30.0/24" routeSet.0.nextHub=pcx-deafiue0 routeSet.0.nextType=4

Input:

{
  "Action": "ModifyRouteTableAttribute",
  "Region": "sh",
  "routeSet.0.destinationCidrBlock": "192.168.30.0/24",
  "routeSet.0.nextHub": "pcx-deafiue0",
  "routeSet.0.nextType": "4",
  "routeTableId": "rtb-0vlchz8j",
  "vpcId": "vpc-70fpkwg8"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "message": ""
}
Query Route Tables (DescribeRouteTable)

Documentation: https://cloud.tencent.com/document/api/215/1420

tcpicli -vv vpc DescribeRouteTable Region=sh

Input:

{
  "Action": "DescribeRouteTable",
  "Region": "sh"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "data": [
    {
      "routeSet": [
        {
          "description": null,
          "destinationCidrBlock": "Local",
          "nextHub": "Local",
          "nextType": 2,
          "unNextHub": null
        }
      ],
      "routeTableCreateTime": "2017-10-04 00:17:24",
      "routeTableId": "sh_rtb_23952",
      "routeTableName": "default",
      "routeTableType": 1,
      "subnetNum": 1,
      "unRouteTableId": "rtb-l27ud66h",
      "unVpcId": "vpc-70fpkwg8",
      "vpcCidrBlock": "10.0.0.0/16",
      "vpcId": "sh_vpc_182690",
      "vpcName": "jamesApiTest"
    },
      "routeTableCreateTime": "2017-10-04 00:17:24",
      "routeTableId": "sh_rtb_23952",
      "routeTableName": "default",
      "routeTableType": 1,
      "subnetNum": 1,
      "unRouteTableId": "rtb-l27ud66h",
      "unVpcId": "vpc-70fpkwg8",
      "vpcCidrBlock": "10.0.0.0/16",
      "vpcId": "sh_vpc_182690",
      "vpcName": "jamesApiTest"
    }
  ],
  "message": "",
  "totalCount": 3
}
Associate Route Tables (AssociateRouteTable)

Documentation: https://cloud.tencent.com/document/api/215/1416

tcpicli -vv vpc AssociateRouteTable Region=sh vpcId=vpc-70fpkwg8 subnetId=subnet-ff6vw5kh routeTableId=rtb-emo58vwt

Input:

{
  "Action": "AssociateRouteTable",
  "Region": "sh",
  "routeTableId": "rtb-emo58vwt",
  "subnetId": "subnet-ff6vw5kh",
  "vpcId": "vpc-70fpkwg8"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "message": ""
}
Create NACL (CreateNetworkAcl)

Documentation: https://cloud.tencent.com/document/api/215/1437

tcpicli -vv vpc CreateNetworkAcl Region=sh vpcId=vpc-70fpkwg8 networkAclName="grobbledongs"

Input:

{
  "Action": "CreateNetworkAcl",
  "Region": "sh",
  "networkAclName": "grobbledongs",
  "vpcId": "vpc-70fpkwg8"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "data": {
    "networkAclId": "acl-f1vqk2dn"
  },
  "message": ""
}
Delete NACL (DeleteNetworkAcl)

Documentation: https://cloud.tencent.com/document/api/215/1439

tcpicli -vv vpc CreateNetworkAcl Region=sh vpcId=vpc-70fpkwg8 networkAclName="grobbledongs"

Input:

 {
  "Action": "DeleteNetworkAcl",
  "Region": "sh",
  "networkAclId": "acl-f1vqk2dn",
  "vpcId": "vpc-70fpkwg8"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "message": ""
}
Modify NACL (ModifyNetworkAcl) (Only used to rename acls)

Documentation: https://cloud.tencent.com/document/api/215/1443

tcpicli -vv vpc ModifyNetworkAcl Region=sh vpcId=vpc-70fpkwg8 networkAclId=acl-3bx6kb3d networkAclName="somethingDifferent"

Input:

{
  "Action": "ModifyNetworkAcl",
  "Region": "sh",
  "networkAclId": "acl-3bx6kb3d",
  "networkAclName": "somethingDifferent",
  "vpcId": "vpc-70fpkwg8"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "message": ""
}
Describe NACL list (DescribeNetworkAcl)

Documentation: https://cloud.tencent.com/document/api/215/1441

tcpicli -vv vpc DescribeNetworkAcl Region=sh vpcId=vpc-70fpkwg8"

Input:

{
  "Action": "DescribeNetworkAcl",
  "Region": "sh",
  "vpcId": "vpc-70fpkwg8"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "data": [
    {
      "createTime": "2017-10-04 16:30:05",
      "networkAclEntrySet": {
        "egress": [
          {
            "action": 1,
            "cidrIp": "0.0.0.0/0",
            "desc": "",
            "ipProtocol": "all",
            "portRange": "ALL"
          }
        ],
        "ingress": [
          {
            "action": 1,
            "cidrIp": "0.0.0.0/0",
            "desc": "",
            "ipProtocol": "all",
            "portRange": "ALL"
          }
        ]
      },
      "networkAclId": "acl-3bx6kb3d",
      "networkAclName": "somethingDifferent",
      "subnetNum": 0,
      "subnetSet": [],
      "unVpcId": "vpc-70fpkwg8",
      "vpcCidrBlock": "10.0.0.0/16",
      "vpcId": "sh_vpc_182690",
      "vpcName": "jamesApiTest"
    }
  ],
  "message": "",
  "totalCount": 1
}
Set Network ACL Rules (ModifyNetworkAclEntry)

Documentation: https://cloud.tencent.com/document/api/215/1444

tcpicli -vv vpc ModifyNetworkAclEntry Region=sh vpcId=vpc-70fpkwg8 networkAclId=acl-3bx6kb3d ruleDirection=1 networkAclEntrySet.0.desc="test" networkAclEntrySet.0.ipProtocol=all networkAclEntrySet.0.cidrIp="0.0.0.0/0" networkAclEntrySet.0.portRange=ALL networkAclEntrySet.0.action=1

Input:

{
  "Action": "ModifyNetworkAclEntry",
  "Region": "sh",
  "networkAclEntrySet.0.action": "1",
  "networkAclEntrySet.0.cidrIp": "0.0.0.0/0",
  "networkAclEntrySet.0.desc": "test",
  "networkAclEntrySet.0.ipProtocol": "all",
  "networkAclEntrySet.0.portRange": "ALL",
  "networkAclId": "acl-3bx6kb3d",
  "ruleDirection": "1",
  "vpcId": "vpc-70fpkwg8"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "message": ""
}
Bind Network ACL to subnet (CreateSubnetAclRule)

Documentation: https://cloud.tencent.com/document/api/215/1438

tcpicli -vv vpc CreateSubnetAclRule Region=sh vpcId=vpc-70fpkwg8 networkAclId=acl-3bx6kb3d subnetIds.0=subnet-ff6vw5kh

Input:

{
  "Action": "CreateSubnetAclRule",
  "Region": "sh",
  "networkAclId": "acl-3bx6kb3d",
  "subnetIds.0": "subnet-ff6vw5kh",
  "vpcId": "vpc-70fpkwg8"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "message": ""
}
Unbind Network ACL to subnet (DeleteSubnetAclRule)

Documentation: https://cloud.tencent.com/document/api/215/1442

tcpicli -vv vpc deleteSubnetAclRule Region=sh vpcId=vpc-70fpkwg8 networkAclId=acl-3bx6kb3d subnetIds.0=subnet-ff6vw5kh

Input:

{
  "Action": "DeleteSubnetAclRule",
  "Region": "sh",
  "networkAclId": "acl-3bx6kb3d",
  "subnetIds.0": "subnet-ff6vw5kh",
  "vpcId": "vpc-70fpkwg8"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "message": ""
}
Unbind Network ACL to subnet (DescribeVpcPeeringConnections)

Documentation: https://cloud.tencent.com/document/api/215/2101

tcpicli -vv vpc deleteSubnetAclRule Region=sh vpcId=vpc-70fpkwg8 networkAclId=acl-3bx6kb3d subnetIds.0=subnet-ff6vw5kh

Input:

{
  "Action": "DeleteSubnetAclRule",
  "Region": "sh",
  "networkAclId": "acl-3bx6kb3d",
  "subnetIds.0": "subnet-ff6vw5kh",
  "vpcId": "vpc-70fpkwg8"
}

Output:

{
  "code": 0,
  "codeDesc": "Success",
  "message": ""
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoAction

func DoAction(action string, options ...string) ([]byte, error)

Types

type CreateVpcResp

type CreateVpcResp struct {
	Code          int    `json:"code"`
	CodeDesc      string `json:"codeDesc"`
	Message       string `json:"message"`
	RouteTableSet []struct {
		RouteTableID   string `json:"routeTableId"`
		RouteTableName string `json:"routeTableName"`
		RouteTableType int    `json:"routeTableType"`
	} `json:"routeTableSet"`
	SubnetSet     []interface{} `json:"subnetSet"`
	UniqVpcID     string        `json:"uniqVpcId"`
	VpcCreateTime string        `json:"vpcCreateTime"`
	VpcID         string        `json:"vpcId"`
}

func CreateVpc

func CreateVpc(options ...string) (*CreateVpcResp, error)

type RespAcceptVpcPeeringConnection

type RespAcceptVpcPeeringConnection struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func AcceptVpcPeeringConnection

func AcceptVpcPeeringConnection(options ...string) (*RespAcceptVpcPeeringConnection, error)

type RespAcceptVpcPeeringConnectionEx

type RespAcceptVpcPeeringConnectionEx struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func AcceptVpcPeeringConnectionEx

func AcceptVpcPeeringConnectionEx(options ...string) (*RespAcceptVpcPeeringConnectionEx, error)

type RespAssignPrivateIpAddresses

type RespAssignPrivateIpAddresses struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		TaskID int `json:"taskId"`
	} `json:"data"`
	Message string `json:"message"`
}

func AssignPrivateIpAddresses

func AssignPrivateIpAddresses(options ...string) (*RespAssignPrivateIpAddresses, error)

type RespAssociateRouteTable

type RespAssociateRouteTable struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func AssociateRouteTable

func AssociateRouteTable(options ...string) (*RespAssociateRouteTable, error)

type RespAttachClassicLinkVpc

type RespAttachClassicLinkVpc struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
	TaskId   int    `json:"taskId"`
}

func AttachClassicLinkVpc

func AttachClassicLinkVpc(options ...string) (*RespAttachClassicLinkVpc, error)

type RespAttachNetworkInterface

type RespAttachNetworkInterface struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		TaskID int `json:"taskId"`
	} `json:"data"`
	Message string `json:"message"`
}

func AttachNetworkInterface

func AttachNetworkInterface(options ...string) (*RespAttachNetworkInterface, error)

type RespCreateNatGateway

type RespCreateNatGateway struct {
	BillID   string `json:"billId"`
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func CreateNatGateway

func CreateNatGateway(options ...string) (*RespCreateNatGateway, error)

type RespCreateNetworkAcl

type RespCreateNetworkAcl struct {
	Code     int         `json:"code"`
	CodeDesc string      `json:"codeDesc"`
	Data     interface{} `json:"data"`
	Message  string      `json:"message"`
}

func CreateNetworkAcl

func CreateNetworkAcl(options ...string) (*RespCreateNetworkAcl, error)

type RespCreateNetworkInterface

type RespCreateNetworkInterface struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		TaskID int `json:"taskId"`
	} `json:"data"`
	Message string `json:"message"`
}

func CreateNetworkInterface

func CreateNetworkInterface(options ...string) (*RespCreateNetworkInterface, error)

type RespCreateRouteTable

type RespCreateRouteTable struct {
	Code           int                                 `json:"code"`
	CodeDesc       string                              `json:"codeDesc"`
	Message        string                              `json:"message"`
	RouteTableId   string                              `json:"routeTableId"`
	RouteTableSet  []RespCreateRouteTableRouteTableSet `json:"routeTableSet"`
	UnRouteTableId string                              `json:"unRouteTableId"`
}

func CreateRouteTable

func CreateRouteTable(options ...string) (*RespCreateRouteTable, error)

type RespCreateRouteTableRouteTableSet

type RespCreateRouteTableRouteTableSet struct {
	Description          interface{} `json:"description"`
	DestinationCidrBlock string      `json:"destinationCidrBlock"`
	NextHub              string      `json:"nextHub"`
	NextType             int         `json:"nextType"`
}

type RespCreateSubnet

type RespCreateSubnet struct {
	Code      int                         `json:"code"`
	CodeDesc  string                      `json:"codeDesc"`
	Message   string                      `json:"message"`
	SubnetSet []RespCreateSubnetSubnetSet `json:"subnetSet"`
}

func CreateSubnet

func CreateSubnet(options ...string) (*RespCreateSubnet, error)

type RespCreateSubnetAclRule

type RespCreateSubnetAclRule struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func CreateSubnetAclRule

func CreateSubnetAclRule(options ...string) (*RespCreateSubnetAclRule, error)

type RespCreateSubnetSubnetSet

type RespCreateSubnetSubnetSet struct {
	CidrBlock    string `json:"cidrBlock"`
	RouteTableId string `json:"routeTableId"`
	SubnetId     string `json:"subnetId"`
	SubnetName   string `json:"subnetName"`
	UnSubnetId   string `json:"unSubnetId"`
	Zone         string `json:"zone"`
	ZoneId       int    `json:"zoneId"`
}

type RespCreateVpc

type RespCreateVpc struct {
	Code          int                          `json:"code"`
	CodeDesc      string                       `json:"codeDesc"`
	Message       string                       `json:"message"`
	RouteTableSet []RespCreateVpcRouteTableSet `json:"routeTableSet"`
	SubnetSet     []interface{}                `json:"subnetSet"`
	UniqVpcId     string                       `json:"uniqVpcId"`
	VpcCreateTime string                       `json:"vpcCreateTime"`
	VpcId         string                       `json:"vpcId"`
}

type RespCreateVpcPeeringConnection

type RespCreateVpcPeeringConnection struct {
	Code                int    `json:"code"`
	CodeDesc            string `json:"codeDesc"`
	Message             string `json:"message"`
	PeeringConnectionId string `json:"peeringConnectionId"`
}

func CreateVpcPeeringConnection

func CreateVpcPeeringConnection(options ...string) (*RespCreateVpcPeeringConnection, error)

type RespCreateVpcPeeringConnectionEx

type RespCreateVpcPeeringConnectionEx struct {
	Code                int    `json:"code"`
	CodeDesc            string `json:"codeDesc"`
	Message             string `json:"message"`
	PeeringConnectionId string `json:"peeringConnectionId"`
}

func CreateVpcPeeringConnectionEx

func CreateVpcPeeringConnectionEx(options ...string) (*RespCreateVpcPeeringConnectionEx, error)

type RespCreateVpcRouteTableSet

type RespCreateVpcRouteTableSet struct {
	RouteTableId   string `json:"routeTableId"`
	RouteTableName string `json:"routeTableName"`
	RouteTableType int    `json:"routeTableType"`
}

type RespDeleteNatGateway

type RespDeleteNatGateway struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
	TaskID   int    `json:"taskId"`
}

func DeleteNatGateway

func DeleteNatGateway(options ...string) (*RespDeleteNatGateway, error)

type RespDeleteNetworkAcl

type RespDeleteNetworkAcl struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func DeleteNetworkAcl

func DeleteNetworkAcl(options ...string) (*RespDeleteNetworkAcl, error)

type RespDeleteNetworkInterface

type RespDeleteNetworkInterface struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		TaskID int `json:"taskId"`
	} `json:"data"`
	Message string `json:"message"`
}

func DeleteNetworkInterface

func DeleteNetworkInterface(options ...string) (*RespDeleteNetworkInterface, error)

type RespDeleteRouteTable

type RespDeleteRouteTable struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func DeleteRouteTable

func DeleteRouteTable(options ...string) (*RespDeleteRouteTable, error)

type RespDeleteSubnet

type RespDeleteSubnet struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func DeleteSubnet

func DeleteSubnet(options ...string) (*RespDeleteSubnet, error)

type RespDeleteVpc

type RespDeleteVpc struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func DeleteVpc

func DeleteVpc(vpcid ...string) (*RespDeleteVpc, error)

type RespDeleteVpcPeeringConnection

type RespDeleteVpcPeeringConnection struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func DeleteVpcPeeringConnection

func DeleteVpcPeeringConnection(options ...string) (*RespDeleteVpcPeeringConnection, error)

type RespDeleteVpcPeeringConnectionEx

type RespDeleteVpcPeeringConnectionEx struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func DeleteVpcPeeringConnectionEx

func DeleteVpcPeeringConnectionEx(options ...string) (*RespDeleteVpcPeeringConnectionEx, error)

type RespDescribeNatGateway

type RespDescribeNatGateway struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     []struct {
		AppID            string   `json:"appId"`
		Bandwidth        int      `json:"bandwidth"`
		CreateTime       string   `json:"createTime"`
		EipCount         int      `json:"eipCount"`
		EipSet           []string `json:"eipSet"`
		MaxConcurrent    int      `json:"maxConcurrent"`
		NatID            string   `json:"natId"`
		NatName          string   `json:"natName"`
		ProductionStatus int      `json:"productionStatus"`
		State            int      `json:"state"`
		UnVpcID          string   `json:"unVpcId"`
		VpcID            int      `json:"vpcId"`
		VpcName          string   `json:"vpcName"`
	} `json:"data"`
	Message    string `json:"message"`
	TotalCount int    `json:"totalCount"`
}

func DescribeNatGateway

func DescribeNatGateway(options ...string) (*RespDescribeNatGateway, error)

type RespDescribeNetworkAcl

type RespDescribeNetworkAcl struct {
	Code       int                          `json:"code"`
	CodeDesc   string                       `json:"codeDesc"`
	Data       []RespDescribeNetworkAclData `json:"data"`
	Message    string                       `json:"message"`
	TotalCount int                          `json:"totalCount"`
}

func DescribeNetworkAcl

func DescribeNetworkAcl(options ...string) (*RespDescribeNetworkAcl, error)

type RespDescribeNetworkAclData

type RespDescribeNetworkAclData struct {
	CreateTime         string      `json:"createTime"`
	NetworkAclEntrySet interface{} `json:"networkAclEntrySet"`
	NetworkAclId       string      `json:"networkAclId"`
	NetworkAclName     string      `json:"networkAclName"`
	SubnetNum          int         `json:"subnetNum"`
	SubnetSet          interface{} `json:"subnetSet"`
	UnVpcId            string      `json:"unVpcId"`
	VpcCidrBlock       string      `json:"vpcCidrBlock"`
	VpcId              string      `json:"vpcId"`
	VpcName            string      `json:"vpcName"`
}

type RespDescribeNetworkInterfaces

type RespDescribeNetworkInterfaces struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		Data []struct {
			CreateTime     string        `json:"createTime"`
			EniDescription string        `json:"eniDescription"`
			EniName        string        `json:"eniName"`
			GroupSet       []interface{} `json:"groupSet"`
			InstanceSet    struct {
				AttachTime string `json:"attachTime"`
				InstanceID string `json:"instanceId"`
			} `json:"instanceSet"`
			MacAddress            string `json:"macAddress"`
			NetworkInterfaceID    string `json:"networkInterfaceId"`
			Primary               bool   `json:"primary"`
			PrivateIPAddressesSet []struct {
				Description      string `json:"description"`
				EipID            string `json:"eipId"`
				Primary          bool   `json:"primary"`
				PrivateIPAddress string `json:"privateIpAddress"`
				WanIP            string `json:"wanIp"`
			} `json:"privateIpAddressesSet"`
			SubnetID string `json:"subnetId"`
			VpcID    string `json:"vpcId"`
			VpcName  string `json:"vpcName"`
			ZoneID   int    `json:"zoneId"`
		} `json:"data"`
		TotalNum int `json:"totalNum"`
	} `json:"data"`
	Message string `json:"message"`
}

func DescribeNetworkInterfaces

func DescribeNetworkInterfaces(options ...string) (*RespDescribeNetworkInterfaces, error)

type RespDescribeRouteTable

type RespDescribeRouteTable struct {
	Code       int                          `json:"code"`
	CodeDesc   string                       `json:"codeDesc"`
	Data       []RespDescribeRouteTableData `json:"data"`
	Message    string                       `json:"message"`
	TotalCount int                          `json:"totalCount"`
}

func DescribeRouteTable

func DescribeRouteTable(options ...string) (*RespDescribeRouteTable, error)

type RespDescribeRouteTableData

type RespDescribeRouteTableData struct {
	RouteSet             []RespDescribeRouteTableRouteSet `json:"routeSet"`
	RouteTableCreateTime string                           `json:"routeTableCreateTime"`
	RouteTableId         string                           `json:"routeTableId"`
	RouteTableName       string                           `json:"routeTableName"`
	RouteTableType       int                              `json:"routeTableType"`
	SubnetNum            int                              `json:"subnetNum"`
	UnRouteTableId       string                           `json:"unRouteTableId"`
	UnVpcId              string                           `json:"unVpcId"`
	VpcCidrBlock         string                           `json:"vpcCidrBlock"`
	VpcId                string                           `json:"vpcId"`
	VpcName              string                           `json:"vpcName"`
}

type RespDescribeRouteTableRouteSet

type RespDescribeRouteTableRouteSet struct {
	Description          interface{} `json:"description"`
	DestinationCidrBlock string      `json:"destinationCidrBlock"`
	// contains filtered or unexported fields
}

type RespDescribeSubnet

type RespDescribeSubnet struct {
	AvailableIPNum   int    `json:"availableIPNum"`
	CidrBlock        string `json:"cidrBlock"`
	Code             int    `json:"code"`
	CodeDesc         string `json:"codeDesc"`
	Message          string `json:"message"`
	RouteTableId     string `json:"routeTableId"`
	SubnetCreateTime string `json:"subnetCreateTime"`
	SubnetId         string `json:"subnetId"`
	SubnetName       string `json:"subnetName"`
	TotalIPNum       int    `json:"totalIPNum"`
	ZoneId           int    `json:"zoneId"`
}

func DescribeSubnet

func DescribeSubnet(options ...string) (*RespDescribeSubnet, error)

type RespDescribeSubnetEx

type RespDescribeSubnetEx struct {
	Code     int                        `json:"code"`
	CodeDesc string                     `json:"codeDesc"`
	Data     []RespDescribeSubnetExData `json:"data"`
	Message  string                     `json:"message"`
}

func DescribeSubnetEx

func DescribeSubnetEx(options ...string) (*RespDescribeSubnetEx, error)

type RespDescribeSubnetExData

type RespDescribeSubnetExData struct {
	AvailableIPNum   int         `json:"availableIPNum"`
	Broadcast        bool        `json:"broadcast"`
	CidrBlock        string      `json:"cidrBlock"`
	IsDefault        bool        `json:"isDefault"`
	NetworkAclId     interface{} `json:"networkAclId"`
	RouteTableId     string      `json:"routeTableId"`
	RouteTableName   string      `json:"routeTableName"`
	RtbNum           int         `json:"rtbNum"`
	SubnetCreateTime string      `json:"subnetCreateTime"`
	SubnetId         string      `json:"subnetId"`
	SubnetName       string      `json:"subnetName"`
	TotalIPNum       int         `json:"totalIPNum"`
	UnRouteTableId   string      `json:"unRouteTableId"`
	UnSubnetId       string      `json:"unSubnetId"`
	UnVpcId          string      `json:"unVpcId"`
	VpcCidrBlock     string      `json:"vpcCidrBlock"`
	VpcDevices       int         `json:"vpcDevices"`
	VpcId            string      `json:"vpcId"`
	VpcName          string      `json:"vpcName"`
	Zone             string      `json:"zone"`
	ZoneId           int         `json:"zoneId"`
}
type RespDescribeVpcClassicLink struct {
	Code       int                              `json:"code"`
	CodeDesc   string                           `json:"codeDesc"`
	Data       []RespDescribeVpcClassicLinkData `json:"data"`
	Message    string                           `json:"message"`
	TotalCount int                              `json:"totalCount"`
}
func DescribeVpcClassicLink(options ...string) (*RespDescribeVpcClassicLink, error)

type RespDescribeVpcClassicLinkData

type RespDescribeVpcClassicLinkData struct {
	ClassicLinkId string `json:"classicLinkId"`
	CreateTime    string `json:"createTime"`
	InstanceId    string `json:"instanceId"`
	InstanceName  string `json:"instanceName"`
	LanIp         string `json:"lanIp"`
	UnVpcId       string `json:"unVpcId"`
	VpcId         string `json:"vpcId"`
}

type RespDescribeVpcEx

type RespDescribeVpcEx struct {
	Code       int                     `json:"code"`
	CodeDesc   string                  `json:"codeDesc"`
	Data       []RespDescribeVpcExData `json:"data"`
	Message    string                  `json:"message"`
	TotalCount int                     `json:"totalCount"`
}

func DescribeVpcEx

func DescribeVpcEx(options ...string) (*RespDescribeVpcEx, error)

type RespDescribeVpcExData

type RespDescribeVpcExData struct {
	CidrBlock      string `json:"cidrBlock"`
	ClassicLinkNum int    `json:"classicLinkNum"`
	CreateTime     string `json:"createTime"`
	IsDefault      bool   `json:"isDefault"`
	IsMulticast    bool   `json:"isMulticast"`
	NatNum         int    `json:"natNum"`
	RouteTableNum  int    `json:"routeTableNum"`
	SubnetNum      int    `json:"subnetNum"`
	UnVpcId        string `json:"unVpcId"`
	VpcDeviceNum   int    `json:"vpcDeviceNum"`
	VpcId          string `json:"vpcId"`
	VpcName        string `json:"vpcName"`
	VpcPeerNum     int    `json:"vpcPeerNum"`
	VpgNum         int    `json:"vpgNum"`
	VpnGwNum       int    `json:"vpnGwNum"`
}

type RespDescribeVpcLimit

type RespDescribeVpcLimit struct {
	Code     int                      `json:"code"`
	CodeDesc string                   `json:"codeDesc"`
	Data     RespDescribeVpcLimitData `json:"data"`
	Message  string                   `json:"message"`
}

func DescribeVpcLimit

func DescribeVpcLimit(options ...string) (*RespDescribeVpcLimit, error)

type RespDescribeVpcLimitData

type RespDescribeVpcLimitData struct {
	Limit interface{} `json:"limit"`
}

type RespDescribeVpcPeeringConnections

type RespDescribeVpcPeeringConnections struct {
	Code       int           `json:"code"`
	CodeDesc   string        `json:"codeDesc"`
	Message    string        `json:"message"`
	Data       []interface{} `json:"data"`
	TotalCount int           `json:"totalCount"`
}

func DescribeVpcPeeringConnections

func DescribeVpcPeeringConnections(options ...string) (*RespDescribeVpcPeeringConnections, error)

type RespDetachClassicLinkVpc

type RespDetachClassicLinkVpc struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
	TaskId   int    `json:"taskId"`
}

func DetachClassicLinkVpc

func DetachClassicLinkVpc(options ...string) (*RespDetachClassicLinkVpc, error)

type RespDetachNetworkInterface

type RespDetachNetworkInterface struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		TaskID int `json:"taskId"`
	} `json:"data"`
	Message string `json:"message"`
}

func DetachNetworkInterface

func DetachNetworkInterface(options ...string) (*RespDetachNetworkInterface, error)

type RespDeteleSubnetAclRule

type RespDeteleSubnetAclRule struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func DeteleSubnetAclRule

func DeteleSubnetAclRule(options ...string) (*RespDeteleSubnetAclRule, error)

type RespEipBindNatGateway

type RespEipBindNatGateway struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
	TaskID   int    `json:"taskId"`
}

func EipBindNatGateway

func EipBindNatGateway(options ...string) (*RespEipBindNatGateway, error)

type RespEipUnBindNatGateway

type RespEipUnBindNatGateway struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
	TaskID   int    `json:"taskId"`
}

func EipUnBindNatGateway

func EipUnBindNatGateway(options ...string) (*RespEipUnBindNatGateway, error)

type RespMigrateNetworkInterface

type RespMigrateNetworkInterface struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		TaskID int `json:"taskId"`
	} `json:"data"`
	Message string `json:"message"`
}

func MigrateNetworkInterface

func MigrateNetworkInterface(options ...string) (*RespMigrateNetworkInterface, error)

type RespMigratePrivateIpAddress

type RespMigratePrivateIpAddress struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		TaskID int `json:"taskId"`
	} `json:"data"`
	Message string `json:"message"`
}

func MigratePrivateIpAddress

func MigratePrivateIpAddress(options ...string) (*RespMigratePrivateIpAddress, error)

type RespModifyNatGateway

type RespModifyNatGateway struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func ModifyNatGateway

func ModifyNatGateway(options ...string) (*RespModifyNatGateway, error)

type RespModifyNetworkAcl

type RespModifyNetworkAcl struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func ModifyNetworkAcl

func ModifyNetworkAcl(options ...string) (*RespModifyNetworkAcl, error)

type RespModifyNetworkAclEntry

type RespModifyNetworkAclEntry struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func ModifyNetworkAclEntry

func ModifyNetworkAclEntry(options ...string) (*RespModifyNetworkAclEntry, error)

type RespModifyNetworkInterface

type RespModifyNetworkInterface struct {
	Code     int           `json:"code"`
	CodeDesc string        `json:"codeDesc"`
	Data     []interface{} `json:"data"`
	Message  string        `json:"message"`
}

func ModifyNetworkInterface

func ModifyNetworkInterface(options ...string) (*RespModifyNetworkInterface, error)

type RespModifyRouteTableAttribute

type RespModifyRouteTableAttribute struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func ModifyRouteTableAttribute

func ModifyRouteTableAttribute(options ...string) (*RespModifyRouteTableAttribute, error)

type RespModifySubnetAttribute

type RespModifySubnetAttribute struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func ModifySubnetAttribute

func ModifySubnetAttribute(options ...string) (*RespModifySubnetAttribute, error)

type RespModifyVpcAttribute

type RespModifyVpcAttribute struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func ModifyVpcAttribute

func ModifyVpcAttribute(options ...string) (*RespModifyVpcAttribute, error)

type RespModifyVpcPeeringConnection

type RespModifyVpcPeeringConnection struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func ModifyVpcPeeringConnection

func ModifyVpcPeeringConnection(options ...string) (*RespModifyVpcPeeringConnection, error)

type RespModifyVpcPeeringConnectionEx

type RespModifyVpcPeeringConnectionEx struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func ModifyVpcPeeringConnectionEx

func ModifyVpcPeeringConnectionEx(options ...string) (*RespModifyVpcPeeringConnectionEx, error)

type RespQueryNatGatewayProductionStatus

type RespQueryNatGatewayProductionStatus struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		ErrorCode int `json:"errorCode"`
		Status    int `json:"status"`
	} `json:"data"`
	Message string `json:"message"`
}

func QueryNatGatewayProductionStatus

func QueryNatGatewayProductionStatus(options ...string) (*RespQueryNatGatewayProductionStatus, error)

type RespRejectVpcPeeringConnection

type RespRejectVpcPeeringConnection struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func RejectVpcPeeringConnection

func RejectVpcPeeringConnection(options ...string) (*RespRejectVpcPeeringConnection, error)

type RespRejectVpcPeeringConnectionEx

type RespRejectVpcPeeringConnectionEx struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func RejectVpcPeeringConnectionEx

func RejectVpcPeeringConnectionEx(options ...string) (*RespRejectVpcPeeringConnectionEx, error)

type RespUnassignPrivateIpAddresses

type RespUnassignPrivateIpAddresses struct {
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		TaskID int `json:"taskId"`
	} `json:"data"`
	Message string `json:"message"`
}

func UnassignPrivateIpAddresses

func UnassignPrivateIpAddresses(options ...string) (*RespUnassignPrivateIpAddresses, error)

type RespUpgradeNatGateway

type RespUpgradeNatGateway struct {
	BillID   string `json:"billId"`
	Code     int    `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func UpgradeNatGateway

func UpgradeNatGateway(options ...string) (*RespUpgradeNatGateway, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL