Documentation ¶
Overview ¶
Package unet include resources of ucloud unet product
See also
- API: https://docs.ucloud.cn/api/unet-api/index
- Product: https://www.ucloud.cn/site/product/unet.html
for detail.
Index ¶
- type AllocateEIPRequest
- type AllocateEIPResponse
- type AllocateShareBandwidthRequest
- type AllocateShareBandwidthResponse
- type AssociateEIPWithShareBandwidthRequest
- type AssociateEIPWithShareBandwidthResponse
- type BindEIPRequest
- type BindEIPResponse
- type CreateBandwidthPackageRequest
- type CreateBandwidthPackageResponse
- type CreateFirewallRequest
- type CreateFirewallResponse
- type DeleteBandwidthPackageRequest
- type DeleteBandwidthPackageResponse
- type DeleteFirewallRequest
- type DeleteFirewallResponse
- type DescribeBandwidthPackageRequest
- type DescribeBandwidthPackageResponse
- type DescribeBandwidthUsageRequest
- type DescribeBandwidthUsageResponse
- type DescribeEIPRequest
- type DescribeEIPResponse
- type DescribeFirewallRequest
- type DescribeFirewallResourceRequest
- type DescribeFirewallResourceResponse
- type DescribeFirewallResponse
- type DescribeShareBandwidthPriceRequest
- type DescribeShareBandwidthPriceResponse
- type DescribeShareBandwidthRequest
- type DescribeShareBandwidthResponse
- type DescribeShareBandwidthUpdatePriceRequest
- type DescribeShareBandwidthUpdatePriceResponse
- type DisassociateEIPWithShareBandwidthRequest
- type DisassociateEIPWithShareBandwidthResponse
- type DisassociateFirewallRequest
- type DisassociateFirewallResponse
- type EIPAddrSet
- type EIPPayModeSet
- type EIPPriceDetailSet
- type EIPSetData
- type FirewallDataSet
- type FirewallRuleSet
- type GetEIPPayModeRequest
- type GetEIPPayModeResponse
- type GetEIPPriceRequest
- type GetEIPPriceResponse
- type GetEIPUpgradePriceRequest
- type GetEIPUpgradePriceResponse
- type GetThroughputDailyBillingInfoRequest
- type GetThroughputDailyBillingInfoResponse
- type GrantFirewallRequest
- type GrantFirewallResponse
- type ModifyEIPBandwidthRequest
- type ModifyEIPBandwidthResponse
- type ModifyEIPWeightRequest
- type ModifyEIPWeightResponse
- type ReleaseEIPRequest
- type ReleaseEIPResponse
- type ReleaseShareBandwidthRequest
- type ReleaseShareBandwidthResponse
- type ResizeShareBandwidthRequest
- type ResizeShareBandwidthResponse
- type ResourceSet
- type SetEIPPayModeRequest
- type SetEIPPayModeResponse
- type ShareBandwidthSet
- type ThroughputDailyBillingInfo
- type UNetClient
- func (c *UNetClient) AllocateEIP(req *AllocateEIPRequest) (*AllocateEIPResponse, error)
- func (c *UNetClient) AllocateShareBandwidth(req *AllocateShareBandwidthRequest) (*AllocateShareBandwidthResponse, error)
- func (c *UNetClient) AssociateEIPWithShareBandwidth(req *AssociateEIPWithShareBandwidthRequest) (*AssociateEIPWithShareBandwidthResponse, error)
- func (c *UNetClient) BindEIP(req *BindEIPRequest) (*BindEIPResponse, error)
- func (c *UNetClient) CreateBandwidthPackage(req *CreateBandwidthPackageRequest) (*CreateBandwidthPackageResponse, error)
- func (c *UNetClient) CreateFirewall(req *CreateFirewallRequest) (*CreateFirewallResponse, error)
- func (c *UNetClient) DeleteBandwidthPackage(req *DeleteBandwidthPackageRequest) (*DeleteBandwidthPackageResponse, error)
- func (c *UNetClient) DeleteFirewall(req *DeleteFirewallRequest) (*DeleteFirewallResponse, error)
- func (c *UNetClient) DescribeBandwidthPackage(req *DescribeBandwidthPackageRequest) (*DescribeBandwidthPackageResponse, error)
- func (c *UNetClient) DescribeBandwidthUsage(req *DescribeBandwidthUsageRequest) (*DescribeBandwidthUsageResponse, error)
- func (c *UNetClient) DescribeEIP(req *DescribeEIPRequest) (*DescribeEIPResponse, error)
- func (c *UNetClient) DescribeFirewall(req *DescribeFirewallRequest) (*DescribeFirewallResponse, error)
- func (c *UNetClient) DescribeFirewallResource(req *DescribeFirewallResourceRequest) (*DescribeFirewallResourceResponse, error)
- func (c *UNetClient) DescribeShareBandwidth(req *DescribeShareBandwidthRequest) (*DescribeShareBandwidthResponse, error)
- func (c *UNetClient) DescribeShareBandwidthPrice(req *DescribeShareBandwidthPriceRequest) (*DescribeShareBandwidthPriceResponse, error)
- func (c *UNetClient) DescribeShareBandwidthUpdatePrice(req *DescribeShareBandwidthUpdatePriceRequest) (*DescribeShareBandwidthUpdatePriceResponse, error)
- func (c *UNetClient) DisassociateEIPWithShareBandwidth(req *DisassociateEIPWithShareBandwidthRequest) (*DisassociateEIPWithShareBandwidthResponse, error)
- func (c *UNetClient) DisassociateFirewall(req *DisassociateFirewallRequest) (*DisassociateFirewallResponse, error)
- func (c *UNetClient) GetEIPPayMode(req *GetEIPPayModeRequest) (*GetEIPPayModeResponse, error)
- func (c *UNetClient) GetEIPPrice(req *GetEIPPriceRequest) (*GetEIPPriceResponse, error)
- func (c *UNetClient) GetEIPUpgradePrice(req *GetEIPUpgradePriceRequest) (*GetEIPUpgradePriceResponse, error)
- func (c *UNetClient) GetThroughputDailyBillingInfo(req *GetThroughputDailyBillingInfoRequest) (*GetThroughputDailyBillingInfoResponse, error)
- func (c *UNetClient) GrantFirewall(req *GrantFirewallRequest) (*GrantFirewallResponse, error)
- func (c *UNetClient) ModifyEIPBandwidth(req *ModifyEIPBandwidthRequest) (*ModifyEIPBandwidthResponse, error)
- func (c *UNetClient) ModifyEIPWeight(req *ModifyEIPWeightRequest) (*ModifyEIPWeightResponse, error)
- func (c *UNetClient) NewAllocateEIPRequest() *AllocateEIPRequest
- func (c *UNetClient) NewAllocateShareBandwidthRequest() *AllocateShareBandwidthRequest
- func (c *UNetClient) NewAssociateEIPWithShareBandwidthRequest() *AssociateEIPWithShareBandwidthRequest
- func (c *UNetClient) NewBindEIPRequest() *BindEIPRequest
- func (c *UNetClient) NewCreateBandwidthPackageRequest() *CreateBandwidthPackageRequest
- func (c *UNetClient) NewCreateFirewallRequest() *CreateFirewallRequest
- func (c *UNetClient) NewDeleteBandwidthPackageRequest() *DeleteBandwidthPackageRequest
- func (c *UNetClient) NewDeleteFirewallRequest() *DeleteFirewallRequest
- func (c *UNetClient) NewDescribeBandwidthPackageRequest() *DescribeBandwidthPackageRequest
- func (c *UNetClient) NewDescribeBandwidthUsageRequest() *DescribeBandwidthUsageRequest
- func (c *UNetClient) NewDescribeEIPRequest() *DescribeEIPRequest
- func (c *UNetClient) NewDescribeFirewallRequest() *DescribeFirewallRequest
- func (c *UNetClient) NewDescribeFirewallResourceRequest() *DescribeFirewallResourceRequest
- func (c *UNetClient) NewDescribeShareBandwidthPriceRequest() *DescribeShareBandwidthPriceRequest
- func (c *UNetClient) NewDescribeShareBandwidthRequest() *DescribeShareBandwidthRequest
- func (c *UNetClient) NewDescribeShareBandwidthUpdatePriceRequest() *DescribeShareBandwidthUpdatePriceRequest
- func (c *UNetClient) NewDisassociateEIPWithShareBandwidthRequest() *DisassociateEIPWithShareBandwidthRequest
- func (c *UNetClient) NewDisassociateFirewallRequest() *DisassociateFirewallRequest
- func (c *UNetClient) NewGetEIPPayModeRequest() *GetEIPPayModeRequest
- func (c *UNetClient) NewGetEIPPriceRequest() *GetEIPPriceRequest
- func (c *UNetClient) NewGetEIPUpgradePriceRequest() *GetEIPUpgradePriceRequest
- func (c *UNetClient) NewGetThroughputDailyBillingInfoRequest() *GetThroughputDailyBillingInfoRequest
- func (c *UNetClient) NewGrantFirewallRequest() *GrantFirewallRequest
- func (c *UNetClient) NewModifyEIPBandwidthRequest() *ModifyEIPBandwidthRequest
- func (c *UNetClient) NewModifyEIPWeightRequest() *ModifyEIPWeightRequest
- func (c *UNetClient) NewReleaseEIPRequest() *ReleaseEIPRequest
- func (c *UNetClient) NewReleaseShareBandwidthRequest() *ReleaseShareBandwidthRequest
- func (c *UNetClient) NewResizeShareBandwidthRequest() *ResizeShareBandwidthRequest
- func (c *UNetClient) NewSetEIPPayModeRequest() *SetEIPPayModeRequest
- func (c *UNetClient) NewUnBindEIPRequest() *UnBindEIPRequest
- func (c *UNetClient) NewUpdateEIPAttributeRequest() *UpdateEIPAttributeRequest
- func (c *UNetClient) NewUpdateFirewallAttributeRequest() *UpdateFirewallAttributeRequest
- func (c *UNetClient) NewUpdateFirewallRequest() *UpdateFirewallRequest
- func (c *UNetClient) ReleaseEIP(req *ReleaseEIPRequest) (*ReleaseEIPResponse, error)
- func (c *UNetClient) ReleaseShareBandwidth(req *ReleaseShareBandwidthRequest) (*ReleaseShareBandwidthResponse, error)
- func (c *UNetClient) ResizeShareBandwidth(req *ResizeShareBandwidthRequest) (*ResizeShareBandwidthResponse, error)
- func (c *UNetClient) SetEIPPayMode(req *SetEIPPayModeRequest) (*SetEIPPayModeResponse, error)
- func (c *UNetClient) UnBindEIP(req *UnBindEIPRequest) (*UnBindEIPResponse, error)
- func (c *UNetClient) UpdateEIPAttribute(req *UpdateEIPAttributeRequest) (*UpdateEIPAttributeResponse, error)
- func (c *UNetClient) UpdateFirewall(req *UpdateFirewallRequest) (*UpdateFirewallResponse, error)
- func (c *UNetClient) UpdateFirewallAttribute(req *UpdateFirewallAttributeRequest) (*UpdateFirewallAttributeResponse, error)
- type UnBindEIPRequest
- type UnBindEIPResponse
- type UnetAllocateEIPSet
- type UnetBandwidthPackageSet
- type UnetBandwidthUsageEIPSet
- type UnetEIPAddrSet
- type UnetEIPResourceSet
- type UnetEIPSet
- type UnetShareBandwidthSet
- type UpdateEIPAttributeRequest
- type UpdateEIPAttributeResponse
- type UpdateFirewallAttributeRequest
- type UpdateFirewallAttributeResponse
- type UpdateFirewallRequest
- type UpdateFirewallResponse
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, 按时付费,默认为按月付费。 ChargeType *string `required:"false"` // 购买EIP数量,默认值为1 Count *int `required:"false"` // 代金券ID, 默认不使用 CouponId *string `required:"false"` // 弹性IP的名称, 默认为 "EIP" Name *string `required:"false"` // 弹性IP线路,枚举值:国际线路, International;BGP线路:Bgp;精品BGP:BGPPro。使用BGP线路的地域:北京二、上海金融云、上海二、广州等,其他地域均使用国际线路。使用BGPPro线路的地域:香港 OperatorName *string `required:"true"` // 弹性IP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; "ShareBandwidth",共享带宽模式. 默认为 "Bandwidth".“PostAccurateBandwidth”:带宽后付费模式 PayMode *string `required:"false"` // 购买的时长, 默认: 1 Quantity *int `required:"false"` // 弹性IP的备注, 默认为空 Remark *string `required:"false"` 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 { string `required:"true"` IPVersion *string `required:"false"` Name *string `required:"true"` Quantity *int `required:"false"` ShareBandwidth *int `required:"true"` ShareBandwidthGuarantee *int `required:"false" deprecated:"true"` }ChargeType *
AllocateShareBandwidthRequest is request schema for AllocateShareBandwidth action
type AllocateShareBandwidthResponse ¶
type AllocateShareBandwidthResponse struct { string }ShareBandwidthId
AllocateShareBandwidthResponse is response schema for AllocateShareBandwidth action
type AssociateEIPWithShareBandwidthRequest ¶
type AssociateEIPWithShareBandwidthRequest struct { string `required:"true"` IPVersion *string `required:"false"` ShareBandwidthId *string `required:"true"` }EIPIds []
AssociateEIPWithShareBandwidthRequest is request schema for AssociateEIPWithShareBandwidth action
type AssociateEIPWithShareBandwidthResponse ¶
type AssociateEIPWithShareBandwidthResponse struct {
}AssociateEIPWithShareBandwidthResponse is response schema for AssociateEIPWithShareBandwidth action
type BindEIPRequest ¶
type BindEIPRequest struct { request.CommonBase // 弹性IP的资源Id EIPId *string `required:"true"` // EIP与内网IP进行绑定时需要传入UNI下未绑定过EIP的内网IP PrivateIP *string `required:"false"` // 弹性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",云主机;“uni”,虚拟网卡; "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,最大1000 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 DescribeShareBandwidthPriceRequest ¶ added in v0.21.34
type DescribeShareBandwidthPriceRequest struct { string `required:"true"` OperatorName *string `required:"false"` Quantity *int `required:"false"` ShareBandwidth *int `required:"true"` }ChargeType *
DescribeShareBandwidthPriceRequest is request schema for DescribeShareBandwidthPrice action
type DescribeShareBandwidthPriceResponse ¶ added in v0.21.34
type DescribeShareBandwidthPriceResponse struct { int }TotalPrice
DescribeShareBandwidthPriceResponse is response schema for DescribeShareBandwidthPrice action
type DescribeShareBandwidthRequest ¶
type DescribeShareBandwidthRequest struct { string `required:"false"` }ShareBandwidthIds []
DescribeShareBandwidthRequest is request schema for DescribeShareBandwidth action
type DescribeShareBandwidthResponse ¶
type DescribeShareBandwidthResponse struct { UnetShareBandwidthSet TotalCount int }DataSet []
DescribeShareBandwidthResponse is response schema for DescribeShareBandwidth action
type DescribeShareBandwidthUpdatePriceRequest ¶ added in v0.21.34
type DescribeShareBandwidthUpdatePriceRequest struct { int `required:"true"` ShareBandwidthId *string `required:"true"` }ShareBandwidth *
DescribeShareBandwidthUpdatePriceRequest is request schema for DescribeShareBandwidthUpdatePrice action
type DescribeShareBandwidthUpdatePriceResponse ¶ added in v0.21.34
type DescribeShareBandwidthUpdatePriceResponse struct { float64 }Price
DescribeShareBandwidthUpdatePriceResponse is response schema for DescribeShareBandwidthUpdatePrice action
type DisassociateEIPWithShareBandwidthRequest ¶
type DisassociateEIPWithShareBandwidthRequest struct { int `required:"true"` EIPIds []string `required:"false"` IPVersion *string `required:"false"` PayMode *string `required:"false"` ShareBandwidthId *string `required:"true"` }Bandwidth *
DisassociateEIPWithShareBandwidthRequest is request schema for DisassociateEIPWithShareBandwidth action
type DisassociateEIPWithShareBandwidthResponse ¶
type DisassociateEIPWithShareBandwidthResponse struct {
}DisassociateEIPWithShareBandwidthResponse is response schema for DisassociateEIPWithShareBandwidth action
type DisassociateFirewallRequest ¶ added in v0.21.23
type DisassociateFirewallRequest struct { request.CommonBase // 防火墙ID FWId *string `required:"true"` // 需要解绑的资源ID ResourceId *string `required:"true"` // 资源类型:ULB 表示负载均衡 ResourceType *string `required:"true"` }
DisassociateFirewallRequest is request schema for DisassociateFirewall action
type DisassociateFirewallResponse ¶ added in v0.21.23
type DisassociateFirewallResponse struct {
response.CommonBase
}
DisassociateFirewallResponse is response schema for DisassociateFirewall 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 GetThroughputDailyBillingInfoRequest ¶ added in v0.21.23
type GetThroughputDailyBillingInfoRequest struct { request.CommonBase // EIP的资源ID EIPId *string `required:"true"` // 查询结束时间时间戳 EndTime *int `required:"true"` // 查询开始时间时间戳 StartTime *int `required:"true"` }
GetThroughputDailyBillingInfoRequest is request schema for GetThroughputDailyBillingInfo action
type GetThroughputDailyBillingInfoResponse ¶ added in v0.21.23
type GetThroughputDailyBillingInfoResponse struct { response.CommonBase // 资源ID EIPId string // EIP流量计费信息,详见模型ThroughputDailyBillingInfo Stats []ThroughputDailyBillingInfo // 计费总流量 TotalOut int }
GetThroughputDailyBillingInfoResponse is response schema for GetThroughputDailyBillingInfo 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",数据库审计,”uni“,虚拟网卡,“cube”,Cube容器实例。 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 { int `required:"true"` PayMode *string `required:"false"` ShareBandwidthId *string `required:"true"` }EIPBandwidth *
ReleaseShareBandwidthRequest is request schema for ReleaseShareBandwidth action
type ReleaseShareBandwidthResponse ¶
type ReleaseShareBandwidthResponse struct {
}ReleaseShareBandwidthResponse is response schema for ReleaseShareBandwidth action
type ResizeShareBandwidthRequest ¶
type ResizeShareBandwidthRequest struct { int `required:"true"` ShareBandwidthId *string `required:"true"` }ShareBandwidth *
ResizeShareBandwidthRequest is request schema for ResizeShareBandwidth action
type ResizeShareBandwidthResponse ¶
type ResizeShareBandwidthResponse struct {
}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",数据库审计,“uni”,虚拟网卡。 ResourceType string // 状态 Status int // 资源绑定的虚拟网卡的ID SubResourceId string // 资源绑定的虚拟网卡的名称 SubResourceName string // 资源绑定的虚拟网卡的类型,“uni”,虚拟网卡。 SubResourceType string // 业务组 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 { int ShareBandwidthId string ShareBandwidthName string }ShareBandwidth
ShareBandwidthSet - DescribeEIP
type ThroughputDailyBillingInfo ¶ added in v0.21.23
type ThroughputDailyBillingInfo struct { // 是否已计费,“Yes”或者“No” BillingState string // 计费结束时间 EndTime int // 计费流量,单位“GB” QuantityOut int // 计费开始时间 StartTime int }
ThroughputDailyBillingInfo - 流量计费EIP计费信息
type UNetClient ¶
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 ¶
func (c *UNetClient) AllocateShareBandwidth(req *AllocateShareBandwidthRequest) (*AllocateShareBandwidthResponse, error)
API: AllocateShareBandwidth
开通共享带宽
func (*UNetClient) AssociateEIPWithShareBandwidth ¶
func (c *UNetClient) AssociateEIPWithShareBandwidth(req *AssociateEIPWithShareBandwidthRequest) (*AssociateEIPWithShareBandwidthResponse, error)
API: AssociateEIPWithShareBandwidth
将EIP加入共享带宽
func (*UNetClient) BindEIP ¶
func (c *UNetClient) BindEIP(req *BindEIPRequest) (*BindEIPResponse, error)
API: BindEIP
将尚未使用的弹性IP绑定到指定的资源
func (*UNetClient) CreateBandwidthPackage ¶
func (c *UNetClient) CreateBandwidthPackage(req *CreateBandwidthPackageRequest) (*CreateBandwidthPackageResponse, error)
API: CreateBandwidthPackage
为非共享带宽模式下, 已绑定资源实例的带宽计费弹性IP附加临时带宽包
func (*UNetClient) CreateFirewall ¶
func (c *UNetClient) CreateFirewall(req *CreateFirewallRequest) (*CreateFirewallResponse, error)
API: CreateFirewall
创建防火墙
func (*UNetClient) DeleteBandwidthPackage ¶
func (c *UNetClient) DeleteBandwidthPackage(req *DeleteBandwidthPackageRequest) (*DeleteBandwidthPackageResponse, error)
API: DeleteBandwidthPackage
删除弹性IP上已附加带宽包
func (*UNetClient) DeleteFirewall ¶
func (c *UNetClient) DeleteFirewall(req *DeleteFirewallRequest) (*DeleteFirewallResponse, error)
API: DeleteFirewall
删除防火墙
func (*UNetClient) DescribeBandwidthPackage ¶
func (c *UNetClient) DescribeBandwidthPackage(req *DescribeBandwidthPackageRequest) (*DescribeBandwidthPackageResponse, error)
API: DescribeBandwidthPackage
获取某地域下的带宽包信息
func (*UNetClient) DescribeBandwidthUsage ¶
func (c *UNetClient) DescribeBandwidthUsage(req *DescribeBandwidthUsageRequest) (*DescribeBandwidthUsageResponse, error)
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 ¶
func (c *UNetClient) DescribeFirewallResource(req *DescribeFirewallResourceRequest) (*DescribeFirewallResourceResponse, error)
API: DescribeFirewallResource
获取防火墙组所绑定资源的外网IP
func (*UNetClient) DescribeShareBandwidth ¶
func (c *UNetClient) DescribeShareBandwidth(req *DescribeShareBandwidthRequest) (*DescribeShareBandwidthResponse, error)
API: DescribeShareBandwidth
获取共享带宽信息
func (*UNetClient) DescribeShareBandwidthPrice ¶ added in v0.21.34
func (c *UNetClient) DescribeShareBandwidthPrice(req *DescribeShareBandwidthPriceRequest) (*DescribeShareBandwidthPriceResponse, error)
API: DescribeShareBandwidthPrice
获取共享带宽价格
func (*UNetClient) DescribeShareBandwidthUpdatePrice ¶ added in v0.21.34
func (c *UNetClient) DescribeShareBandwidthUpdatePrice(req *DescribeShareBandwidthUpdatePriceRequest) (*DescribeShareBandwidthUpdatePriceResponse, error)
API: DescribeShareBandwidthUpdatePrice
获取共享带宽升级价格
func (*UNetClient) DisassociateEIPWithShareBandwidth ¶
func (c *UNetClient) DisassociateEIPWithShareBandwidth(req *DisassociateEIPWithShareBandwidthRequest) (*DisassociateEIPWithShareBandwidthResponse, error)
API: DisassociateEIPWithShareBandwidth
将EIP移出共享带宽
func (*UNetClient) DisassociateFirewall ¶ added in v0.21.23
func (c *UNetClient) DisassociateFirewall(req *DisassociateFirewallRequest) (*DisassociateFirewallResponse, error)
API: DisassociateFirewall
解绑资源上的防火墙
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) GetThroughputDailyBillingInfo ¶ added in v0.21.23
func (c *UNetClient) GetThroughputDailyBillingInfo(req *GetThroughputDailyBillingInfoRequest) (*GetThroughputDailyBillingInfoResponse, error)
API: GetThroughputDailyBillingInfo
获取流量计费EIP每日流量计费信息
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) NewDescribeShareBandwidthPriceRequest ¶ added in v0.21.34
func (c *UNetClient) NewDescribeShareBandwidthPriceRequest() *DescribeShareBandwidthPriceRequest
NewDescribeShareBandwidthPriceRequest will create request of DescribeShareBandwidthPrice action.
func (*UNetClient) NewDescribeShareBandwidthRequest ¶
func (c *UNetClient) NewDescribeShareBandwidthRequest() *DescribeShareBandwidthRequest
NewDescribeShareBandwidthRequest will create request of DescribeShareBandwidth action.
func (*UNetClient) NewDescribeShareBandwidthUpdatePriceRequest ¶ added in v0.21.34
func (c *UNetClient) NewDescribeShareBandwidthUpdatePriceRequest() *DescribeShareBandwidthUpdatePriceRequest
NewDescribeShareBandwidthUpdatePriceRequest will create request of DescribeShareBandwidthUpdatePrice action.
func (*UNetClient) NewDisassociateEIPWithShareBandwidthRequest ¶
func (c *UNetClient) NewDisassociateEIPWithShareBandwidthRequest() *DisassociateEIPWithShareBandwidthRequest
NewDisassociateEIPWithShareBandwidthRequest will create request of DisassociateEIPWithShareBandwidth action.
func (*UNetClient) NewDisassociateFirewallRequest ¶ added in v0.21.23
func (c *UNetClient) NewDisassociateFirewallRequest() *DisassociateFirewallRequest
NewDisassociateFirewallRequest will create request of DisassociateFirewall 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) NewGetThroughputDailyBillingInfoRequest ¶ added in v0.21.23
func (c *UNetClient) NewGetThroughputDailyBillingInfoRequest() *GetThroughputDailyBillingInfoRequest
NewGetThroughputDailyBillingInfoRequest will create request of GetThroughputDailyBillingInfo 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 ¶
func (c *UNetClient) ReleaseShareBandwidth(req *ReleaseShareBandwidthRequest) (*ReleaseShareBandwidthResponse, error)
API: ReleaseShareBandwidth
关闭共享带宽
func (*UNetClient) ResizeShareBandwidth ¶
func (c *UNetClient) ResizeShareBandwidth(req *ResizeShareBandwidthRequest) (*ResizeShareBandwidthResponse, error)
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 ¶
func (c *UNetClient) UpdateFirewallAttribute(req *UpdateFirewallAttributeRequest) (*UpdateFirewallAttributeResponse, error)
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 // 运营商信息如: 电信: Telecom, 联通: Unicom, 国际: International, Duplet: 双线IP(电信+联通), BGP: Bgp OperatorName string }
UnetEIPAddrSet - DescribeEIP
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 // 弹性IP的资源绑定状态, 枚举值为: used: 已绑定, free: 未绑定, freeze: 已冻结 Status string // 弹性IP的业务组标识, 缺省值为 "Default" Tag string // 外网出口权重, 默认为50, 范围[0-100] Weight int }
UnetEIPSet - DescribeEIP
type UnetShareBandwidthSet ¶
type UnetShareBandwidthSet struct { int `deprecated:"true"` ChargeType string CreateTime int EIPSet []EIPSetData ExpireTime int IPVersion string Name string PostPayStartTime int `deprecated:"true"` ShareBandwidth int ShareBandwidthId string }BandwidthGuarantee
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