This article introduces how to move an instance out of the specified security group when calling the interface, and focuses on the specific steps. The content of this article is compact, and I hope you can gain something from it.
LeaveSecurityGroup
Move an instance out of the specified security group.
Description
When calling this interface, you need to note:
The instance must be stopped before moving out of the security group (Stopped) or running (Running) status.
An instance must join at least one security group. When the instance joins only one security group, the LeaveSecurityGroup request will fail.
Request parameters
##Return parameters
are all public return parameters. See Public Parameters.Example
Request example
https://ecs.aliyuncs.com/?Action=LeaveSecurityGroup &InstanceId=i-instance1 &SecurityGroupId=F876FF7BA984 &<公共请求参数>
Return example
XML format
<LeaveSecurityGroupResponse> <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId> </LeaveSecurityGroupResponse>
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 move an instance out of the specified security group when calling the interface. For more information, please follow other related articles on the PHP Chinese website!