所属服务

keypair

Action

ListKeyPair

Version

2018-02-08

Method

GET

描述

查询用户的秘钥对列表

请求参数

参数名称说明参数类型是否必填
Offset分页起始偏移量integer
Limit每页大小integer
ActionListKeyPairstring
Version2018-02-08string

返回参数

返回参数被覆盖

错误码

错误码(Code)错误提示(Message)http status code说明
Success处理成功200null

请求示例

curl -X GET \
'{G0Host}/keypair?Action=ListKeyPair&Version=2018-02-08&Limit=2&Offset=0' \
-H 'Accept: application/json;charset=UTF-8' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'X-163-RequestId: 143a65c7-30b9-4582-b132-0f665b9d5851' \
-H 'X-163-AcceptLanguage: zh' \
-H 'X-163-SignatureVersion: 2.0' \
-H 'X-163-SignatureNonce: 300e7ec3-24d8-400b-813c-249856aea1eb' \
-H 'X-163-DryRun: false' \
-H 'X-163-Date: 2018-08-21T01:56:33Z' \
-H 'host: {G0Host}' \
-H 'Authorization: HMAC-SHA256 Credential=bd9e3a3d25fa4deda81d7d6954a34342/20180821/cn-east-1/keypair/163_request, SignedHeaders=host;x-163-acceptlanguage;x-163-date;x-163-dryrun;x-163-signaturenonce;x-163-signatureversion, Signature=304487c3c800019029dded14fb9ed1a93051ec6b44b41865ffe9913a1ff49820' \

返回示例

{
    "Message":"处理成功",
    "RequestId":"143a65c7-30b9-4582-b132-0f665b9d5851",
    "Results":[
        {
            "KeyName":"68898a4bbe524039b7e9486b6f2e24c3",
            "Fingerprint":"de:f2:22:36:39:dc:76:bb:68:19:a2:45:af:c4:58:b8",
            "PublicKey":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCiQH+SchY0kq78n1YtlSu/1ZfoMfbcGlpJP20E/fGJ6SiDj5Jk5W1h1+aOxwtx1Nt4ckPQhtBhMPoKJlSYfVXbC8f+z37lwHZA/yksgWRW/Z0dBMdtLNSP3z19CzQHy88LdIXe9bxooTghmmWLvG0a2WN9oYZ7GBnvBt9y7ZR7y2uH6nw5JbgdCqQrNs/XOdBts8NTtlRgs1lxfEPwufvHndTqKVengs1qJrcPlJza4sKpIZ3L92KIi9GCyNv/nJZ98Ec51Hxm2lWP7lR845cQhEvE4LGPH3OgsD/cX0apHXLKBY4C5j3iJgaqyNEIpFJDqiWILVMFKaQaB4GOnCX5 web_develop02@163.com on @ cloudcomb
",
            "CreateTime":"2018-08-16T03:28:37Z",
            "Id":3616
        },
        {
            "KeyName":"5ad6c59000f5437aba97700e22f46993",
            "Fingerprint":"aa:b9:f8:a6:f8:77:08:7a:58:f0:99:ef:7b:6a:df:35",
            "PublicKey":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCy9kQXBt20MQpLNm/veykXbOXkTf3rFCDwOdgObHrIwiARkNbf+BQGccW6Q9W/CPyOsQJ0DlABEL1cfSRnXxf1XQUje+vDRsPZ1DsjZ70xkfo7cx/RPVB/02mmjWsO94kBxVnDD1AQvL70EvTi2fPYTq26cLeIxH1DkijB9izpGho9NDbaAqrADLkqSvb9Qm5cJbgy4lGyrh079wnLDUZbjd7cEh1Hhd8g4osgzBfRQpNqvIx6dnW7asqhw8hnc5dixie3fKwBwRD7nwPBl8AhHy0MAqOTTqQkDNOycCdLWzKaPaO4qMIZDhwx/PaaxCvL2+HhDO3i0kuu/PGFTiRf web_develop02@163.com on @ cloudcomb
",
            "CreateTime":"2018-08-16T03:10:34Z",
            "Id":3604
        }
    ],
    "Total":19,
    "Code":"Success"
}