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

     1  package vpc
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 查询安全组关联实例统计
     8  // https://cloud.tencent.com/document/api/215/17799
     9  
    10  type DescribeSecurityGroupAssociationStatisticsRequest struct {
    11  	// 区域
    12  	Region string `name:"Region"`
    13  	// 安全实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。
    14  	SecurityGroupIds []*string `name:"SecurityGroupIds"`
    15  }
    16  
    17  func (req *DescribeSecurityGroupAssociationStatisticsRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeSecurityGroupAssociationStatisticsResponse, error) {
    18  	resp := &DescribeSecurityGroupAssociationStatisticsResponse{}
    19  	err := client.Request("vpc", "DescribeSecurityGroupAssociationStatistics", "2017-03-12").Do(req, resp)
    20  	return resp, err
    21  }
    22  
    23  type DescribeSecurityGroupAssociationStatisticsResponse struct {
    24  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    25  	// 安全组关联实例统计。
    26  	SecurityGroupAssociationStatisticsSet []*SecurityGroupAssociationStatistics `json:"SecurityGroupAssociationStatisticsSet"`
    27  }