github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/dc/create_direct_connect_tunnel.go (about) 1 package dc 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 创建专用通道 8 // https://cloud.tencent.com/document/api/216/19821 9 10 type CreateDirectConnectTunnelRequest struct { 11 // 专线带宽,单位:Mbps默认是物理专线带宽值 12 Bandwidth *int64 `name:"Bandwidth,omitempty"` 13 // BgpPeer,用户侧bgp信息,包括Asn和AuthKey 14 BgpPeer *BgpPeer `name:"BgpPeer,omitempty"` 15 // CustomerAddress,用户侧互联 IP 16 CustomerAddress *string `name:"CustomerAddress,omitempty"` 17 // 专线网关 ID,例如 dcg-d545ddf 18 DirectConnectGatewayId *string `name:"DirectConnectGatewayId,omitempty"` 19 // 专线 ID,例如:dc-kd7d06of 20 DirectConnectId string `name:"DirectConnectId"` 21 // 物理专线 owner,缺省为当前客户(物理专线 owner)共享专线时这里需要填写共享专线的开发商账号 ID 22 DirectConnectOwnerAccount *string `name:"DirectConnectOwnerAccount,omitempty"` 23 // 专用通道名称 24 DirectConnectTunnelName string `name:"DirectConnectTunnelName"` 25 // 网络地域 26 NetworkRegion *string `name:"NetworkRegion,omitempty"` 27 // 网络类型,分别为VPC、BMVPC,CCN,默认是VPCVPC:私有网络BMVPC:黑石网络CCN:云联网 28 NetworkType *string `name:"NetworkType,omitempty"` 29 // 区域 30 Region string `name:"Region"` 31 // 静态路由,用户IDC的网段地址 32 RouteFilterPrefixes []*RouteFilterPrefix `name:"RouteFilterPrefixes,omitempty"` 33 // BGP :BGP路由STATIC:静态默认为 BGP 路由 34 RouteType *string `name:"RouteType,omitempty"` 35 // TencentAddress,腾讯侧互联 IP 36 TencentAddress *string `name:"TencentAddress,omitempty"` 37 // vlan,范围:0 ~ 30000:不开启子接口默认值是非0 38 Vlan *int64 `name:"Vlan,omitempty"` 39 // 私有网络统一 ID 或者黑石网络统一 ID 40 VpcId *string `name:"VpcId,omitempty"` 41 } 42 43 func (req *CreateDirectConnectTunnelRequest) Invoke(client github_com_morlay_goqcloud.Client) (*CreateDirectConnectTunnelResponse, error) { 44 resp := &CreateDirectConnectTunnelResponse{} 45 err := client.Request("dc", "CreateDirectConnectTunnel", "2018-04-10").Do(req, resp) 46 return resp, err 47 } 48 49 type CreateDirectConnectTunnelResponse struct { 50 github_com_morlay_goqcloud.TencentCloudBaseResponse 51 // 专用通道ID 52 DirectConnectTunnelIdSet []*string `json:"DirectConnectTunnelIdSet"` 53 }