github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/yunjing/describe_vul_scan_result.go (about)

     1  package yunjing
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 获取漏洞检测结果
     8  // https://cloud.tencent.com/document/api/296/19858
     9  
    10  type DescribeVulScanResultRequest struct {
    11  	// 区域
    12  	Region string `name:"Region"`
    13  }
    14  
    15  func (req *DescribeVulScanResultRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeVulScanResultResponse, error) {
    16  	resp := &DescribeVulScanResultResponse{}
    17  	err := client.Request("yunjing", "DescribeVulScanResult", "2018-02-28").Do(req, resp)
    18  	return resp, err
    19  }
    20  
    21  type DescribeVulScanResultResponse struct {
    22  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    23  	// 受影响的专业版主机数。
    24  	ImpactedHostNum int64 `json:"ImpactedHostNum"`
    25  	// 专业版机器数。
    26  	ProVersionNum int64 `json:"ProVersionNum"`
    27  	// 漏洞数量。
    28  	VulNum int64 `json:"VulNum"`
    29  }