Home >Operation and Maintenance >Linux Operation and Maintenance >How to query one or more key pairs using DescribeKeyPairs
This article introduces how to use DescribeKeyPairs to query one or more key pairs, and focuses on the specific steps. The content of this article is compact, and I hope you can gain something.
DescribeKeyPairs
Request Parameters
Return parameters
##Example
Request example
https://ecs.aliyuncs.com/?Action=DescribeKeyPairs &RegionId=cn-qingdao &KeyPairFingerPrint=xxxxxxxxxx &KeyPairName=test &PageNumber=1 &PageSize=20 &<公共请求参数>
Return example
XML format
<DescribeKeyPairsResponse> <PageNumber>1</PageNumber> <PageSize>2</PageSize> <TotalCount>1</TotalCount> <KeyPairs> <KeyPair> <KeyPairName>test</KeyPairName > <KeyPairFingerPrint>xxxxxxxxxx</KeyPairFingerPrint> </KeyPair> </KeyPairs> <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId> </DescribeKeyPairsResponse>
JSON Format
{ "PageNumber": 1, "PageSize": 2, "TotalCount": 1, "KeyPairs": { "KeyPair":[{ "KeyPairName": "test", "KeyPairFingerPrint": "xxxxxxxxxx" }] } "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E" }
Error code
The following are the error codes unique to this interface. For more error codes, please visit the API Error Center.The above is the detailed content of How to query one or more key pairs using DescribeKeyPairs. For more information, please follow other related articles on the PHP Chinese website!