Home >Operation and Maintenance >Linux Operation and Maintenance >How to quickly and easily delete one or more SSH key pairs

How to quickly and easily delete one or more SSH key pairs

坏嘻嘻
坏嘻嘻Original
2018-09-25 16:08:416882browse

The content of this article is about how to quickly and easily delete one or more SSH key pairs. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

DeleteKeyPairs

Delete one or more SSH key pairs. After you delete the SSH key pair, we will no longer save the SSH key pair for you, but the bound instance can use the SSH key pair normally, and its SSH key pair name is still displayed in the instance details.

Description

When calling this interface, you need to pay attention:

After deleting the SSH key pair, you will not be able to Query the SSH key pair through DescribeKeyPairs.

When querying instance information (DescribeInstances), the SSH key pair name (KeyPairNames) will be displayed, and other information about the SSH key pair will no longer be displayed.

Request parameters

How to quickly and easily delete one or more SSH key pairs

##Return parameters

are all public return parameters. See Public Parameters.

Example

Request example

https://ecs.aliyuncs.com/?Action=DeleteKeyPairs
&RegionId=cn-qingdao
&KeyPairNames=test
&<公共请求参数>

Return example

XML format

<DeleteKeyPairsResponse>
    <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
</DeleteKeyPairsResponse>

JSON format

{
    "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}

Error code

The following are error codes unique to this interface. For more error codes, please visit the API Error Center.

How to quickly and easily delete one or more SSH key pairs

The above is the detailed content of How to quickly and easily delete one or more SSH key pairs. 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