github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/redis/describe_instances.go (about) 1 package redis 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 查询Redis实例列表 8 // https://cloud.tencent.com/document/api/239/20018 9 10 type DescribeInstancesRequest struct { 11 // 实例Id 12 InstanceId *string `name:"InstanceId,omitempty"` 13 // 实例名称 14 InstanceName *string `name:"InstanceName,omitempty"` 15 // 实例列表大小 16 Limit *int64 `name:"Limit,omitempty"` 17 // 偏移量,取Limit整数倍 18 Offset *int64 `name:"Offset,omitempty"` 19 // 枚举范围: projectId,createtime,instancename,type,curDeadline 20 OrderBy *string `name:"OrderBy,omitempty"` 21 // 1倒序,0顺序,默认倒序 22 OrderType *int64 `name:"OrderType,omitempty"` 23 // 项目ID 组成的数组,数组下标从0开始 24 ProjectIds []*int64 `name:"ProjectIds,omitempty"` 25 // 区域 26 Region string `name:"Region"` 27 // 查询的Region的列表。 28 RegionIds []*int64 `name:"RegionIds,omitempty"` 29 // 查找实例的ID。 30 SearchKey *string `name:"SearchKey,omitempty"` 31 // 子网ID数组,数组下标从0开始 32 SubnetIds []*string `name:"SubnetIds,omitempty"` 33 // 私有网络ID数组,数组下标从0开始,如果不传则默认选择基础网络 34 VpcIds []*string `name:"VpcIds,omitempty"` 35 } 36 37 func (req *DescribeInstancesRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeInstancesResponse, error) { 38 resp := &DescribeInstancesResponse{} 39 err := client.Request("redis", "DescribeInstances", "2018-04-12").Do(req, resp) 40 return resp, err 41 } 42 43 type DescribeInstancesResponse struct { 44 github_com_morlay_goqcloud.TencentCloudBaseResponse 45 // 实例详细信息列表 46 InstanceSet []*InstanceSet `json:"InstanceSet"` 47 // 实例数 48 TotalCount int64 `json:"TotalCount"` 49 }