Home >Operation and Maintenance >Linux Operation and Maintenance >How to query one or more key pairs using DescribeKeyPairs

How to query one or more key pairs using DescribeKeyPairs

坏嘻嘻
坏嘻嘻Original
2018-09-25 16:14:152279browse

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

How to query one or more key pairs using DescribeKeyPairs

Return parameters

How to query one or more key pairs using DescribeKeyPairs

##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.

How to query one or more key pairs using DescribeKeyPairs

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn