uwsc

package
v0.22.124 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package uwsc include resources of ucloud uwsc product

See also

for detail.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddExportLineRulesRequest

type AddExportLineRulesRequest struct {
	request.CommonBase

	// UReach资源ID
	ResourceId *string `required:"true"`

	// 白名单类型:Developer、CrossBorder
	RuleTypes []string `required:"true"`
}

AddExportLineRulesRequest is request schema for AddExportLineRules action

type AddExportLineRulesResponse

type AddExportLineRulesResponse struct {
	response.CommonBase

	// 返回信息
	Message string
}

AddExportLineRulesResponse is response schema for AddExportLineRules action

type BGPConf added in v0.22.108

type BGPConf struct {

	// 本端自治系统号
	LocalAsn int

	// 云端BGP地址
	LocalIp string

	// 对端自治系统号
	PeerAsn int

	// 用户端BGP地址
	PeerIp string

	// BGP隧道网段
	TunnelCidr string
}

BGPConf - CE隧道 BGP配置

type BWPackageInfo added in v0.22.108

type BWPackageInfo struct {

	// 最大带宽值
	BandWidth float64

	// UWAN 网关带宽 ID
	BwId string

	// 付费方式eg:(Month)
	ChargeType string

	// 过期时间
	DueTime int

	// 带宽包名称
	Name string

	// 计费方式eg:(固定带宽)
	PayMode string

	// 网关外网 IP
	PublicIp string

	// 备注
	Remark string
}

BWPackageInfo - UWAN虚拟路由器带宽包信息

type BindCPERequest

type BindCPERequest struct {
	request.CommonBase

	// cpe id
	CPEId *string `required:"true"`

	// sn id
	Sn *string `required:"true"`
}

BindCPERequest is request schema for BindCPE action

type BindCPEResponse

type BindCPEResponse struct {
	response.CommonBase

	// 返回信息
	Message string
}

BindCPEResponse is response schema for BindCPE action

type CPEInfo

type CPEInfo struct {

	// 资源ID
	CPEId string

	// 资源名称
	CPEName string

	// 配置更新时间
	ConfUpdateTime int

	// 创建时间
	CreateTime int

	// 设备型号
	DeviceTypeName string

	// 是否与线路绑定
	LineStatus string

	// 链路数量
	LinkNum int

	// 绑定的UWAN资源ID
	PopGwId []string

	// 端口
	Ports []string

	// 备注
	Remark string

	// 绑定的UReach线路资源ID
	ResourceIds []string

	// 设备SN
	Sn string

	// 状态
	Status int

	// 有效使用时间(天)
	UseTime int

	// 供应商
	Vendor string
}

CPEInfo - CPE信息

type CreateCEGatewayRequest added in v0.22.108

type CreateCEGatewayRequest struct {
	request.CommonBase

	// IP类型 枚举值:静态IP(Static) | 动态IP(Dynamic)
	IpType *string `required:"true"`

	// 资源名称
	Name *string `required:"false"`

	// 所属UWAN虚拟路由器资源ID
	PopGwId *string `required:"true"`

	// 客户自有公网IP
	PublicIp *string `required:"true"`

	// 备注
	Remark *string `required:"false"`
}

CreateCEGatewayRequest is request schema for CreateCEGateway action

type CreateCEGatewayResponse added in v0.22.108

type CreateCEGatewayResponse struct {
	response.CommonBase

	// 错误信息
	Message string

	// 请求 ID
	RequestId string

	// 客户网关资源 ID
	VPNId string
}

CreateCEGatewayResponse is response schema for CreateCEGateway action

type CreateCETunnelParamBGPConf added in v0.22.108

type CreateCETunnelParamBGPConf struct {

	// Ucloud侧的自治系统号。
	LocalAsn *string `required:"false"`

	// 云端BGP地址。必须从BGP隧道网段内分配。
	LocalIp *string `required:"false"`

	// 对端BGP ASN号。
	PeerAsn *string `required:"false"`

	// 用户端BGP地址。必须从BGP隧道网段内分配。
	PeerIp *string `required:"false"`

	// BGP隧道网段。该网段需是一个在 169.254.0.0/16 内的掩码长度为 30 的网段。
	TunnelCidr *string `required:"false"`
}

CreateCETunnelParamBGPConf is request schema for complex param

type CreateCETunnelParamDPDConf added in v0.22.108

type CreateCETunnelParamDPDConf struct {

	// DPD超时后的动作,Enable为1(开启)时有效。可取值为clear(断开)、restart(重试)和 trap(流量触发)
	Action *string `required:"false"`

	// DPD探测间隔时间。dpdEnable为1(开启)时有效。单位为秒,默认为 10
	Delay *int `required:"false"`

	// 是否开启 DPD(对等体存活检测)功能。取值:0(关闭)、1(开启)
	Enabled *int `required:"true"`

	// DPD超时时间。即探测确认对端不存在需要的时间。dpdEnable为1(开启)时有效。单位为秒。取值范围为 30-60(IKEv2 默认为 0)
	Timeout *int `required:"false"`
}

CreateCETunnelParamDPDConf is request schema for complex param

type CreateCETunnelParamIKEConf added in v0.22.108

type CreateCETunnelParamIKEConf struct {

	// IKE 认证算法,取值:"md5", "sha1", "sha2-256"
	AuthenticationAlgorithm *string `required:"true"`

	// DH group,指定IKE交换密钥时使用的DH组。取值:"1", "2", "5", "14", "15", "16"
	DhGroup *string `required:"true"`

	// IKE 加密算法,取值:"aes128", "aes192", "aes256", "aes512", "3des"
	EncryptionAlgorithm *string `required:"true"`

	// IKE 协商模式,主模式(main)/野蛮模式(aggressive),IKE V2时不使用该参数
	ExchangeMode *string `required:"true"`

	// 本端标识,取值:“auto”,“<ip-address>”
	LocalId *string `required:"true"`

	// IKE 共享密钥
	PreSharedKey *string `required:"true"`

	// 对端标识,取值:“auto”,“<ip-address>”
	RemoteId *string `required:"true"`

	// IKE SA的生存周期,取值范围:600-604800
	SALifeTime *string `required:"true"`

	// IKE 版本,取值: "ike v1","ike v2"
	Version *string `required:"true"`
}

CreateCETunnelParamIKEConf is request schema for complex param

type CreateCETunnelParamIPSecConf added in v0.22.108

type CreateCETunnelParamIPSecConf struct {

	// 第二阶段协商的认证算法。取值:md5、sha1、sha2-256。
	AuthenticationAlgorithm *string `required:"true"`

	// 需要和 VPC 互通的本地数据中心侧的网段,用于第二阶段协商。
	CENetwork []string `required:"true"`

	// IPSec 加密算法,取值:"aes128", "aes192", "aes256", "aes512", "3des"
	EncryptionAlgorithm *string `required:"true"`

	// 第二阶段协商使用的 Diffie-Hellman 密钥交换算法。取值:disabled、1、2、5、14、15、16。
	PFSDhGroup *string `required:"true"`

	// IPSec 安全协议,取值:“esp”,“ah”
	Protocol *string `required:"true"`

	// 第二阶段协商出的 SA 的生存周期。单位:秒。取值范围:1200~604800
	SALifeTime *string `required:"true"`

	// 第二阶段协商出的 SA 的生存周期。单位:字节 KB。取值范围:8000 – 20000000,默认使用SA超时时间
	SALifetimeBytes *string `required:"false"`
}

CreateCETunnelParamIPSecConf is request schema for complex param

type CreateCETunnelRequest added in v0.22.108

type CreateCETunnelRequest struct {
	request.CommonBase

	//
	BGPConf *CreateCETunnelParamBGPConf `required:"false"`

	// IPSec 关闭后动作,枚举值:restart、trap、none
	CloseAction *string `required:"true"`

	//
	DPDConf *CreateCETunnelParamDPDConf `required:"false"`

	//
	IKEConf *CreateCETunnelParamIKEConf `required:"false"`

	//
	IPSecConf *CreateCETunnelParamIPSecConf `required:"false"`

	// 路由模式,枚举值:感兴趣流(FLow) | BGP(BGP)
	Mode *string `required:"true"`

	// 资源名称
	Name *string `required:"false"`

	// 备注
	Remark *string `required:"false"`

	// 所属CE网关资源ID
	VPNId *string `required:"true"`
}

CreateCETunnelRequest is request schema for CreateCETunnel action

type CreateCETunnelResponse added in v0.22.108

type CreateCETunnelResponse struct {
	response.CommonBase

	// 错误信息
	Message string

	// VPN 隧道 ID
	VPNTunnelId string
}

CreateCETunnelResponse is response schema for CreateCETunnel action

type CreateCPERequest

type CreateCPERequest struct {
	request.CommonBase

	// 数量,默认为1
	Count *int `required:"false"`

	// 设备型号,枚举值: UCPE3600、UCPE3601
	DeviceType *string `required:"true"`

	// 标签:UReach智能网关:Access
	Label *string `required:"false"`

	// cpe 名称
	Name *string `required:"true"`

	// cpe 备注
	Remark *string `required:"true"`

	// 结构体,详见UserInfo模型
	UserInfo *string `required:"false"`
}

CreateCPERequest is request schema for CreateCPE action

type CreateCPEResponse

type CreateCPEResponse struct {
	response.CommonBase

	// cpe id
	CPEId string

	// 返回信息
	Message string
}

CreateCPEResponse is response schema for CreateCPE action

type CreateExportLineRequest

type CreateExportLineRequest struct {
	request.CommonBase

	// 带宽大小
	Bandwidth *int `required:"false"`

	// CPE Id
	CPEId *string `required:"true"`

	// 计费模式。枚举值为: Year,按年付费; Month,按月付费; Dynamic,按小时付费(需开启权限)。默认为月付
	ChargeType *string `required:"false"`

	// 代金券ID。请登录用户中心查看
	CouponId *int `required:"false"`

	// 本端地域
	FromRegion *string `required:"true"`

	// IP类型:International、BGP、Native、Resident
	IpType *string `required:"true"`

	// 资源名称
	Name *string `required:"false"`

	// 计费类型:fixed-bw,固定带宽;traffic,流量计费
	PayMode *string `required:"false"`

	// 套餐类型:2M-Entry、5M-Basic、10M-Enterprise
	PkgType *string `required:"false"`

	// 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末。
	Quantity *int `required:"false"`

	// 备注
	Remark *string `required:"false"`

	// 业务组名称, 默认为 "Default"
	Tag *string `required:"false"`

	// 目标地域
	ToRegion *string `required:"true"`
}

CreateExportLineRequest is request schema for CreateExportLine action

type CreateExportLineResponse

type CreateExportLineResponse struct {
	response.CommonBase

	// 返回信息
	Message string

	// 资源ID
	ResourceId string
}

CreateExportLineResponse is response schema for CreateExportLine action

type CreatePOPGWParamBWConf added in v0.22.108

type CreatePOPGWParamBWConf struct {

	// UWAN 网关的带宽规格。取值:1-100。单位:Mbps。
	BwMax *float64 `required:"true"`

	// 带宽类型,默认为空字符串
	BwType *string `required:"false"`

	// 付费方式,枚举值:- Month:月付;- Year:年付;- Postpadi:后付费(仅支持流量计费方式)
	ChargeType *string `required:"true"`

	// 优惠券 ID
	CouponId *string `required:"false"`

	// 带宽的名称
	Name *string `required:"true"`

	// 带宽的计费方式,取值:- fixed-bw:固定带宽计费;- traffic:流量计费。
	PayMode *string `required:"true"`

	// 产品 ID
	ProductId *int `required:"false"`

	// 带宽购买时长,默认为 0,代表有效期至月底
	Quantity *float64 `required:"false"`

	// 带宽包备注信息
	Remark *string `required:"false"`
}

CreatePOPGWParamBWConf is request schema for complex param

type CreatePOPGWRequest added in v0.22.108

type CreatePOPGWRequest struct {
	request.CommonBase

	//
	BWConf *CreatePOPGWParamBWConf `required:"false"`

	// 付费方式, 枚举值为: - Year:按年付费; - Month:  按月付费;(月付非必填,默认为 0;年付必填。)
	ChargeType *string `required:"false"`

	// 代金券ID, 默认不使用
	CouponId *string `required:"false"`

	// 资源名称
	Name *string `required:"true"`

	// UWAN 网关的购买时长,默认为 0,代表有效期至月底。(保持和BWConf.Quantity 相同)
	Quantity *int `required:"true"`

	// 资源备注信息
	Remark *string `required:"false"`

	// 入网类型,仅支持“IPSec”
	Type *string `required:"false"`
}

CreatePOPGWRequest is request schema for CreatePOPGW action

type CreatePOPGWResponse added in v0.22.108

type CreatePOPGWResponse struct {
	response.CommonBase

	// 错误消息
	Message string

	// UWAN 网关实例 ID
	PopGwId string

	// 请求 ID
	RequestId string
}

CreatePOPGWResponse is response schema for CreatePOPGW action

type DPDConf added in v0.22.108

type DPDConf struct {

	// DPD 行为
	Action string

	// DPD 探测间隔时间
	Delay int

	// 是否开启 DPD
	Enabled int

	// DPD 探测超时时间
	Timeout int
}

DPDConf - DPD 配置

type DeleteCEGatewayRequest added in v0.22.108

type DeleteCEGatewayRequest struct {
	request.CommonBase

	// CE 实例 ID
	VPNId *string `required:"true"`
}

DeleteCEGatewayRequest is request schema for DeleteCEGateway action

type DeleteCEGatewayResponse added in v0.22.108

type DeleteCEGatewayResponse struct {
	response.CommonBase

	// 错误信息
	Message string

	// 请求 ID
	RequestId string
}

DeleteCEGatewayResponse is response schema for DeleteCEGateway action

type DeleteCETunnelRequest added in v0.22.108

type DeleteCETunnelRequest struct {
	request.CommonBase

	// 资源ID
	VPNTunnelId *string `required:"true"`
}

DeleteCETunnelRequest is request schema for DeleteCETunnel action

type DeleteCETunnelResponse added in v0.22.108

type DeleteCETunnelResponse struct {
	response.CommonBase

	// 错误信息
	Message string

	// 请求 ID
	RequestId string
}

DeleteCETunnelResponse is response schema for DeleteCETunnel action

type DeleteExportLineRequest

type DeleteExportLineRequest struct {
	request.CommonBase

	// UReach资源ID
	ResourceId *string `required:"true"`
}

DeleteExportLineRequest is request schema for DeleteExportLine action

type DeleteExportLineResponse

type DeleteExportLineResponse struct {
	response.CommonBase

	// 返回信息
	Message string
}

DeleteExportLineResponse is response schema for DeleteExportLine action

type DeleteExportLineRulesRequest

type DeleteExportLineRulesRequest struct {
	request.CommonBase

	// UReach资源ID
	ResourceId *string `required:"true"`

	// 白名单类型:Developer、CrossBorder
	RuleTypes []string `required:"true"`
}

DeleteExportLineRulesRequest is request schema for DeleteExportLineRules action

type DeleteExportLineRulesResponse

type DeleteExportLineRulesResponse struct {
	response.CommonBase

	// 返回信息
	Message string
}

DeleteExportLineRulesResponse is response schema for DeleteExportLineRules action

type DeletePOPGWRequest added in v0.22.108

type DeletePOPGWRequest struct {
	request.CommonBase

	// UWAN虚拟路由器资源ID
	PopGwId *string `required:"true"`
}

DeletePOPGWRequest is request schema for DeletePOPGW action

type DeletePOPGWResponse added in v0.22.108

type DeletePOPGWResponse struct {
	response.CommonBase

	// 错误消息
	Message string

	// 请求 ID
	RequestId string
}

DeletePOPGWResponse is response schema for DeletePOPGW action

type DescribeCEGatewayRequest added in v0.22.108

type DescribeCEGatewayRequest struct {
	request.CommonBase

	// 限制量
	Limit *int `required:"false"`

	// 偏移量
	Offset *int `required:"false"`

	// UWAN 实例 ID
	PopGwId *string `required:"false"`

	// CE 实例 ID
	VPNId *string `required:"false"`
}

DescribeCEGatewayRequest is request schema for DescribeCEGateway action

type DescribeCEGatewayResponse added in v0.22.108

type DescribeCEGatewayResponse struct {
	response.CommonBase

	// 错误信息
	Message string

	// 请求 ID
	RequestId string

	// 总数
	TotalCount int

	// CE信息
	VPNInfos []VPNInfo
}

DescribeCEGatewayResponse is response schema for DescribeCEGateway action

type DescribeCETunnelRequest added in v0.22.108

type DescribeCETunnelRequest struct {
	request.CommonBase

	// 返回数据长度,默认为20,最大100
	Limit *int `required:"false"`

	// 列表起始位置偏移量,默认为0
	Offset *int `required:"false"`

	// CE 网关 ID
	VPNId *string `required:"false"`

	// 隧道 ID
	VPNTunnelId *string `required:"false"`
}

DescribeCETunnelRequest is request schema for DescribeCETunnel action

type DescribeCETunnelResponse added in v0.22.108

type DescribeCETunnelResponse struct {
	response.CommonBase

	// 错误信息
	Message string

	// 请求 ID
	RequestId string

	// 总数
	TotalCount int

	// 隧道信息
	VPNTunnelInfos []VPNTunnelInfo
}

DescribeCETunnelResponse is response schema for DescribeCETunnel action

type DescribeCPERequest

type DescribeCPERequest struct {
	request.CommonBase

	// cpe id
	CPEId *string `required:"false"`

	// 标签:Access、Network
	Label *string `required:"false"`
}

DescribeCPERequest is request schema for DescribeCPE action

type DescribeCPEResponse

type DescribeCPEResponse struct {
	response.CommonBase

	// cpe 详情
	CPEInfos []CPEInfo

	// 返回信息
	Message string
}

DescribeCPEResponse is response schema for DescribeCPE action

type DescribeExportLineRequest

type DescribeExportLineRequest struct {
	request.CommonBase

	// CPE资源ID
	CPEId *string `required:"false"`

	// UReach资源ID
	ResourceId *string `required:"false"`
}

DescribeExportLineRequest is request schema for DescribeExportLine action

type DescribeExportLineResponse

type DescribeExportLineResponse struct {
	response.CommonBase

	// 线路信息
	LineInfos []LineInfo

	// 返回信息
	Message string
}

DescribeExportLineResponse is response schema for DescribeExportLine action

type DescribeExportLineRulesRequest

type DescribeExportLineRulesRequest struct {
	request.CommonBase

	// UReach资源ID
	ResourceId *string `required:"false"`

	// 白名单类型
	RuleType *string `required:"false"`
}

DescribeExportLineRulesRequest is request schema for DescribeExportLineRules action

type DescribeExportLineRulesResponse

type DescribeExportLineRulesResponse struct {
	response.CommonBase

	// 返回信息
	Message string

	// 白名单信息
	WhiteListInfos []WhiteListInfo
}

DescribeExportLineRulesResponse is response schema for DescribeExportLineRules action

type DescribePOPGWRequest added in v0.22.108

type DescribePOPGWRequest struct {
	request.CommonBase

	// 限制量
	Limit *int `required:"false"`

	// 偏移量
	Offset *int `required:"false"`

	// UWAN 实例 ID
	PopGwId *string `required:"true"`
}

DescribePOPGWRequest is request schema for DescribePOPGW action

type DescribePOPGWResponse added in v0.22.108

type DescribePOPGWResponse struct {
	response.CommonBase

	// 消息
	Message string

	// UWAN 实例信息
	POPGWInfos []POPGWInfo

	// 请求 ID
	RequestId string

	// 总数
	TotalCount int
}

DescribePOPGWResponse is response schema for DescribePOPGW action

type IKEConf added in v0.22.108

type IKEConf struct {

	// 认证算法
	AuthenticationAlgorithm string

	// 分组信息
	DhGroup string

	// 加密算法
	EncryptionAlgorithm string

	// 协商模式
	ExchangeMode string

	// 本端标识
	LocalId string

	// 预共享密钥
	PreSharedKey string

	// 对端标识
	RemoteId string

	// IKE SA的生存周期
	SALifeTime string

	// 版本
	Version string
}

IKEConf - IKE配置信息

type IPSecConf added in v0.22.108

type IPSecConf struct {

	// 认证算法
	AuthenticationAlgorithm string

	// 客户网段
	CENetwork []string

	// 加密算法
	EncryptionAlgorithm string

	// 第二阶段协商使用的 Diffie-Hellman 密钥交换算法
	PFSDhGroup string

	// 安全协议
	Protocol string

	// 第二阶段的 SA 的生存周期
	SALifeTime string

	// 第二阶段的 SA 的生存周期
	SALifetimeBytes string
}

IPSecConf - IPSec配置信息

type LineInfo

type LineInfo struct {

	// 带宽大小(Mbps)
	Bandwidth int

	// 线路绑定的CPE资源ID
	CPEIds []string

	// 付费方式(按月、按年等)
	ChargeType string

	// 创建时间
	CreateTime int

	// 到期时间
	ExpireTime int

	// 入口地域
	FromRegion string

	// 入口地域名称
	FromRegionName string

	//
	IP []string

	// 线路资源ID对应的加速线路ID
	InstanceId string

	// 是否过期(normal/expire)
	InstanceStatus string

	// IP类型
	IpType string

	// 名称
	Name string

	// 计费方式(固定带宽: fixed-bw;流量计费:traffic)
	PayMode string

	// 套餐类型
	PkgType string

	// 备注
	Remark string

	// 线路资源ID
	ResourceId string

	//
	Socks SocksInfo

	// 源IP地址
	Source []string

	// 线路是否绑定CPE;"1":已绑定;"0"未绑定
	Status string

	// 出口地域
	ToRegion string

	// 出口地域名称
	ToRegionName string
}

LineInfo - CPE加速线路信息

type ListAvailableRegionRequest added in v0.22.108

type ListAvailableRegionRequest struct {
	request.CommonBase
}

ListAvailableRegionRequest is request schema for ListAvailableRegion action

type ListAvailableRegionResponse added in v0.22.108

type ListAvailableRegionResponse struct {
	response.CommonBase

	// 消息
	Message string

	// 可用地域
	Region []string
}

ListAvailableRegionResponse is response schema for ListAvailableRegion action

type POPGWInfo added in v0.22.108

type POPGWInfo struct {

	// 带宽包信息
	BWPackageInfo BWPackageInfo

	// 客户网关数量
	CENum int

	// CPE数量
	CPENum int

	// 付费类型
	ChargeType string

	// 创建时间
	CreateTime int

	// 过期时间
	DueTime int

	// 网关名称
	Name string

	// 网关实例 ID
	PopGwId string

	// 地域信息
	Region string

	// 备注
	Remark string

	// 规格:IPSec、SSL
	Type string

	// 云联网信息
	UGNInfo UGNInfo

	// VCPE 数量
	VCPENum int

	// 唯一标识
	VNI int
}

POPGWInfo - UWAN虚拟路由器信息

type SocksInfo

type SocksInfo struct {

	//
	Account string

	//
	Addr string

	//
	Port int
}

SocksInfo -

type UGNBWInfo added in v0.22.108

type UGNBWInfo struct {

	// UGN带宽包ID
	UGNBWId string

	// UGN带宽包名称
	UGNBWName string
}

UGNBWInfo - UGN带宽包信息

type UGNInfo added in v0.22.108

type UGNInfo struct {

	// UGN 带宽包信息
	UGNBWInfos []UGNBWInfo

	// 云联网 ID
	UGNId string

	// 云联网名称
	UGNName string
}

UGNInfo - UGN信息

type UWSCClient

type UWSCClient struct {
	*ucloud.Client
}

UWSCClient is the client of UWSC

func NewClient

func NewClient(config *ucloud.Config, credential *auth.Credential) *UWSCClient

NewClient will return a instance of UWSCClient

func (*UWSCClient) AddExportLineRules

func (c *UWSCClient) AddExportLineRules(req *AddExportLineRulesRequest) (*AddExportLineRulesResponse, error)

API: AddExportLineRules

添加加速规则

func (*UWSCClient) BindCPE

func (c *UWSCClient) BindCPE(req *BindCPERequest) (*BindCPEResponse, error)

API: BindCPE

绑定 CPE

func (*UWSCClient) CreateCEGateway added in v0.22.108

func (c *UWSCClient) CreateCEGateway(req *CreateCEGatewayRequest) (*CreateCEGatewayResponse, error)

API: CreateCEGateway

创建CE客户网关

func (*UWSCClient) CreateCETunnel added in v0.22.108

func (c *UWSCClient) CreateCETunnel(req *CreateCETunnelRequest) (*CreateCETunnelResponse, error)

API: CreateCETunnel

创建隧道

func (*UWSCClient) CreateCPE

func (c *UWSCClient) CreateCPE(req *CreateCPERequest) (*CreateCPEResponse, error)

API: CreateCPE

创建 CPE

func (*UWSCClient) CreateExportLine

func (c *UWSCClient) CreateExportLine(req *CreateExportLineRequest) (*CreateExportLineResponse, error)

API: CreateExportLine

创建加速线路

func (*UWSCClient) CreatePOPGW added in v0.22.108

func (c *UWSCClient) CreatePOPGW(req *CreatePOPGWRequest) (*CreatePOPGWResponse, error)

API: CreatePOPGW

创建UWAN虚拟路由器

func (*UWSCClient) DeleteCEGateway added in v0.22.108

func (c *UWSCClient) DeleteCEGateway(req *DeleteCEGatewayRequest) (*DeleteCEGatewayResponse, error)

API: DeleteCEGateway

删除CE网关

func (*UWSCClient) DeleteCETunnel added in v0.22.108

func (c *UWSCClient) DeleteCETunnel(req *DeleteCETunnelRequest) (*DeleteCETunnelResponse, error)

API: DeleteCETunnel

删除隧道

func (*UWSCClient) DeleteExportLine

func (c *UWSCClient) DeleteExportLine(req *DeleteExportLineRequest) (*DeleteExportLineResponse, error)

API: DeleteExportLine

删除加速线路

func (*UWSCClient) DeleteExportLineRules

API: DeleteExportLineRules

删除加速规则

func (*UWSCClient) DeletePOPGW added in v0.22.108

func (c *UWSCClient) DeletePOPGW(req *DeletePOPGWRequest) (*DeletePOPGWResponse, error)

API: DeletePOPGW

删除UWAN虚拟路由器

func (*UWSCClient) DescribeCEGateway added in v0.22.108

func (c *UWSCClient) DescribeCEGateway(req *DescribeCEGatewayRequest) (*DescribeCEGatewayResponse, error)

API: DescribeCEGateway

查询CE网关,优先级 Region > PopGwId > VPNId

func (*UWSCClient) DescribeCETunnel added in v0.22.108

func (c *UWSCClient) DescribeCETunnel(req *DescribeCETunnelRequest) (*DescribeCETunnelResponse, error)

API: DescribeCETunnel

查询隧道

func (*UWSCClient) DescribeCPE

func (c *UWSCClient) DescribeCPE(req *DescribeCPERequest) (*DescribeCPEResponse, error)

API: DescribeCPE

查询 CPE 信息

func (*UWSCClient) DescribeExportLine

func (c *UWSCClient) DescribeExportLine(req *DescribeExportLineRequest) (*DescribeExportLineResponse, error)

API: DescribeExportLine

查询CPE绑定的加速线路信息

func (*UWSCClient) DescribeExportLineRules

API: DescribeExportLineRules

查询白名单

func (*UWSCClient) DescribePOPGW added in v0.22.108

func (c *UWSCClient) DescribePOPGW(req *DescribePOPGWRequest) (*DescribePOPGWResponse, error)

API: DescribePOPGW

查询UWAN虚拟路由器

func (*UWSCClient) ListAvailableRegion added in v0.22.108

API: ListAvailableRegion

获取可用地域

func (*UWSCClient) NewAddExportLineRulesRequest

func (c *UWSCClient) NewAddExportLineRulesRequest() *AddExportLineRulesRequest

NewAddExportLineRulesRequest will create request of AddExportLineRules action.

func (*UWSCClient) NewBindCPERequest

func (c *UWSCClient) NewBindCPERequest() *BindCPERequest

NewBindCPERequest will create request of BindCPE action.

func (*UWSCClient) NewCreateCEGatewayRequest added in v0.22.108

func (c *UWSCClient) NewCreateCEGatewayRequest() *CreateCEGatewayRequest

NewCreateCEGatewayRequest will create request of CreateCEGateway action.

func (*UWSCClient) NewCreateCETunnelRequest added in v0.22.108

func (c *UWSCClient) NewCreateCETunnelRequest() *CreateCETunnelRequest

NewCreateCETunnelRequest will create request of CreateCETunnel action.

func (*UWSCClient) NewCreateCPERequest

func (c *UWSCClient) NewCreateCPERequest() *CreateCPERequest

NewCreateCPERequest will create request of CreateCPE action.

func (*UWSCClient) NewCreateExportLineRequest

func (c *UWSCClient) NewCreateExportLineRequest() *CreateExportLineRequest

NewCreateExportLineRequest will create request of CreateExportLine action.

func (*UWSCClient) NewCreatePOPGWRequest added in v0.22.108

func (c *UWSCClient) NewCreatePOPGWRequest() *CreatePOPGWRequest

NewCreatePOPGWRequest will create request of CreatePOPGW action.

func (*UWSCClient) NewDeleteCEGatewayRequest added in v0.22.108

func (c *UWSCClient) NewDeleteCEGatewayRequest() *DeleteCEGatewayRequest

NewDeleteCEGatewayRequest will create request of DeleteCEGateway action.

func (*UWSCClient) NewDeleteCETunnelRequest added in v0.22.108

func (c *UWSCClient) NewDeleteCETunnelRequest() *DeleteCETunnelRequest

NewDeleteCETunnelRequest will create request of DeleteCETunnel action.

func (*UWSCClient) NewDeleteExportLineRequest

func (c *UWSCClient) NewDeleteExportLineRequest() *DeleteExportLineRequest

NewDeleteExportLineRequest will create request of DeleteExportLine action.

func (*UWSCClient) NewDeleteExportLineRulesRequest

func (c *UWSCClient) NewDeleteExportLineRulesRequest() *DeleteExportLineRulesRequest

NewDeleteExportLineRulesRequest will create request of DeleteExportLineRules action.

func (*UWSCClient) NewDeletePOPGWRequest added in v0.22.108

func (c *UWSCClient) NewDeletePOPGWRequest() *DeletePOPGWRequest

NewDeletePOPGWRequest will create request of DeletePOPGW action.

func (*UWSCClient) NewDescribeCEGatewayRequest added in v0.22.108

func (c *UWSCClient) NewDescribeCEGatewayRequest() *DescribeCEGatewayRequest

NewDescribeCEGatewayRequest will create request of DescribeCEGateway action.

func (*UWSCClient) NewDescribeCETunnelRequest added in v0.22.108

func (c *UWSCClient) NewDescribeCETunnelRequest() *DescribeCETunnelRequest

NewDescribeCETunnelRequest will create request of DescribeCETunnel action.

func (*UWSCClient) NewDescribeCPERequest

func (c *UWSCClient) NewDescribeCPERequest() *DescribeCPERequest

NewDescribeCPERequest will create request of DescribeCPE action.

func (*UWSCClient) NewDescribeExportLineRequest

func (c *UWSCClient) NewDescribeExportLineRequest() *DescribeExportLineRequest

NewDescribeExportLineRequest will create request of DescribeExportLine action.

func (*UWSCClient) NewDescribeExportLineRulesRequest

func (c *UWSCClient) NewDescribeExportLineRulesRequest() *DescribeExportLineRulesRequest

NewDescribeExportLineRulesRequest will create request of DescribeExportLineRules action.

func (*UWSCClient) NewDescribePOPGWRequest added in v0.22.108

func (c *UWSCClient) NewDescribePOPGWRequest() *DescribePOPGWRequest

NewDescribePOPGWRequest will create request of DescribePOPGW action.

func (*UWSCClient) NewListAvailableRegionRequest added in v0.22.108

func (c *UWSCClient) NewListAvailableRegionRequest() *ListAvailableRegionRequest

NewListAvailableRegionRequest will create request of ListAvailableRegion action.

func (*UWSCClient) NewUpdateBWPackageRequest added in v0.22.108

func (c *UWSCClient) NewUpdateBWPackageRequest() *UpdateBWPackageRequest

NewUpdateBWPackageRequest will create request of UpdateBWPackage action.

func (*UWSCClient) NewUpdateCEGatewayRequest added in v0.22.108

func (c *UWSCClient) NewUpdateCEGatewayRequest() *UpdateCEGatewayRequest

NewUpdateCEGatewayRequest will create request of UpdateCEGateway action.

func (*UWSCClient) NewUpdateCETunnelAttributeRequest added in v0.22.108

func (c *UWSCClient) NewUpdateCETunnelAttributeRequest() *UpdateCETunnelAttributeRequest

NewUpdateCETunnelAttributeRequest will create request of UpdateCETunnelAttribute action.

func (*UWSCClient) NewUpdateCETunnelRequest added in v0.22.108

func (c *UWSCClient) NewUpdateCETunnelRequest() *UpdateCETunnelRequest

NewUpdateCETunnelRequest will create request of UpdateCETunnel action.

func (*UWSCClient) NewUpdateExportLineRequest

func (c *UWSCClient) NewUpdateExportLineRequest() *UpdateExportLineRequest

NewUpdateExportLineRequest will create request of UpdateExportLine action.

func (*UWSCClient) NewUpdatePOPGWAttributeRequest added in v0.22.108

func (c *UWSCClient) NewUpdatePOPGWAttributeRequest() *UpdatePOPGWAttributeRequest

NewUpdatePOPGWAttributeRequest will create request of UpdatePOPGWAttribute action.

func (*UWSCClient) NewUpgradeExportLineRequest

func (c *UWSCClient) NewUpgradeExportLineRequest() *UpgradeExportLineRequest

NewUpgradeExportLineRequest will create request of UpgradeExportLine action.

func (*UWSCClient) UpdateBWPackage added in v0.22.108

func (c *UWSCClient) UpdateBWPackage(req *UpdateBWPackageRequest) (*UpdateBWPackageResponse, error)

API: UpdateBWPackage

更新UWSC带宽包

func (*UWSCClient) UpdateCEGateway added in v0.22.108

func (c *UWSCClient) UpdateCEGateway(req *UpdateCEGatewayRequest) (*UpdateCEGatewayResponse, error)

API: UpdateCEGateway

更新CE网关

func (*UWSCClient) UpdateCETunnel added in v0.22.108

func (c *UWSCClient) UpdateCETunnel(req *UpdateCETunnelRequest) (*UpdateCETunnelResponse, error)

API: UpdateCETunnel

更新隧道配置

func (*UWSCClient) UpdateCETunnelAttribute added in v0.22.108

API: UpdateCETunnelAttribute

更新隧道属性

func (*UWSCClient) UpdateExportLine

func (c *UWSCClient) UpdateExportLine(req *UpdateExportLineRequest) (*UpdateExportLineResponse, error)

API: UpdateExportLine

修改加速线路

func (*UWSCClient) UpdatePOPGWAttribute added in v0.22.108

API: UpdatePOPGWAttribute

更新UWAN虚拟路由器属性

func (*UWSCClient) UpgradeExportLine

func (c *UWSCClient) UpgradeExportLine(req *UpgradeExportLineRequest) (*UpgradeExportLineResponse, error)

API: UpgradeExportLine

升级加速线路

type UpdateBWPackageRequest added in v0.22.108

type UpdateBWPackageRequest struct {
	request.CommonBase

	// 带宽包资源ID
	BwId *string `required:"true"`

	// 带宽峰值
	BwMax *float64 `required:"true"`
}

UpdateBWPackageRequest is request schema for UpdateBWPackage action

type UpdateBWPackageResponse added in v0.22.108

type UpdateBWPackageResponse struct {
	response.CommonBase

	// 错误信息
	Message string

	// 请求 ID
	RequestId string
}

UpdateBWPackageResponse is response schema for UpdateBWPackage action

type UpdateCEGatewayRequest added in v0.22.108

type UpdateCEGatewayRequest struct {
	request.CommonBase

	// 资源名称
	Name *string `required:"false"`

	// 公网IP
	PublicIp *string `required:"false"`

	// 备注
	Remark *string `required:"false"`

	// CE网关资源ID
	VPNId *string `required:"true"`
}

UpdateCEGatewayRequest is request schema for UpdateCEGateway action

type UpdateCEGatewayResponse added in v0.22.108

type UpdateCEGatewayResponse struct {
	response.CommonBase

	// 错误消息
	Message string

	// 请求 ID
	RequestId string
}

UpdateCEGatewayResponse is response schema for UpdateCEGateway action

type UpdateCETunnelAttributeRequest added in v0.22.108

type UpdateCETunnelAttributeRequest struct {
	request.CommonBase

	// 资源名称
	Name *string `required:"false"`

	// 备注
	Remark *string `required:"false"`

	// 资源ID
	VPNTunnelId *string `required:"true"`
}

UpdateCETunnelAttributeRequest is request schema for UpdateCETunnelAttribute action

type UpdateCETunnelAttributeResponse added in v0.22.108

type UpdateCETunnelAttributeResponse struct {
	response.CommonBase

	// 错误信息
	Message string

	// 请求 ID
	RequestId string
}

UpdateCETunnelAttributeResponse is response schema for UpdateCETunnelAttribute action

type UpdateCETunnelParamBGPConf added in v0.22.108

type UpdateCETunnelParamBGPConf struct {

	// Ucloud侧的自治系统号。
	LocalAsn *string `required:"false"`

	// 云端BGP地址。必须从BGP隧道网段内分配。
	LocalIp *string `required:"false"`

	// 对端BGP ASN号。
	PeerAsn *string `required:"false"`

	// 用户端BGP地址。必须从BGP隧道网段内分配。
	PeerIp *string `required:"false"`

	// BGP隧道网段。该网段需是一个在 169.254.0.0/16 内的掩码长度为 30 的网段。
	TunnelCidr *string `required:"false"`
}

UpdateCETunnelParamBGPConf is request schema for complex param

type UpdateCETunnelParamDPDConf added in v0.22.108

type UpdateCETunnelParamDPDConf struct {

	// DPD超时后的动作,Enable为1(开启)时有效。可取值为clear(断开)、restart(重试)和 trap(流量触发)
	Action *string `required:"false"`

	// DPD探测间隔时间。dpdEnable为1(开启)时有效。单位为秒,默认为 10
	Delay *string `required:"false"`

	// 是否开启 DPD(对等体存活检测)功能。取值:0(关闭)、1(开启)
	Enabled *string `required:"false"`

	// DPD超时时间。即探测确认对端不存在需要的时间。dpdEnable为1(开启)时有效。单位为秒。取值范围为 30-60(IKEv2 默认为 0)
	Timeout *string `required:"false"`
}

UpdateCETunnelParamDPDConf is request schema for complex param

type UpdateCETunnelParamIKEConf added in v0.22.108

type UpdateCETunnelParamIKEConf struct {

	// IKE 认证算法,取值:"md5", "sha1", "sha2-256"
	AuthenticationAlgorithm *string `required:"true"`

	// DH group,指定IKE交换密钥时使用的DH组。取值:"1", "2", "5", "14", "15", "16"
	DhGroup *string `required:"true"`

	// IKE 加密算法,取值:"aes128", "aes192", "aes256", "aes512", "3des"
	EncryptionAlgorithm *string `required:"true"`

	// IKE 协商模式,主模式(main)/野蛮模式(aggressive),IKE V2时不使用该参数
	ExchangeMode *string `required:"true"`

	// 本端标识,取值:“auto”,“<ip-address>”
	LocalId *string `required:"true"`

	// IKE 共享密钥
	PreSharedKey *string `required:"true"`

	// 对端标识,取值:“auto”,“<ip-address>”
	RemoteId *string `required:"true"`

	// IKE SA的生存周期,取值范围:600-604800
	SALifeTime *string `required:"true"`

	// IKE 版本,取值: "ike v1","ike v2"
	Version *string `required:"true"`
}

UpdateCETunnelParamIKEConf is request schema for complex param

type UpdateCETunnelParamIPSecConf added in v0.22.108

type UpdateCETunnelParamIPSecConf struct {

	// 第二阶段协商的认证算法。取值:md5、sha1、sha2-256。
	AuthenticationAlgorithm *string `required:"true"`

	// 需要和 VPC 互通的本地数据中心侧的网段,用于第二阶段协商。
	CENetwork []string `required:"true"`

	// IPSec 加密算法,取值:"aes128", "aes192", "aes256", "aes512", "3des"
	EncryptionAlgorithm *string `required:"true"`

	// 第二阶段协商使用的 Diffie-Hellman 密钥交换算法。取值:disabled、1、2、5、14、15、16。
	PFSDhGroup *string `required:"true"`

	// IPSec 安全协议,取值:“esp”,“ah”
	Protocol *string `required:"true"`

	// 第二阶段协商出的 SA 的生存周期。单位:秒。取值范围:1200~604800
	SALifeTime *string `required:"true"`

	// 第二阶段协商出的 SA 的生存周期。单位:字节 KB。取值范围:8000 – 20000000,默认使用SA超时时间
	SALifetimeBytes *string `required:"false"`
}

UpdateCETunnelParamIPSecConf is request schema for complex param

type UpdateCETunnelRequest added in v0.22.108

type UpdateCETunnelRequest struct {
	request.CommonBase

	//
	BGPConf *UpdateCETunnelParamBGPConf `required:"false"`

	// IPSec 关闭后动作,枚举值:restart、trap、none
	CloseAction *string `required:"false"`

	//
	DPDConf *UpdateCETunnelParamDPDConf `required:"false"`

	//
	IKEConf *UpdateCETunnelParamIKEConf `required:"false"`

	//
	IPSecConf *UpdateCETunnelParamIPSecConf `required:"false"`

	// 资源ID
	VPNTunnelId *string `required:"true"`
}

UpdateCETunnelRequest is request schema for UpdateCETunnel action

type UpdateCETunnelResponse added in v0.22.108

type UpdateCETunnelResponse struct {
	response.CommonBase

	// 错误信息
	Message string
}

UpdateCETunnelResponse is response schema for UpdateCETunnel action

type UpdateExportLineRequest

type UpdateExportLineRequest struct {
	request.CommonBase

	// 带宽大小(仅自定义套餐支持修改)
	Bandwidth *string `required:"true"`

	// UReach资源ID
	ResourceId *string `required:"true"`
}

UpdateExportLineRequest is request schema for UpdateExportLine action

type UpdateExportLineResponse

type UpdateExportLineResponse struct {
	response.CommonBase

	// 返回信息
	Message string
}

UpdateExportLineResponse is response schema for UpdateExportLine action

type UpdatePOPGWAttributeRequest added in v0.22.108

type UpdatePOPGWAttributeRequest struct {
	request.CommonBase

	// 资源名称
	Name *string `required:"false"`

	// UWAN虚拟路由器资源ID
	PopGwId *string `required:"true"`

	// 备注
	Remark *string `required:"false"`
}

UpdatePOPGWAttributeRequest is request schema for UpdatePOPGWAttribute action

type UpdatePOPGWAttributeResponse added in v0.22.108

type UpdatePOPGWAttributeResponse struct {
	response.CommonBase

	// 错误消息
	Message string

	// 请求 ID
	RequestId string
}

UpdatePOPGWAttributeResponse is response schema for UpdatePOPGWAttribute action

type UpgradeExportLineRequest

type UpgradeExportLineRequest struct {
	request.CommonBase

	// 带宽大小
	Bandwidth *int `required:"false"`

	// 计费模式。枚举值为: Year,按年付费; Month,按月付费; Dynamic,按小时付费(需开启权限)。默认为月付
	ChargeType *string `required:"false"`

	// 代金券ID。请登录用户中心查看
	CouponId *int `required:"false"`

	// 原IP类型:International、BGP、Native、Resident
	IpType *string `required:"true"`

	// 目标套餐类型:2M-Entry、5M-Basic、10M-Enterprise
	PkgType *string `required:"true"`

	// 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末。
	Quantity *int `required:"false"`

	// UReach资源ID
	ResourceId *string `required:"true"`
}

UpgradeExportLineRequest is request schema for UpgradeExportLine action

type UpgradeExportLineResponse

type UpgradeExportLineResponse struct {
	response.CommonBase

	// 返回信息
	Message string
}

UpgradeExportLineResponse is response schema for UpgradeExportLine action

type VPNInfo added in v0.22.108

type VPNInfo struct {

	// 创建时间
	CreateTime int

	// CE网关的接入方式:静态IP(Static),动态IP(Dynamic)
	IpType string

	// CE 名称
	Name string

	// UWAN 实例 ID
	PopGwId string

	// UWAN 资源名称
	PopGwName string

	// 客户自有外网 IP
	PublicIp string

	// 地域
	Region string

	// CE备注
	Remark string

	// 状态(默认为空)
	Status string

	// CE 网关 ID
	VPNId string

	// 子隧道 ID
	VPNTunnelIds []string
}

VPNInfo - CE客户网关信息

type VPNTunnelInfo added in v0.22.108

type VPNTunnelInfo struct {

	// BGP 配置信息
	BGPConf BGPConf

	// 隧道关闭后动作
	CloseAction string

	// 创建时间
	CreateTime int

	// DPD 配置信息
	DPDConf DPDConf

	// IKE 配置信息
	IKEConf IKEConf

	// IPSec 配置信息
	IPSecConf IPSecConf

	// 路由模式
	Mode string

	// 隧道名称
	Name string

	// 地域
	Region string

	// 备注
	Remark string

	// 隧道协商动作
	StartAction string

	// CE 网关 ID
	VPNId string

	// 隧道 ID
	VPNTunnelId string
}

VPNTunnelInfo - 隧道信息

type WhiteListInfo

type WhiteListInfo struct {

	//
	Name string

	//
	Remark string

	//
	RuleType string
}

WhiteListInfo -

Jump to

Keyboard shortcuts

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