欢迎登陆真网站,您的到来是我们的荣幸。 登陆 注册 忘记密码? ☆设为首页 △加入收藏
欢迎加入真幸福QQ群
电脑知识: 基础知识 网络技术 操作系统 办公软件 电脑维修 电脑安全 windows7 windows8 windows10 服务器教程 平板电脑 视频播放教程 网络应用 互联网 工具软件 浏览器教程 QQ技巧 输入法教程 影视制作 YY教程 wps教程 word教程 Excel教程 PowerPoint
云南西双版纳特产小花糯玉米真空包装


阿里云如何使用删除实例接口
阿里云如何使用查询实例列表接口
阿里云如何使用查询实例状态接口
阿里云如何使用修改实例VPC属性接口
阿里云如何使用修改实例属性接口
阿里云如何使用重启实例接口
阿里云停止实例的接口参数有哪些
Win7系统右下角小键盘图标不见了怎么办?
360安全卫士怎么更改默认软件?
开启Win8.1预览版隐藏“上帝模式”
阿里云如何使用将实例加入安全组接口
【 来源:网络 】【 点击:3 】 【 发布时间:2017_03_03 08:59:59 】

  将实例加入安全组

  描述

  将实例加入到指定的安全组。

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

  每个实例最多属于 5 个安全组

  每个安全组最多拥有个 1000 个实例

  请求参数

名称 类型 是否必须 描述
Action String 系统规定参数,取值:JoinSecurityGroup
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 值
InstanceSecurityGroupLimitExceeded Exceeding the allowed amount of security groups that an instance can be in. 400 实例加入的安全组数量达到上限
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 该资源目前被安全锁定被拒绝操作
SecurityGroupInstanceLimitExceeded Exceeding the allowed amount of instances of a security group. 403 该 SecurityGroup 内的 Instance 数量已经达到上限
InvalidInstanceId.Mismatch Specified instance and security group are not in the same VPC. 403 指定的实例和安全组不属于同一个虚拟专有网络
(包含另外两种特殊情况:
  1. 实例不属于 VPC 类型的,安全组属于 VPC 类型
  2. 实例属于 VPC 类型,安全组不属于 VPC 类型
InvalidInstanceId.AlreadyExists The specified instance is already in the specified security group. 403 指定的实例已经在指定的安全组中

  示例

  请求示例

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

  &InstanceId= i-instance1

  &SecurityGroupId=F876FF7BA984

  &<公共请求参数>

  返回示例

  XML格式

  

  473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

  

  JSON格式

  {

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

  }

本网站由川南居提供技术支持,fkzxf版权所有 浙ICP备12031891号
淳安分站 淳安分站