Home  >  Article  >  Operation and Maintenance  >  How to move an instance out of the specified security group when calling the interface

How to move an instance out of the specified security group when calling the interface

坏嘻嘻
坏嘻嘻Original
2018-09-25 14:03:242231browse

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

How to move an instance out of the specified security group when calling the interface

##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.

How to move an instance out of the specified security group when calling the interface

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!

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