Home > Article > Operation and Maintenance > How to quickly and easily delete one or more SSH key pairs
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
##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.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!