LeaveSecurityGroup
Description
The call LeaveSecurityGroup moves an ECS instance out of the specified security group.
Request Method
POST
Request Path
/apsara/route/Ecs/LeaveSecurityGroup
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
InstanceId | BODY | string | Yes | i-bp67acfmxazb4ph*** | instance ID. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
SecurityGroupId | BODY | string | Yes | sg-bp67acfmxazb4ph*** | security group ID. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}