/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ namespace TencentCloud.Tke.V20180525.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class DescribeExistedInstancesRequest : AbstractModel { /// /// 集群 ID,请填写查询集群列表 接口中返回的 ClusterId 字段(仅通过ClusterId获取需要过滤条件中的VPCID。节点状态比较时会使用该地域下所有集群中的节点进行比较。参数不支持同时指定InstanceIds和ClusterId。 /// [JsonProperty("ClusterId")] public string ClusterId{ get; set; } /// /// 按照一个或者多个实例ID查询。实例ID形如:ins-xxxxxxxx。(此参数的具体格式可参考API简介的id.N一节)。每次请求的实例的上限为100。参数不支持同时指定InstanceIds和Filters。 /// [JsonProperty("InstanceIds")] public string[] InstanceIds{ get; set; } /// /// 过滤条件,字段和详见[CVM查询实例](https://cloud.tencent.com/document/api/213/15728)如果设置了ClusterId,会附加集群的VPCID作为查询字段,在此情况下如果在Filter中指定了"vpc-id"作为过滤字段,指定的VPCID必须与集群的VPCID相同。 /// [JsonProperty("Filters")] public Filter[] Filters{ get; set; } /// /// 实例IP进行过滤(同时支持内网IP和外网IP) /// [JsonProperty("VagueIpAddress")] public string VagueIpAddress{ get; set; } /// /// 实例名称进行过滤 /// [JsonProperty("VagueInstanceName")] public string VagueInstanceName{ get; set; } /// /// 偏移量,默认为0。关于Offset的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 /// [JsonProperty("Offset")] public ulong? Offset{ get; set; } /// /// 返回数量,默认为20,最大值为100。关于Limit的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 /// [JsonProperty("Limit")] public ulong? Limit{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "ClusterId", this.ClusterId); this.SetParamArraySimple(map, prefix + "InstanceIds.", this.InstanceIds); this.SetParamArrayObj(map, prefix + "Filters.", this.Filters); this.SetParamSimple(map, prefix + "VagueIpAddress", this.VagueIpAddress); this.SetParamSimple(map, prefix + "VagueInstanceName", this.VagueInstanceName); this.SetParamSimple(map, prefix + "Offset", this.Offset); this.SetParamSimple(map, prefix + "Limit", this.Limit); } } }