public class DescribeKeyPairsRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| DescribeKeyPairsRequest() | 
| DescribeKeyPairsRequest(DescribeKeyPairsRequest source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| Filter[] | getFilters()Get 过滤器列表。
key-id按照【密钥对ID】进行过滤。
类型:String
必选:否
key-name按照【密钥对名称】进行过滤(支持模糊匹配)。
类型:String
必选:否
tag-key
按照【标签键】进行过滤。 类型:String 必选:否
tag-value
按照【标签值】进行过滤。 类型:String 必选:否
tag:tag-key
按照【标签键值对】进行过滤。 tag-key使用具体的标签键进行替换。
每次请求的 Filters 的上限为 10,Filter.Values 的上限为 5。参数不支持同时指定 KeyIds 和 Filters。 | 
| String[] | getKeyIds()Get 密钥对 ID 列表。可通过[DescribeKeyPairs](https://cloud.tencent.com/document/product/1207/55540)接口返回值字段KeyPairSet获取。列表长度最大值为100。 | 
| Long | getLimit()Get 返回数量,默认为 20,最大值为 100。 | 
| Long | getOffset()Get 偏移量,默认为 0。 | 
| void | setFilters(Filter[] Filters)Set 过滤器列表。
key-id按照【密钥对ID】进行过滤。
类型:String
必选:否
key-name按照【密钥对名称】进行过滤(支持模糊匹配)。
类型:String
必选:否
tag-key
按照【标签键】进行过滤。 类型:String 必选:否
tag-value
按照【标签值】进行过滤。 类型:String 必选:否
tag:tag-key
按照【标签键值对】进行过滤。 tag-key使用具体的标签键进行替换。
每次请求的 Filters 的上限为 10,Filter.Values 的上限为 5。参数不支持同时指定 KeyIds 和 Filters。 | 
| void | setKeyIds(String[] KeyIds)Set 密钥对 ID 列表。可通过[DescribeKeyPairs](https://cloud.tencent.com/document/product/1207/55540)接口返回值字段KeyPairSet获取。列表长度最大值为100。 | 
| void | setLimit(Long Limit)Set 返回数量,默认为 20,最大值为 100。 | 
| void | setOffset(Long Offset)Set 偏移量,默认为 0。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic DescribeKeyPairsRequest()
public DescribeKeyPairsRequest(DescribeKeyPairsRequest source)
public String[] getKeyIds()
public void setKeyIds(String[] KeyIds)
KeyIds - 密钥对 ID 列表。可通过[DescribeKeyPairs](https://cloud.tencent.com/document/product/1207/55540)接口返回值字段KeyPairSet获取。列表长度最大值为100。public Long getOffset()
public void setOffset(Long Offset)
Offset - 偏移量,默认为 0。public Long getLimit()
public void setLimit(Long Limit)
Limit - 返回数量,默认为 20,最大值为 100。public Filter[] getFilters()
public void setFilters(Filter[] Filters)
Filters - 过滤器列表。
Copyright © 2025. All rights reserved.