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

     1  package cis
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 查询容器实例列表
     8  // https://cloud.tencent.com/document/api/858/17771
     9  
    10  type DescribeContainerInstancesRequest struct {
    11  	// 过滤条件。- Zone - String - 是否必填:否 -(过滤条件)按照可用区过滤。- VpcId - String - 是否必填:否 -(过滤条件)按照VpcId过滤。- InstanceName - String - 是否必填:否 -(过滤条件)按照容器实例名称做模糊查询。
    12  	Filters []*Filter `name:"Filters,omitempty"`
    13  	// 返回数量,默认为10
    14  	Limit *int64 `name:"Limit,omitempty"`
    15  	// 偏移量,默认为0
    16  	Offset *int64 `name:"Offset,omitempty"`
    17  	// 区域
    18  	Region string `name:"Region"`
    19  }
    20  
    21  func (req *DescribeContainerInstancesRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeContainerInstancesResponse, error) {
    22  	resp := &DescribeContainerInstancesResponse{}
    23  	err := client.Request("cis", "DescribeContainerInstances", "2018-04-08").Do(req, resp)
    24  	return resp, err
    25  }
    26  
    27  type DescribeContainerInstancesResponse struct {
    28  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    29  	// 容器实例列表
    30  	ContainerInstanceList []*ContainerInstance `json:"ContainerInstanceList"`
    31  	// 容器实例总数
    32  	TotalCount int64 `json:"TotalCount"`
    33  }