Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateReq ¶
type CreateResp ¶
type CreateResp struct {
ID string `json:"id"` // 安全组ID
}
type DeleteResp ¶
type DeleteResp struct{}
type DetailReq ¶
type DetailResp ¶
type DetailResp struct { Id int `json:"id"` // 规则ID Name string `json:"name"` // 名称 Description string `json:"description"` // 描述 Uid int `json:"uid"` // 用户ID CreateTime string `json:"create_time"` // 创建时间 UpdateTime string `json:"update_time"` // 修改时间 CloudNum int `json:"cloud_num"` // 关联实例数量 Username string `json:"username"` // 用户名 Type string `json:"type"` // 安全组类型(host=专业魔方云,lightHost=轻量魔方云,hyperv=Hyper-V,v2.5.2+) Rule []struct { Id int `json:"id"` // 安全组规则ID Description string `json:"description"` // 描述 Direction string `json:"direction"` // 规则方向 Protocol string `json:"protocol"` // 协议 Port string `json:"port"` // 端口范围 Ip string `json:"ip"` // 授权IP CreateTime string `json:"create_time"` // 创建时间 } `json:"rule"` }
type LinksReq ¶
type ListReq ¶
type ListReq struct { Search string `url:"search,omitempty"` // 搜索 ListType string `url:"list_type,omitempty"` // 获取类型(all,page),all会忽略页数直接返回所有 Type string `url:"list_type,omitempty"` // 安全组类型(host=专业魔方云,lightHost=轻量魔方云,hyperv=Hyper-V,v2.5.2+) User string `url:"user,omitempty"` // 用户ID Page string `url:"page,omitempty"` PerPage string `url:"per_page,omitempty"` Orderby string `url:"orderby,omitempty"` // 排序(id,name,ext_port,int_port,protocol) Sort string `url:"sort,omitempty"` }
type ListResp ¶
type ListResp struct { Data []struct { Id int `json:"id"` // 安全组ID Name string `json:"name"` // 名称 Description string `json:"description"` // 描述 Uid int `json:"uid"` // 用户ID CloudNum int `json:"cloud_num"` // 关联数 Username string `json:"username"` // 用户名 RuleNum int `json:"rule_num"` // 安全组规则数量 CreateTime string `json:"create_time"` // 创建时间 Type string `json:"type"` // 安全组类型(host = 专业魔方云, lightHost = 轻量魔方云, hyperv = Hyper-V, v2.5.2+) } `json:"data"` Meta struct { Total int `json:"total"` TotalPage int `json:"total_page"` Page int `json:"page"` PerPage int `json:"per_page"` } `json:"meta"` }
type UnlinksReq ¶
func (*UnlinksReq) Body ¶
func (r *UnlinksReq) Body() any
func (*UnlinksReq) Form ¶
func (r *UnlinksReq) Form() (form url.Values)
func (*UnlinksReq) Header ¶
func (r *UnlinksReq) Header() http.Header
func (*UnlinksReq) Method ¶
func (r *UnlinksReq) Method() string
func (*UnlinksReq) Url ¶
func (r *UnlinksReq) Url() string
func (*UnlinksReq) Values ¶
func (r *UnlinksReq) Values() (values url.Values)
type UnlinksResp ¶
type UnlinksResp struct{}
func Unlinks ¶
func Unlinks(ctx *cputil.Context, req *UnlinksReq) (*UnlinksResp, error)
Unlinks 解除关联安全组
type UpdateReq ¶
type UpdateResp ¶
type UpdateResp struct{}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.