欢迎来到山村网

阿里云如何使用将实例移出安全组接口

2019-03-09 10:13:41浏览:934 来源:山村网   
核心摘要:  将实例移出安全组  描述  将实例移出指定的安全组。  只有在实例状态为 Stopped 或 Running 状态下才可以执行该操作。

  将实例移出安全组

  描述

  将实例移出指定的安全组。

  只有在实例状态为 Stopped 或 Running 状态下才可以执行该操作。

  每个实例最少属于 1 个安全组,如果实例仅属于一个安全组,尝试移出时,请求会失败。

  请求参数

名称 类型 是否必须 描述 Action String 是 系统规定参数,取值:LeaveSecurityGroup InstanceId String 是 指定的实例 ID SecurityGroupId String 是 安全组代码

  返回参数

  全是公共返回参数,详见公共返回参数

  错误码

错误代码 描述 Http 状态码 语义 InvalidInstanceId.NotFound The InstanceId provided does not exist in our records. 404 指定的 InstanceId 不存在 MissingParameter The input parameter "InstanceId" that is mandatory for processing this request is not supplied. 400 缺少 InstanceId 值 InvalidSecurityGroupId.NotFound The SecurityGroupId provided does not exist in our records. 404 指定的 SecurityGroupId 不存在 MissingParameter The input parameter "SecurityGroupId" that is mandatory for processing this request is not supplied. 400 缺少 SecurityGroupId 值 InstanceLastSecurityGroup The SecurityGroup is the only one for the Instance. 403 该安全组是该实例唯一的安全组 IncorrectInstanceStatus The current status of the resource does not support this operation. 403 该资源目前的状态不支持此操作 InstanceLockedForSecurity The specified operation is denied as your instance is locked for security reasons. 403 该资源目前被安全锁定被拒绝操作

  示例

  请求示例

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

  &InstanceId=i-instance1

  &SecurityGroupId=F876FF7BA984

  &<公共请求参数>

  返回示例

  XML格式

  

  473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

  

  JSON格式

  {

  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"

  }

(责任编辑:豆豆)
下一篇:

家里的WiFi卡顿怎么解决

上一篇:

局域网中所有用户无法上网

  • 信息二维码

    手机看新闻

  • 分享到
打赏
免责声明
• 
本文仅代表作者个人观点,本站未对其内容进行核实,请读者仅做参考,如若文中涉及有违公德、触犯法律的内容,一经发现,立即删除,作者需自行承担相应责任。涉及到版权或其他问题,请及时联系我们 xfptx@outlook.com