github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cws/describe_vuls.go (about) 1 package cws 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 查看漏洞列表 8 // https://cloud.tencent.com/document/api/692/16741 9 10 type DescribeVulsRequest struct { 11 // 过滤条件 12 Filters []*Filter `name:"Filters,omitempty"` 13 // 返回数量,默认为10,最大值为100 14 Limit *int64 `name:"Limit,omitempty"` 15 // 监控任务ID 16 MonitorId *int64 `name:"MonitorId,omitempty"` 17 // 偏移量,默认为0 18 Offset *int64 `name:"Offset,omitempty"` 19 // 区域 20 Region string `name:"Region"` 21 // 站点ID 22 SiteId *int64 `name:"SiteId,omitempty"` 23 } 24 25 func (req *DescribeVulsRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeVulsResponse, error) { 26 resp := &DescribeVulsResponse{} 27 err := client.Request("cws", "DescribeVuls", "2018-03-12").Do(req, resp) 28 return resp, err 29 } 30 31 type DescribeVulsResponse struct { 32 github_com_morlay_goqcloud.TencentCloudBaseResponse 33 // 漏洞数量。 34 TotalCount int64 `json:"TotalCount"` 35 // 漏洞信息列表。 36 Vuls []*Vul `json:"Vuls"` 37 }