Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteResp ¶
type DeleteResp struct{}
func Delete ¶
func Delete(ctx *cloudplatform.Context, req *DeleteReq) (*DeleteResp, error)
Delete 删除vpc网络
type ListReq ¶
type ListReq struct {
Search string `url:"search,omitempty"` // 搜索
Node string `url:"node,omitempty"` // 节点ID
Area string `url:"area,omitempty"` // 区域ID
NodeGroup string `url:"node_group,omitempty"` // 节点分组ID
User string `url:"user,omitempty"` // 用户ID
ListType string `url:"list_type,omitempty"` // 传all获取所有
Page string `url:"page,omitempty"`
PerPage string `url:"per_page,omitempty"`
Orderby string `url:"orderby,omitempty"` // 排序(id,size,name,type)
Sort string `url:"sort,omitempty"`
}
type ListResp ¶
type ListResp struct {
Data []struct {
Id int `json:"id"` // vpc网络ID
Name string `json:"name"` // vpc网络名称
Ips string `json:"ips"` // 网段
Uid int `json:"uid"` // 用户ID
Username string `json:"username"` // 用户名
Host []struct {
Id int `json:"id"` // 使用该VPC实例ID
Hostname string `json:"hostname"` // 使用该VPC实例主机名
} `json:"host"`
VpcMac []struct {
NodeName string `json:"node_name"` // 节点名称(v2.3.9+)
Mac string `json:"mac"` // vpcMAC地址(v2.3.9+)
} `json:"vpc_mac"`
} `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 UpdateResp ¶
type UpdateResp struct{}
func Update ¶
func Update(ctx *cloudplatform.Context, req *UpdateReq) (*UpdateResp, error)
Update 修改vpc网络
Click to show internal directories.
Click to hide internal directories.