Documentation ¶
Index ¶
- type DescribeSecurityGroupRequest
- type DescribeSecurityGroupResponse
- type DescribeShareBandwidthPriceRequest
- type DescribeShareBandwidthPriceResponse
- type SecurityGroupRuleSet
- type UNetClient
- func (c *UNetClient) DescribeSecurityGroup(req *DescribeSecurityGroupRequest) (*DescribeSecurityGroupResponse, error)
- func (c *UNetClient) DescribeShareBandwidthPrice(req *DescribeShareBandwidthPriceRequest) (*DescribeShareBandwidthPriceResponse, error)
- func (c *UNetClient) NewDescribeSecurityGroupRequest() *DescribeSecurityGroupRequest
- func (c *UNetClient) NewDescribeShareBandwidthPriceRequest() *DescribeShareBandwidthPriceRequest
- type UnetSecurityGroupSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DescribeSecurityGroupRequest ¶
type DescribeSecurityGroupRequest struct { request.CommonBase // 绑定防火墙组的资源类型,如uhost ResourceType *string `required:"false"` // 绑定防火墙组的资源ID ResourceId *string `required:"false"` // 防火墙ID GroupId *string `required:"false"` }
DescribeSecurityGroupRequest is request schema for DescribeSecurityGroup action
type DescribeSecurityGroupResponse ¶
type DescribeSecurityGroupResponse struct { response.CommonBase // 获取的防火墙组详细信息 参见 UnetSecurityGroupSet DataSet []UnetSecurityGroupSet }
DescribeSecurityGroupResponse is response schema for DescribeSecurityGroup action
type DescribeShareBandwidthPriceRequest ¶
type DescribeShareBandwidthPriceRequest struct { string `required:"true"` ShareBandwidth *int `required:"true"` Quantity *int `required:"false"` ShareBandwidthGuarantee *int `required:"false"` }ChargeType *
DescribeShareBandwidthPriceRequest is request schema for DescribeShareBandwidthPrice action
type DescribeShareBandwidthPriceResponse ¶
type DescribeShareBandwidthPriceResponse struct { int }TotalPrice
DescribeShareBandwidthPriceResponse is response schema for DescribeShareBandwidthPrice action
type SecurityGroupRuleSet ¶
type SecurityGroupRuleSet struct { // 源地址 SrcIP string // 优先级 Priority string // 协议类型 ProtocolType string // 目标端口 DstPort string // 防火墙动作 RuleAction string }
SecurityGroupRuleSet - DescribeSecurityGroup
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.
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) DescribeSecurityGroup ¶
func (c *UNetClient) DescribeSecurityGroup(req *DescribeSecurityGroupRequest) (*DescribeSecurityGroupResponse, error)
DescribeSecurityGroup - 获取防火墙组信息
func (*UNetClient) DescribeShareBandwidthPrice ¶
func (c *UNetClient) DescribeShareBandwidthPrice(req *DescribeShareBandwidthPriceRequest) (*DescribeShareBandwidthPriceResponse, error)
DescribeShareBandwidthPrice - 获取共享带宽价格
func (*UNetClient) NewDescribeSecurityGroupRequest ¶
func (c *UNetClient) NewDescribeSecurityGroupRequest() *DescribeSecurityGroupRequest
NewDescribeSecurityGroupRequest will create request of DescribeSecurityGroup action.
func (*UNetClient) NewDescribeShareBandwidthPriceRequest ¶
func (c *UNetClient) NewDescribeShareBandwidthPriceRequest() *DescribeShareBandwidthPriceRequest
NewDescribeShareBandwidthPriceRequest will create request of DescribeShareBandwidthPrice action.
type UnetSecurityGroupSet ¶
type UnetSecurityGroupSet struct { // 防火墙ID,可选,为空时不显示Rule GroupId string // 防火墙组的名称 GroupName string // 防火墙组创建时间,格式为Unix Timestamp CreateTime int // 防火墙组类型,枚举值为: 0:用户自定义防火墙; 1:默认Web防火墙; 2:默认非Web防火墙 Type int // 防火墙组中的规则表,参见 SecurityGroupRuleSet Rule []SecurityGroupRuleSet }
UnetSecurityGroupSet - DescribeSecurityGroup
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.