github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cis/describe_container_instance.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/17773 9 10 type DescribeContainerInstanceRequest struct { 11 // 容器实例名称 12 InstanceName string `name:"InstanceName"` 13 // 区域 14 Region string `name:"Region"` 15 } 16 17 func (req *DescribeContainerInstanceRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeContainerInstanceResponse, error) { 18 resp := &DescribeContainerInstanceResponse{} 19 err := client.Request("cis", "DescribeContainerInstance", "2018-04-08").Do(req, resp) 20 return resp, err 21 } 22 23 type DescribeContainerInstanceResponse struct { 24 github_com_morlay_goqcloud.TencentCloudBaseResponse 25 // 容器实例详细信息 26 ContainerInstance ContainerInstance `json:"ContainerInstance"` 27 }