文档

AttachEaisEi - 挂载EAIS实例

更新时间:

将弹性加速计算实例绑定到客户端实例(即ECS实例或ECI实例)上。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
eais:AttachEaisEi
  • Instance
    acs:eais:{#regionId}:{#accountId}:instance/{#InstanceId}
  • Instance
    acs:ecs:{#regionId}:{#accountId}:instance/{#InstanceId}
  • ContainerGroup
    acs:eci:{#regionId}:{#accountId}:containergroup/{#ContainerGroupId}

请求参数

名称类型必填描述示例值
RegionIdstring

实例所属的地域 ID。

cn-hangzhou
ClientInstanceIdstring

待绑定的 ECS 或 ECI 实例 ID。

i-bp14ws9hbt1oe0u9****
EiInstanceIdstring

EAIS 实例 ID。不设置该参数时,会自动查询用户账号下符合条件的可绑定实例,并选择查询出的第一个实例进行绑定。

eais-hzu00xufs1c8j5nn****
EiInstanceTypestring

EAIS 实例的规格。当未指定 EiInstanceId 参数时,可以设置该参数来限制绑定的 EAIS 实例规格;指定了 EiInstanceId 参数时,该参数不生效。取值范围:

  • eais.ei-a6.4xlarge
  • eais.ei-a6.2xlarge
  • eais.ei-a6.xlarge
  • eais.ei-a6.large
eais.ei-a6.2xlarge

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

请求 ID。

C3BCB7DA-BEB6-4982-A765-6EA61EC8****
EiInstanceIdstring

EAIS 实例 ID。

eais-hzu00xufs1c8j5nn****
ClientInstanceIdstring

ECS 或 ECI 实例 ID。

i-bp14ws9hbt1oe0u9****

示例

正常返回示例

JSON格式

{
  "RequestId": "C3BCB7DA-BEB6-4982-A765-6EA61EC8****",
  "EiInstanceId": "eais-hzu00xufs1c8j5nn****",
  "ClientInstanceId": "i-bp14ws9hbt1oe0u9****"
}

错误码

HTTP status code错误码错误信息描述
400InvalidClientInstanceId.NotBoundThe client instance is not bound.客户端实例未绑定。
400InvalidClientInstanceId.NotFoundThe client instance does not exist or is not bound.客户端实例不存在或未绑定。
400InvalidClientInstanceId.TypeErrorThe client instance ID is invalid. Currently, only ECS or ECI instances can be bound.无效的客户端实例ID, 目前只支持绑定ECS或ECI实例。
400InvalidClientInstanceId.TypeErrorThe client instance ID is invalid. The current instance only supports binding ECS instances.无效的客户端实例ID, 当前实例只支持绑定ECS实例。
400InvalidClientInstanceId.VpcIdErrorThe client instance is invalid. Please make sure that the VpcId of the client instance and the VpcId of the EAIS instance are the same.无效的客户端实例,请确保客户端实例与EAIS实例的专有网络VpcId一致。
400InvalidClientInstanceId.VSwitchIdErrorThe client instance is invalid. Please make sure that the VSwitchId of the client instance and the VSwitchId of the EAIS instance are the same.无效的客户端实例,请确保客户端实例与EAIS实例的交换机VSwitchId一致。
404InvalidClientInstanceId.ForbiddenPlease make sure the ClientInstanceId exists and belongs to you.无效的客户端实例ID, 请确定该实例存在并归属于您。

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史
  • 本页导读 (1)
文档反馈