The content of this article is about how to unbind SSH key pairs for one or more Linux instances. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you. .
DetachKeyPair
Detach SSH key pairs for one or more Linux instances.
Description
When using this interface, please note:
After unbinding the SSH key pair, you need to restart instance (RebootInstance) to make changes take effect.
After unbinding the SSH key pair, the instance uses the username and password authentication method by default.
Request parameters
##Return parameters
are all public return parameters. See Public Parameters.Example
Request example
https://ecs.aliyuncs.com/?Action=DetachKeyPair &RegionId=cn-qingdao &InstanceIds=["i-xxxxxxx", "i-yyyyyyy"] &KeyPairName=test &<公共请求参数>
Return example
XML format
<DetachKeyPairResponse> <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId> </DetachKeyPairResponse>
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 unbind an SSH key pair for one or more Linux instances. For more information, please follow other related articles on the PHP Chinese website!