unet

package
v0.21.21 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: Apache-2.0 Imports: 4 Imported by: 15

Documentation

Overview

Package unet include resources of ucloud unet product

See also

for detail.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllocateEIPRequest

type AllocateEIPRequest struct {
	request.CommonBase

	// 弹性IP的外网带宽, 单位为Mbps. 共享带宽模式必须指定0M带宽, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: 流量计费[1-300],带宽计费[1-10000]
	Bandwidth *int `required:"true"`

	// 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按需付费(需开启权限); Trial, 试用(需开启权限) 默认为按月付费
	ChargeType *string `required:"false"`

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

	// 弹性IP的名称, 默认为 "EIP"
	Name *string `required:"false"`

	// 弹性IP线路,枚举值:国际线路, International;BGP线路:Bgp。使用BGP线路的地域:北京二、上海金融云、上海二、广州等,其他地域均使用国际线路。
	OperatorName *string `required:"true"`

	// 弹性IP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; "ShareBandwidth",共享带宽模式. 默认为 "Bandwidth".“PostAccurateBandwidth”:带宽后付费模式
	PayMode *string `required:"false"`

	// 购买的时长, 默认: 1
	Quantity *int `required:"false"`

	// 弹性IP的备注, 默认为空
	Remark *string `required:"false"`

	// 绑定的共享带宽Id,仅当PayMode为ShareBandwidth时有效
	ShareBandwidthId *string `required:"false"`

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

AllocateEIPRequest is request schema for AllocateEIP action

type AllocateEIPResponse

type AllocateEIPResponse struct {
	response.CommonBase

	// 申请到的EIP资源详情 参见 UnetAllocateEIPSet
	EIPSet []UnetAllocateEIPSet
}

AllocateEIPResponse is response schema for AllocateEIP action

type AllocateShareBandwidthRequest

type AllocateShareBandwidthRequest struct {
	request.CommonBase

	// 付费方式:Year 按年,Month 按月,Dynamic 按时;
	ChargeType *string `required:"true"`

	// 共享带宽类型,IPv4或者IPv6,不传默认IPv4
	IPVersion *string `required:"false"`

	// 共享带宽名字
	Name *string `required:"true"`

	// 购买时长
	Quantity *int `required:"false"`

	// 共享带宽值
	ShareBandwidth *int `required:"true"`

	// 【该字段已废弃,请谨慎使用】
	ShareBandwidthGuarantee *int `required:"false" deprecated:"true"`
}

AllocateShareBandwidthRequest is request schema for AllocateShareBandwidth action

type AllocateShareBandwidthResponse

type AllocateShareBandwidthResponse struct {
	response.CommonBase

	// 共享带宽资源Id
	ShareBandwidthId string
}

AllocateShareBandwidthResponse is response schema for AllocateShareBandwidth action

type AssociateEIPWithShareBandwidthRequest

type AssociateEIPWithShareBandwidthRequest struct {
	request.CommonBase

	// 要加入共享带宽的EIP的资源Id
	EIPIds []string `required:"true"`

	// 共享带宽类型,IPv4或者IPv6,不传默认IPv4
	IPVersion *string `required:"false"`

	// 共享带宽ID
	ShareBandwidthId *string `required:"true"`
}

AssociateEIPWithShareBandwidthRequest is request schema for AssociateEIPWithShareBandwidth action

type AssociateEIPWithShareBandwidthResponse

type AssociateEIPWithShareBandwidthResponse struct {
	response.CommonBase
}

AssociateEIPWithShareBandwidthResponse is response schema for AssociateEIPWithShareBandwidth action

type BindEIPRequest

type BindEIPRequest struct {
	request.CommonBase

	// 弹性IP的资源Id
	EIPId *string `required:"true"`

	// 弹性IP请求绑定的资源ID
	ResourceId *string `required:"true"`

	// 弹性IP请求绑定的资源类型, 枚举值为: uhost: 云主机; ulb, 负载均衡器 upm: 物理机; hadoophost: 大数据集群;fortresshost:堡垒机;udockhost:容器;udhost:私有专区主机;natgw:natgw;udb:udb;vpngw:ipsec vpn;ucdr:云灾备;dbaudit:数据库审计;uni:虚拟网卡;cube,Cube容器。如果EIP为普通带宽计费,且带宽值高于2G,则只允许绑定在快杰型云主机和ULB
	ResourceType *string `required:"true"`
}

BindEIPRequest is request schema for BindEIP action

type BindEIPResponse

type BindEIPResponse struct {
	response.CommonBase
}

BindEIPResponse is response schema for BindEIP action

type CreateBandwidthPackageRequest

type CreateBandwidthPackageRequest struct {
	request.CommonBase

	// 带宽大小(单位Mbps), 取值范围[2,800] (最大值受地域限制)
	Bandwidth *int `required:"true"`

	// 代金券ID
	CouponId *string `required:"false"`

	// 所绑定弹性IP的资源ID
	EIPId *string `required:"true"`

	// 生效时间, 格式为 Unix timestamp, 默认为立即开通
	EnableTime *int `required:"false"`

	// 带宽包有效时长, 取值范围为大于0的整数, 即该带宽包在EnableTime到 EnableTime+TimeRange时间段内生效
	TimeRange *int `required:"true"`
}

CreateBandwidthPackageRequest is request schema for CreateBandwidthPackage action

type CreateBandwidthPackageResponse

type CreateBandwidthPackageResponse struct {
	response.CommonBase

	// 所创建带宽包的资源ID
	BandwidthPackageId string
}

CreateBandwidthPackageResponse is response schema for CreateBandwidthPackage action

type CreateFirewallRequest

type CreateFirewallRequest struct {
	request.CommonBase

	// 防火墙名称
	Name *string `required:"true"`

	// 防火墙描述,默认为空
	Remark *string `required:"false"`

	// 防火墙规则,例如:TCP|22|192.168.1.1/22|DROP|LOW|禁用22端口,第一个参数代表协议:第二个参数代表端口号,第三个参数为ip,第四个参数为ACCEPT(接受)和DROP(拒绝),第五个参数优先级:HIGH(高),MEDIUM(中),LOW(低),第六个参数为该条规则的自定义备注,bj1不支持添加备注
	Rule []string `required:"true"`

	// 防火墙业务组,默认为Default
	Tag *string `required:"false"`
}

CreateFirewallRequest is request schema for CreateFirewall action

type CreateFirewallResponse

type CreateFirewallResponse struct {
	response.CommonBase

	// 防火墙ID
	FWId string
}

CreateFirewallResponse is response schema for CreateFirewall action

type DeleteBandwidthPackageRequest

type DeleteBandwidthPackageRequest struct {
	request.CommonBase

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

DeleteBandwidthPackageRequest is request schema for DeleteBandwidthPackage action

type DeleteBandwidthPackageResponse

type DeleteBandwidthPackageResponse struct {
	response.CommonBase
}

DeleteBandwidthPackageResponse is response schema for DeleteBandwidthPackage action

type DeleteFirewallRequest

type DeleteFirewallRequest struct {
	request.CommonBase

	// 防火墙资源ID
	FWId *string `required:"true"`
}

DeleteFirewallRequest is request schema for DeleteFirewall action

type DeleteFirewallResponse

type DeleteFirewallResponse struct {
	response.CommonBase
}

DeleteFirewallResponse is response schema for DeleteFirewall action

type DescribeBandwidthPackageRequest

type DescribeBandwidthPackageRequest struct {
	request.CommonBase

	// 返回数据分页值, 取值范围为 [0,10000000] 之间的整数, 默认为20
	Limit *int `required:"false"`

	// 返回数据偏移量, 默认为0
	Offset *int `required:"false"`
}

DescribeBandwidthPackageRequest is request schema for DescribeBandwidthPackage action

type DescribeBandwidthPackageResponse

type DescribeBandwidthPackageResponse struct {
	response.CommonBase

	// 带宽包详细信息, 参见 UnetBandwidthPackageSet
	DataSets []UnetBandwidthPackageSet

	// 满足条件的带宽包总数
	TotalCount int
}

DescribeBandwidthPackageResponse is response schema for DescribeBandwidthPackage action

type DescribeBandwidthUsageRequest

type DescribeBandwidthUsageRequest struct {
	request.CommonBase

	// 弹性IP的资源Id. 如果为空, 则返回当前 Region中符合条件的所有EIP的带宽用量, n为自然数
	EIPIds []string `required:"false"`

	// 返回数据分页值, 取值范围为 [0,10000000] 之间的整数, 默认为20
	Limit *int `required:"false"`

	// 返回数据偏移量, 默认为0
	OffSet *int `required:"false"`
}

DescribeBandwidthUsageRequest is request schema for DescribeBandwidthUsage action

type DescribeBandwidthUsageResponse

type DescribeBandwidthUsageResponse struct {
	response.CommonBase

	// 单个弹性IP的带宽用量详细信息, 详见 UnetBandwidthUsageEIPSet, 如没有弹性IP资源则没有该返回值。
	EIPSet []UnetBandwidthUsageEIPSet

	// EIPSet中的元素个数
	TotalCount int
}

DescribeBandwidthUsageResponse is response schema for DescribeBandwidthUsage action

type DescribeEIPRequest

type DescribeEIPRequest struct {
	request.CommonBase

	// 弹性IP的资源ID如果为空, 则返回当前 Region中符合条件的的所有EIP
	EIPIds []string `required:"false"`

	// IP地址,支持通过ip查询,如果ip与EIP都传,会取并集查询
	IPs []string `required:"false"`

	// 数据分页值, 默认为20
	Limit *int `required:"false"`

	// 数据偏移量, 默认为0
	Offset *int `required:"false"`
}

DescribeEIPRequest is request schema for DescribeEIP action

type DescribeEIPResponse

type DescribeEIPResponse struct {
	response.CommonBase

	// 弹性IP列表, 每项参数详见 UnetEIPSet
	EIPSet []UnetEIPSet

	// 满足条件的弹性IP带宽总和, 单位Mbps
	TotalBandwidth int

	// 满足条件的弹性IP总数
	TotalCount int

	// 未绑定的弹性IP总数
	UnbindCount int
}

DescribeEIPResponse is response schema for DescribeEIP action

type DescribeFirewallRequest

type DescribeFirewallRequest struct {
	request.CommonBase

	// 防火墙ID,默认为返回所有防火墙
	FWId *string `required:"false"`

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

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

	// 绑定防火墙组的资源ID
	ResourceId *string `required:"false"`

	// 绑定防火墙组的资源类型,默认为全部资源类型。枚举值为:"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计.
	ResourceType *string `required:"false"`
}

DescribeFirewallRequest is request schema for DescribeFirewall action

type DescribeFirewallResourceRequest

type DescribeFirewallResourceRequest struct {
	request.CommonBase

	// 防火墙ID
	FWId *string `required:"true"`

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

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

DescribeFirewallResourceRequest is request schema for DescribeFirewallResource action

type DescribeFirewallResourceResponse

type DescribeFirewallResourceResponse struct {
	response.CommonBase

	// 资源列表,见 ResourceSet
	ResourceSet []ResourceSet

	// 绑定资源总数
	TotalCount int
}

DescribeFirewallResourceResponse is response schema for DescribeFirewallResource action

type DescribeFirewallResponse

type DescribeFirewallResponse struct {
	response.CommonBase

	// 获取的防火墙组详细信息 参见 FirewallDataSet
	DataSet []FirewallDataSet

	//
	TotalCount int
}

DescribeFirewallResponse is response schema for DescribeFirewall action

type DescribeShareBandwidthRequest

type DescribeShareBandwidthRequest struct {
	request.CommonBase

	// 需要返回的共享带宽Id
	ShareBandwidthIds []string `required:"false"`
}

DescribeShareBandwidthRequest is request schema for DescribeShareBandwidth action

type DescribeShareBandwidthResponse

type DescribeShareBandwidthResponse struct {
	response.CommonBase

	// 共享带宽信息组 参见 UnetShareBandwidthSet
	DataSet []UnetShareBandwidthSet

	// 符合条件的共享带宽总数,大于等于返回DataSet长度
	TotalCount int
}

DescribeShareBandwidthResponse is response schema for DescribeShareBandwidth action

type DisassociateEIPWithShareBandwidthRequest

type DisassociateEIPWithShareBandwidthRequest struct {
	request.CommonBase

	// 移出共享带宽后,EIP的外网带宽, 单位为Mbps. 各地域带宽范围如下:  流量计费[1-200],带宽计费[1-800]
	Bandwidth *int `required:"true"`

	// EIP的资源Id;默认移出该共享带宽下所有的EIP
	EIPIds []string `required:"false"`

	// 共享带宽类型,IPv4或者IPv6,不传默认IPv4
	IPVersion *string `required:"false"`

	// 移出共享带宽后,EIP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费;  默认为 "Bandwidth".
	PayMode *string `required:"false"`

	// 共享带宽ID
	ShareBandwidthId *string `required:"true"`
}

DisassociateEIPWithShareBandwidthRequest is request schema for DisassociateEIPWithShareBandwidth action

type DisassociateEIPWithShareBandwidthResponse

type DisassociateEIPWithShareBandwidthResponse struct {
	response.CommonBase
}

DisassociateEIPWithShareBandwidthResponse is response schema for DisassociateEIPWithShareBandwidth action

type EIPAddrSet

type EIPAddrSet struct {

	// 弹性IP地址
	IP string

	// 运营商信息, 枚举值为:  BGP: BGP; International: 国际.
	OperatorName string
}

EIPAddrSet - DescribeBandwidthPackage

type EIPPayModeSet

type EIPPayModeSet struct {

	// EIP的资源ID
	EIPId string

	// EIP的计费模式. 枚举值为:Bandwidth, 带宽计费;Traffic, 流量计费; "ShareBandwidth",共享带宽模式
	EIPPayMode string
}

EIPPayModeSet - GetEIPPayModeEIP

type EIPPriceDetailSet

type EIPPriceDetailSet struct {

	// 弹性IP付费方式
	ChargeType string

	// 弹性IP的原价,单位“元”
	OriginalPrice float64

	// 购买弹性IP的实际价格, 单位"元"
	Price float64

	// 资源有效期, 以Unix Timestamp表示
	PurchaseValue int
}

EIPPriceDetailSet - GetEIPPrice

type EIPSetData

type EIPSetData struct {

	// EIP带宽值
	Bandwidth int

	// EIP的IP信息,详情见EIPAddrSet
	EIPAddr []EIPAddrSet

	// EIP资源Id
	EIPId string
}

EIPSetData - describeShareBandwidth

type FirewallDataSet

type FirewallDataSet struct {

	// 防火墙组创建时间,格式为Unix Timestamp
	CreateTime int

	// 防火墙ID
	FWId string

	// 安全组ID(即将废弃)
	GroupId string

	// 防火墙名称
	Name string

	// 防火墙备注
	Remark string

	// 防火墙绑定资源数量
	ResourceCount int

	// 防火墙组中的规则列表,参见 FirewallRuleSet
	Rule []FirewallRuleSet

	// 防火墙业务组
	Tag string

	// 防火墙组类型,枚举值为: "user defined", 用户自定义防火墙; "recommend web", 默认Web防火墙; "recommend non web", 默认非Web防火墙
	Type string
}

FirewallDataSet - DescribeFirewall

type FirewallRuleSet

type FirewallRuleSet struct {

	// 目标端口
	DstPort string

	// 优先级
	Priority string

	// 协议类型
	ProtocolType string

	// 防火墙规则备注
	Remark string

	// 防火墙动作
	RuleAction string

	// 源地址
	SrcIP string
}

FirewallRuleSet - DescribeFirewall

type GetEIPPayModeRequest

type GetEIPPayModeRequest struct {
	request.CommonBase

	// 弹性IP的资源Id
	EIPId []string `required:"true"`
}

GetEIPPayModeRequest is request schema for GetEIPPayMode action

type GetEIPPayModeResponse

type GetEIPPayModeResponse struct {
	response.CommonBase

	// EIP的计费模式, 参见 EIPPayModeSet
	EIPPayMode []EIPPayModeSet
}

GetEIPPayModeResponse is response schema for GetEIPPayMode action

type GetEIPPriceRequest

type GetEIPPriceRequest struct {
	request.CommonBase

	// 弹性IP的外网带宽, 单位为Mbps, 范围 [0-800]
	Bandwidth *int `required:"true"`

	// 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按时付费; 默认为获取三种价格
	ChargeType *string `required:"false"`

	// 弹性IP的线路如下: 国际: International BGP: Bgp 各地域允许的线路参数如下: cn-sh1: Bgp cn-sh2: Bgp cn-gd: Bgp cn-bj1: Bgp cn-bj2: Bgp hk: International us-ca: International th-bkk: International kr-seoul:International us-ws:International ge-fra:International sg:International tw-kh:International.其他海外线路均为 International,泉州为移动单线cn-qz:ChinaMobile
	OperatorName *string `required:"true"`

	// 弹性IP计费方式r. 枚举值为: Traffic, 流量计费; Bandwidth, 带宽计费; "ShareBandwidth",共享带宽模式. 默认为Bandwidth
	PayMode *string `required:"false"`

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

GetEIPPriceRequest is request schema for GetEIPPrice action

type GetEIPPriceResponse

type GetEIPPriceResponse struct {
	response.CommonBase

	// 弹性IP价格详情 详情见 EIPPriceDetailSet
	PriceSet []EIPPriceDetailSet
}

GetEIPPriceResponse is response schema for GetEIPPrice action

type GetEIPUpgradePriceRequest

type GetEIPUpgradePriceRequest struct {
	request.CommonBase

	// 弹性IP的外网带宽, 单位为Mbps, 范围 [1-800]
	Bandwidth *int `required:"true"`

	// 弹性IP的资源ID
	EIPId *string `required:"true"`
}

GetEIPUpgradePriceRequest is request schema for GetEIPUpgradePrice action

type GetEIPUpgradePriceResponse

type GetEIPUpgradePriceResponse struct {
	response.CommonBase

	// 调整带宽后的EIP价格, 单位为"元", 如需退费此处为负值
	Price float64
}

GetEIPUpgradePriceResponse is response schema for GetEIPUpgradePrice action

type GrantFirewallRequest

type GrantFirewallRequest struct {
	request.CommonBase

	// 防火墙资源ID
	FWId *string `required:"true"`

	// 所应用资源ID
	ResourceId *string `required:"true"`

	// 绑定防火墙组的资源类型,默认为全部资源类型。枚举值为:"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计.
	ResourceType *string `required:"true"`
}

GrantFirewallRequest is request schema for GrantFirewall action

type GrantFirewallResponse

type GrantFirewallResponse struct {
	response.CommonBase
}

GrantFirewallResponse is response schema for GrantFirewall action

type ModifyEIPBandwidthRequest

type ModifyEIPBandwidthRequest struct {
	request.CommonBase

	// 弹性IP的外网带宽, 单位为Mbps. 各地域的带宽值范围如下:流量计费[1-200],带宽计费[1-800]
	Bandwidth *int `required:"true"`

	// 弹性IP的资源ID
	EIPId *string `required:"true"`
}

ModifyEIPBandwidthRequest is request schema for ModifyEIPBandwidth action

type ModifyEIPBandwidthResponse

type ModifyEIPBandwidthResponse struct {
	response.CommonBase
}

ModifyEIPBandwidthResponse is response schema for ModifyEIPBandwidth action

type ModifyEIPWeightRequest

type ModifyEIPWeightRequest struct {
	request.CommonBase

	// 弹性IP的资源ID
	EIPId *string `required:"true"`

	// 外网出口权重, 范围[0-100] 取值为0时, 该弹性IP不会被使用. 取值为100时, 同主机下只会使用这个弹性IP,其他弹性IP不会被使用 请勿将多个绑定在同一资源的弹性IP设置为相同权重
	Weight *int `required:"true"`
}

ModifyEIPWeightRequest is request schema for ModifyEIPWeight action

type ModifyEIPWeightResponse

type ModifyEIPWeightResponse struct {
	response.CommonBase
}

ModifyEIPWeightResponse is response schema for ModifyEIPWeight action

type ReleaseEIPRequest

type ReleaseEIPRequest struct {
	request.CommonBase

	// 弹性IP的资源ID
	EIPId *string `required:"true"`
}

ReleaseEIPRequest is request schema for ReleaseEIP action

type ReleaseEIPResponse

type ReleaseEIPResponse struct {
	response.CommonBase
}

ReleaseEIPResponse is response schema for ReleaseEIP action

type ReleaseShareBandwidthRequest

type ReleaseShareBandwidthRequest struct {
	request.CommonBase

	// 关闭共享带宽后,各EIP恢复为的带宽值
	EIPBandwidth *int `required:"true"`

	// 默认为 Bandwidth 带宽计费
	PayMode *string `required:"false"`

	// 共享带宽ID
	ShareBandwidthId *string `required:"true"`
}

ReleaseShareBandwidthRequest is request schema for ReleaseShareBandwidth action

type ReleaseShareBandwidthResponse

type ReleaseShareBandwidthResponse struct {
	response.CommonBase
}

ReleaseShareBandwidthResponse is response schema for ReleaseShareBandwidth action

type ResizeShareBandwidthRequest

type ResizeShareBandwidthRequest struct {
	request.CommonBase

	// 带宽值,单位为Mb,范围 [20-5000] (最大值受地域限制)
	ShareBandwidth *int `required:"true"`

	// 共享带宽的Id
	ShareBandwidthId *string `required:"true"`
}

ResizeShareBandwidthRequest is request schema for ResizeShareBandwidth action

type ResizeShareBandwidthResponse

type ResizeShareBandwidthResponse struct {
	response.CommonBase
}

ResizeShareBandwidthResponse is response schema for ResizeShareBandwidth action

type ResourceSet

type ResourceSet struct {

	// 名称
	Name string

	// 内网IP
	PrivateIP string

	// 备注
	Remark string

	// 绑定该防火墙的资源id
	ResourceID string

	// 绑定防火墙组的资源类型。"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计.
	ResourceType string

	// 状态
	Status int

	// 业务组
	Tag string

	// 可用区
	Zone int
}

ResourceSet - 资源信息

type SetEIPPayModeRequest

type SetEIPPayModeRequest struct {
	request.CommonBase

	// 调整的目标带宽值, 单位Mbps. 各地域的带宽值范围如下: 流量计费[1-200],其余情况[1-800]
	Bandwidth *int `required:"true"`

	// 弹性IP的资源Id
	EIPId *string `required:"true"`

	// 计费模式. 枚举值:"Traffic", 流量计费模式; "Bandwidth", 带宽计费模式
	PayMode *string `required:"true"`
}

SetEIPPayModeRequest is request schema for SetEIPPayMode action

type SetEIPPayModeResponse

type SetEIPPayModeResponse struct {
	response.CommonBase
}

SetEIPPayModeResponse is response schema for SetEIPPayMode action

type ShareBandwidthSet

type ShareBandwidthSet struct {

	// 共享带宽带宽值
	ShareBandwidth int

	// 共享带宽ID
	ShareBandwidthId string

	// 共享带宽的资源名称
	ShareBandwidthName string
}

ShareBandwidthSet - DescribeEIP

type UNetClient

type UNetClient struct {
	*ucloud.Client
}

UNetClient is the client of UNet

func NewClient

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

NewClient will return a instance of UNetClient

func (*UNetClient) AllocateEIP

func (c *UNetClient) AllocateEIP(req *AllocateEIPRequest) (*AllocateEIPResponse, error)

API: AllocateEIP

根据提供信息, 申请弹性IP

func (*UNetClient) AllocateShareBandwidth

API: AllocateShareBandwidth

开通共享带宽

func (*UNetClient) AssociateEIPWithShareBandwidth

API: AssociateEIPWithShareBandwidth

将EIP加入共享带宽

func (*UNetClient) BindEIP

func (c *UNetClient) BindEIP(req *BindEIPRequest) (*BindEIPResponse, error)

API: BindEIP

将尚未使用的弹性IP绑定到指定的资源

func (*UNetClient) CreateBandwidthPackage

API: CreateBandwidthPackage

为非共享带宽模式下, 已绑定资源实例的带宽计费弹性IP附加临时带宽包

func (*UNetClient) CreateFirewall

func (c *UNetClient) CreateFirewall(req *CreateFirewallRequest) (*CreateFirewallResponse, error)

API: CreateFirewall

创建防火墙

func (*UNetClient) DeleteBandwidthPackage

API: DeleteBandwidthPackage

删除弹性IP上已附加带宽包

func (*UNetClient) DeleteFirewall

func (c *UNetClient) DeleteFirewall(req *DeleteFirewallRequest) (*DeleteFirewallResponse, error)

API: DeleteFirewall

删除防火墙

func (*UNetClient) DescribeBandwidthPackage

API: DescribeBandwidthPackage

获取某地域下的带宽包信息

func (*UNetClient) DescribeBandwidthUsage

API: DescribeBandwidthUsage

获取带宽用量信息

func (*UNetClient) DescribeEIP

func (c *UNetClient) DescribeEIP(req *DescribeEIPRequest) (*DescribeEIPResponse, error)

API: DescribeEIP

获取弹性IP信息

func (*UNetClient) DescribeFirewall

func (c *UNetClient) DescribeFirewall(req *DescribeFirewallRequest) (*DescribeFirewallResponse, error)

API: DescribeFirewall

获取防火墙组信息

func (*UNetClient) DescribeFirewallResource

API: DescribeFirewallResource

获取防火墙组所绑定资源的外网IP

func (*UNetClient) DescribeShareBandwidth

API: DescribeShareBandwidth

获取共享带宽信息

func (*UNetClient) DisassociateEIPWithShareBandwidth

API: DisassociateEIPWithShareBandwidth

将EIP移出共享带宽

func (*UNetClient) GetEIPPayMode

func (c *UNetClient) GetEIPPayMode(req *GetEIPPayModeRequest) (*GetEIPPayModeResponse, error)

API: GetEIPPayMode

获取弹性IP计费模式

func (*UNetClient) GetEIPPrice

func (c *UNetClient) GetEIPPrice(req *GetEIPPriceRequest) (*GetEIPPriceResponse, error)

API: GetEIPPrice

获取弹性IP价格

func (*UNetClient) GetEIPUpgradePrice

func (c *UNetClient) GetEIPUpgradePrice(req *GetEIPUpgradePriceRequest) (*GetEIPUpgradePriceResponse, error)

API: GetEIPUpgradePrice

获取弹性IP带宽改动价格

func (*UNetClient) GrantFirewall

func (c *UNetClient) GrantFirewall(req *GrantFirewallRequest) (*GrantFirewallResponse, error)

API: GrantFirewall

将防火墙应用到资源上

func (*UNetClient) ModifyEIPBandwidth

func (c *UNetClient) ModifyEIPBandwidth(req *ModifyEIPBandwidthRequest) (*ModifyEIPBandwidthResponse, error)

API: ModifyEIPBandwidth

调整弹性IP的外网带宽

func (*UNetClient) ModifyEIPWeight

func (c *UNetClient) ModifyEIPWeight(req *ModifyEIPWeightRequest) (*ModifyEIPWeightResponse, error)

API: ModifyEIPWeight

修改弹性IP的外网出口权重

func (*UNetClient) NewAllocateEIPRequest

func (c *UNetClient) NewAllocateEIPRequest() *AllocateEIPRequest

NewAllocateEIPRequest will create request of AllocateEIP action.

func (*UNetClient) NewAllocateShareBandwidthRequest

func (c *UNetClient) NewAllocateShareBandwidthRequest() *AllocateShareBandwidthRequest

NewAllocateShareBandwidthRequest will create request of AllocateShareBandwidth action.

func (*UNetClient) NewAssociateEIPWithShareBandwidthRequest

func (c *UNetClient) NewAssociateEIPWithShareBandwidthRequest() *AssociateEIPWithShareBandwidthRequest

NewAssociateEIPWithShareBandwidthRequest will create request of AssociateEIPWithShareBandwidth action.

func (*UNetClient) NewBindEIPRequest

func (c *UNetClient) NewBindEIPRequest() *BindEIPRequest

NewBindEIPRequest will create request of BindEIP action.

func (*UNetClient) NewCreateBandwidthPackageRequest

func (c *UNetClient) NewCreateBandwidthPackageRequest() *CreateBandwidthPackageRequest

NewCreateBandwidthPackageRequest will create request of CreateBandwidthPackage action.

func (*UNetClient) NewCreateFirewallRequest

func (c *UNetClient) NewCreateFirewallRequest() *CreateFirewallRequest

NewCreateFirewallRequest will create request of CreateFirewall action.

func (*UNetClient) NewDeleteBandwidthPackageRequest

func (c *UNetClient) NewDeleteBandwidthPackageRequest() *DeleteBandwidthPackageRequest

NewDeleteBandwidthPackageRequest will create request of DeleteBandwidthPackage action.

func (*UNetClient) NewDeleteFirewallRequest

func (c *UNetClient) NewDeleteFirewallRequest() *DeleteFirewallRequest

NewDeleteFirewallRequest will create request of DeleteFirewall action.

func (*UNetClient) NewDescribeBandwidthPackageRequest

func (c *UNetClient) NewDescribeBandwidthPackageRequest() *DescribeBandwidthPackageRequest

NewDescribeBandwidthPackageRequest will create request of DescribeBandwidthPackage action.

func (*UNetClient) NewDescribeBandwidthUsageRequest

func (c *UNetClient) NewDescribeBandwidthUsageRequest() *DescribeBandwidthUsageRequest

NewDescribeBandwidthUsageRequest will create request of DescribeBandwidthUsage action.

func (*UNetClient) NewDescribeEIPRequest

func (c *UNetClient) NewDescribeEIPRequest() *DescribeEIPRequest

NewDescribeEIPRequest will create request of DescribeEIP action.

func (*UNetClient) NewDescribeFirewallRequest

func (c *UNetClient) NewDescribeFirewallRequest() *DescribeFirewallRequest

NewDescribeFirewallRequest will create request of DescribeFirewall action.

func (*UNetClient) NewDescribeFirewallResourceRequest

func (c *UNetClient) NewDescribeFirewallResourceRequest() *DescribeFirewallResourceRequest

NewDescribeFirewallResourceRequest will create request of DescribeFirewallResource action.

func (*UNetClient) NewDescribeShareBandwidthRequest

func (c *UNetClient) NewDescribeShareBandwidthRequest() *DescribeShareBandwidthRequest

NewDescribeShareBandwidthRequest will create request of DescribeShareBandwidth action.

func (*UNetClient) NewDisassociateEIPWithShareBandwidthRequest

func (c *UNetClient) NewDisassociateEIPWithShareBandwidthRequest() *DisassociateEIPWithShareBandwidthRequest

NewDisassociateEIPWithShareBandwidthRequest will create request of DisassociateEIPWithShareBandwidth action.

func (*UNetClient) NewGetEIPPayModeRequest

func (c *UNetClient) NewGetEIPPayModeRequest() *GetEIPPayModeRequest

NewGetEIPPayModeRequest will create request of GetEIPPayMode action.

func (*UNetClient) NewGetEIPPriceRequest

func (c *UNetClient) NewGetEIPPriceRequest() *GetEIPPriceRequest

NewGetEIPPriceRequest will create request of GetEIPPrice action.

func (*UNetClient) NewGetEIPUpgradePriceRequest

func (c *UNetClient) NewGetEIPUpgradePriceRequest() *GetEIPUpgradePriceRequest

NewGetEIPUpgradePriceRequest will create request of GetEIPUpgradePrice action.

func (*UNetClient) NewGrantFirewallRequest

func (c *UNetClient) NewGrantFirewallRequest() *GrantFirewallRequest

NewGrantFirewallRequest will create request of GrantFirewall action.

func (*UNetClient) NewModifyEIPBandwidthRequest

func (c *UNetClient) NewModifyEIPBandwidthRequest() *ModifyEIPBandwidthRequest

NewModifyEIPBandwidthRequest will create request of ModifyEIPBandwidth action.

func (*UNetClient) NewModifyEIPWeightRequest

func (c *UNetClient) NewModifyEIPWeightRequest() *ModifyEIPWeightRequest

NewModifyEIPWeightRequest will create request of ModifyEIPWeight action.

func (*UNetClient) NewReleaseEIPRequest

func (c *UNetClient) NewReleaseEIPRequest() *ReleaseEIPRequest

NewReleaseEIPRequest will create request of ReleaseEIP action.

func (*UNetClient) NewReleaseShareBandwidthRequest

func (c *UNetClient) NewReleaseShareBandwidthRequest() *ReleaseShareBandwidthRequest

NewReleaseShareBandwidthRequest will create request of ReleaseShareBandwidth action.

func (*UNetClient) NewResizeShareBandwidthRequest

func (c *UNetClient) NewResizeShareBandwidthRequest() *ResizeShareBandwidthRequest

NewResizeShareBandwidthRequest will create request of ResizeShareBandwidth action.

func (*UNetClient) NewSetEIPPayModeRequest

func (c *UNetClient) NewSetEIPPayModeRequest() *SetEIPPayModeRequest

NewSetEIPPayModeRequest will create request of SetEIPPayMode action.

func (*UNetClient) NewUnBindEIPRequest

func (c *UNetClient) NewUnBindEIPRequest() *UnBindEIPRequest

NewUnBindEIPRequest will create request of UnBindEIP action.

func (*UNetClient) NewUpdateEIPAttributeRequest

func (c *UNetClient) NewUpdateEIPAttributeRequest() *UpdateEIPAttributeRequest

NewUpdateEIPAttributeRequest will create request of UpdateEIPAttribute action.

func (*UNetClient) NewUpdateFirewallAttributeRequest

func (c *UNetClient) NewUpdateFirewallAttributeRequest() *UpdateFirewallAttributeRequest

NewUpdateFirewallAttributeRequest will create request of UpdateFirewallAttribute action.

func (*UNetClient) NewUpdateFirewallRequest

func (c *UNetClient) NewUpdateFirewallRequest() *UpdateFirewallRequest

NewUpdateFirewallRequest will create request of UpdateFirewall action.

func (*UNetClient) ReleaseEIP

func (c *UNetClient) ReleaseEIP(req *ReleaseEIPRequest) (*ReleaseEIPResponse, error)

API: ReleaseEIP

释放弹性IP资源, 所释放弹性IP必须为非绑定状态.

func (*UNetClient) ReleaseShareBandwidth

API: ReleaseShareBandwidth

关闭共享带宽

func (*UNetClient) ResizeShareBandwidth

API: ResizeShareBandwidth

调整共享带宽的带宽值

func (*UNetClient) SetEIPPayMode

func (c *UNetClient) SetEIPPayMode(req *SetEIPPayModeRequest) (*SetEIPPayModeResponse, error)

API: SetEIPPayMode

设置弹性IP计费模式, 切换时会涉及付费/退费.

func (*UNetClient) UnBindEIP

func (c *UNetClient) UnBindEIP(req *UnBindEIPRequest) (*UnBindEIPResponse, error)

API: UnBindEIP

将弹性IP从资源上解绑

func (*UNetClient) UpdateEIPAttribute

func (c *UNetClient) UpdateEIPAttribute(req *UpdateEIPAttributeRequest) (*UpdateEIPAttributeResponse, error)

API: UpdateEIPAttribute

更新弹性IP名称,业务组,备注等属性字段

func (*UNetClient) UpdateFirewall

func (c *UNetClient) UpdateFirewall(req *UpdateFirewallRequest) (*UpdateFirewallResponse, error)

API: UpdateFirewall

更新防火墙规则

func (*UNetClient) UpdateFirewallAttribute

API: UpdateFirewallAttribute

更新防火墙规则

type UnBindEIPRequest

type UnBindEIPRequest struct {
	request.CommonBase

	// 弹性IP的资源Id
	EIPId *string `required:"true"`

	// 弹性IP请求解绑的资源ID
	ResourceId *string `required:"true"`

	// 弹性IP请求解绑的资源类型, 枚举值为: uhost: 云主机; ulb, 负载均衡器 upm: 物理机; hadoophost: 大数据集群;fortresshost:堡垒机;udockhost:容器;udhost:私有专区主机;natgw:NAT网关;udb:udb;vpngw:ipsec vpn;ucdr:云灾备;dbaudit:数据库审计;
	ResourceType *string `required:"true"`
}

UnBindEIPRequest is request schema for UnBindEIP action

type UnBindEIPResponse

type UnBindEIPResponse struct {
	response.CommonBase
}

UnBindEIPResponse is response schema for UnBindEIP action

type UnetAllocateEIPSet

type UnetAllocateEIPSet struct {

	// 申请到的IPv4地址.
	EIPAddr []UnetEIPAddrSet

	// 申请到的EIP资源ID
	EIPId string
}

UnetAllocateEIPSet - AllocateEIP

type UnetBandwidthPackageSet

type UnetBandwidthPackageSet struct {

	// 带宽包的临时带宽值, 单位Mbps
	Bandwidth int

	// 带宽包的资源ID
	BandwidthPackageId string

	// 创建时间, 格式为 Unix Timestamp
	CreateTime int

	// 失效时间, 格式为 Unix Timestamp
	DisableTime int

	// 带宽包所绑定弹性IP的详细信息,只有当EIPId对应双线IP时, EIPAddr的长度为2, 其他情况, EIPAddr长度均为1.参见 EIPAddrSet
	EIPAddr []EIPAddrSet

	// 带宽包所绑定弹性IP的资源ID
	EIPId string

	// 生效时间, 格式为 Unix Timestamp
	EnableTime int
}

UnetBandwidthPackageSet - DescribeBandwidthPackage

type UnetBandwidthUsageEIPSet

type UnetBandwidthUsageEIPSet struct {

	// 最近5分钟带宽用量, 单位Mbps
	CurBandwidth float64

	// 弹性IP资源ID
	EIPId string
}

UnetBandwidthUsageEIPSet - DescribeBandwidthUsage

type UnetEIPAddrSet

type UnetEIPAddrSet struct {

	// IP地址
	IP string

	// 运营商信息如: 国际: International, BGP: BGP
	OperatorName string
}

UnetEIPAddrSet - AllocateEIP

type UnetEIPResourceSet

type UnetEIPResourceSet struct {

	// 弹性IP的资源ID
	EIPId string

	// 已绑定资源的资源ID
	ResourceID string

	//
	ResourceId string `deprecated:"true"`

	// 已绑定的资源名称
	ResourceName string

	// 已绑定的资源类型, 枚举值为: uhost, 云主机;natgw:NAT网关;ulb:负载均衡器;upm: 物理机; hadoophost: 大数据集群;fortresshost:堡垒机;udockhost:容器;udhost:私有专区主机;vpngw:IPSec VPN;ucdr:云灾备;dbaudit:数据库审计,uni:虚拟网卡。
	ResourceType string

	// 资源绑定的虚拟网卡的ID
	SubResourceId string

	// 资源绑定的虚拟网卡的名称
	SubResourceName string

	// 资源绑定的虚拟网卡的类型。uni,虚拟网卡。
	SubResourceType string
}

UnetEIPResourceSet - DescribeEIP

type UnetEIPSet

type UnetEIPSet struct {

	// 弹性IP的带宽, 单位为Mbps, 当BandwidthType=1时, 该处显示为共享带宽值. 当BandwidthType=0时, 该处显示这个弹性IP的带宽.
	Bandwidth int

	// 带宽模式, 枚举值为: 0: 非共享带宽模式, 1: 共享带宽模式
	BandwidthType int

	// 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按小时付费; Trial, 试用. 按小时付费和试用这两种付费模式需要开通权限.
	ChargeType string

	// 弹性IP的创建时间, 格式为Unix Timestamp
	CreateTime int

	// 弹性IP的详细信息列表, 具体结构见下方 UnetEIPAddrSet
	EIPAddr []UnetEIPAddrSet

	// 弹性IP的资源ID
	EIPId string

	// 弹性IP是否到期
	Expire bool

	// 弹性IP的到期时间, 格式为Unix Timestamp
	ExpireTime int

	// 弹性IP的名称,缺省值为 "EIP"
	Name string

	// 弹性IP的计费模式, 枚举值为: "Bandwidth", 带宽计费; "Traffic", 流量计费; "ShareBandwidth",共享带宽模式. 默认为 "Bandwidth".
	PayMode string

	// 弹性IP的备注, 缺省值为 ""
	Remark string

	// 弹性IP的详细信息列表, 具体结构见下方 UnetEIPResourceSet
	Resource UnetEIPResourceSet

	// 共享带宽信息 参见 ShareBandwidthSet
	ShareBandwidthSet ShareBandwidthSet

	// 弹性IP的资源绑定状态, 枚举值为: used: 已绑定, free: 未绑定, freeze: 已冻结
	Status string

	// 弹性IP的业务组标识, 缺省值为 "Default"
	Tag string

	// 外网出口权重, 默认为50, 范围[0-100]
	Weight int
}

UnetEIPSet - DescribeEIP

type UnetShareBandwidthSet

type UnetShareBandwidthSet struct {

	//
	BandwidthGuarantee int `deprecated:"true"`

	// 付费方式, 预付费:Year 按年,Month 按月,Dynamic 按需;后付费:PostPay(按月)
	ChargeType string

	// 创建时间, 格式为Unix Timestamp
	CreateTime int

	// EIP信息,详情见 EIPSetData
	EIPSet []EIPSetData

	// 过期时间, 格式为Unix Timestamp
	ExpireTime int

	// 共享带宽类型
	IPVersion string

	// 共享带宽名称
	Name string

	//
	PostPayStartTime int `deprecated:"true"`

	// 共享带宽值(预付费)/共享带宽峰值(后付费), 单位Mbps
	ShareBandwidth int

	// 共享带宽的资源ID
	ShareBandwidthId string
}

UnetShareBandwidthSet - DescribeShareBandwidth

type UpdateEIPAttributeRequest

type UpdateEIPAttributeRequest struct {
	request.CommonBase

	// EIP资源ID
	EIPId *string `required:"true"`

	// 名字(Name Tag Remark都为空则报错)
	Name *string `required:"false"`

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

	// 业务
	Tag *string `required:"false"`
}

UpdateEIPAttributeRequest is request schema for UpdateEIPAttribute action

type UpdateEIPAttributeResponse

type UpdateEIPAttributeResponse struct {
	response.CommonBase
}

UpdateEIPAttributeResponse is response schema for UpdateEIPAttribute action

type UpdateFirewallAttributeRequest

type UpdateFirewallAttributeRequest struct {
	request.CommonBase

	// 防火墙资源ID
	FWId *string `required:"true"`

	// 防火墙名称,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上
	Name *string `required:"false"`

	// 防火墙备注,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上
	Remark *string `required:"false"`

	// 防火墙业务组,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上
	Tag *string `required:"false"`
}

UpdateFirewallAttributeRequest is request schema for UpdateFirewallAttribute action

type UpdateFirewallAttributeResponse

type UpdateFirewallAttributeResponse struct {
	response.CommonBase
}

UpdateFirewallAttributeResponse is response schema for UpdateFirewallAttribute action

type UpdateFirewallRequest

type UpdateFirewallRequest struct {
	request.CommonBase

	// 防火墙资源ID
	FWId *string `required:"true"`

	// 防火墙规则,例如:TCP|22|192.168.1.1/22|DROP|LOW|禁用22端口,第一个参数代表协议:第二个参数代表端口号,第三个参数为ip,第四个参数为ACCEPT(接受)和DROP(拒绝),第五个参数优先级:HIGH(高),MEDIUM(中),LOW(低),第六个参数为该条规则的自定义备注
	Rule []string `required:"true"`
}

UpdateFirewallRequest is request schema for UpdateFirewall action

type UpdateFirewallResponse

type UpdateFirewallResponse struct {
	response.CommonBase

	// 防火墙id
	FWId string
}

UpdateFirewallResponse is response schema for UpdateFirewall action

Jump to

Keyboard shortcuts

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