Aliyun How to move an instance out of a security group interface

Source: Internet
Author: User
Tags error code resource aliyun

  To move an instance out of a security group

Describe

Moves the instance out of the specified security group.

You can perform this operation only if the instance state is Stopped or Running state.

Each instance belongs to at least one security group, and if the instance belongs to only one security group, the request fails when you try to move out.

Request parameters

name type whether you must Description
Action String Is System specified parameters, values: Leavesecuritygroup
Instanceid String Is The specified instance ID
Securitygroupid String Is Security Group Code

return parameters

All public return parameters, as detailed in the public return parameters

Error code

Error code Description Http Status Code Semantics
Invalidinstanceid.notfound The Instanceid provided does not exist at our records. 60v The specified Instanceid does not exist
Missingparameter The input parameter "Instanceid" is mandatory to processing this request isn't supplied. 400 Missing Instanceid value
Invalidsecuritygroupid.notfound The securitygroupid provided does not exist at our records. 60v The specified securitygroupid does not exist
Missingparameter The input parameter "Securitygroupid" is mandatory to processing this request isn't supplied. 400 Missing securitygroupid value
Instancelastsecuritygroup The Securitygroup is the ' only one ' for the Instance. 403 The security group is the only security group for this instance
Incorrectinstancestatus The current status of the resource does is not support this operation. 403 The current state of the resource does not support this operation
Instancelockedforsecurity The specified operation is denied as your instance are locked for security reasons. 403 The resource is currently denied operation by security lockdown

Example

Request sample

Https://ecs.aliyuncs.com/?Action=LeaveSecurityGroup

&instanceid=i-instance1

&securitygroupid=f876ff7ba984

&< Public Request Parameters >

Return sample

XML format

  

473469c7-aa6f-4dc5-b3db-a3dc0de3c83e

  

JSON format

{

"RequestID": "473469c7-aa6f-4dc5-b3db-a3dc0de3c83e"

}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.