github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cws/create_vuls_report.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/18089 9 10 type CreateVulsReportRequest struct { 11 // 监控任务ID 12 MonitorId *int64 `name:"MonitorId,omitempty"` 13 // 区域 14 Region string `name:"Region"` 15 // 站点ID 16 SiteId *int64 `name:"SiteId,omitempty"` 17 } 18 19 func (req *CreateVulsReportRequest) Invoke(client github_com_morlay_goqcloud.Client) (*CreateVulsReportResponse, error) { 20 resp := &CreateVulsReportResponse{} 21 err := client.Request("cws", "CreateVulsReport", "2018-03-12").Do(req, resp) 22 return resp, err 23 } 24 25 type CreateVulsReportResponse struct { 26 github_com_morlay_goqcloud.TencentCloudBaseResponse 27 // 报告下载地址 28 ReportFileUrl string `json:"ReportFileUrl"` 29 }