DetachClassicLinkVpc_云服务器 ECS_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

流控信息

请求速率为10/60(s)。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
ecs:DetachClassicLinkVpc
Update
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
VPC
acs:vpc:{#regionId}:{#accountId}:vpc/{#vpcId}

请求参数

字段名称字段详情
RegionIdstring

实例所属的地域 ID。您可以调用 DescribeRegions 查看最新的阿里云地域列表。

示例值:cn-hangzhou参考取值来源:
    DescribeRegions
InstanceIdstring

经典网络类型实例 ID。

示例值:i-bp67acfmxazb4p****参考取值来源:
    RunInstances
    StopInstances
    CreateInstance
    StartInstances
    RebootInstances
    DescribeInstances
    ModifyManagedInstance
    RenewReservedInstances
    DetachInstanceRamRole
    AttachInstanceRamRole
    DeregisterManagedInstance
    PurchaseReservedInstancesOffering
VpcIdstring

实例连接的 VPC ID。

示例值:vpc-bp67acfmxazb4p****

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

返回示例

错误返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
403
InvalidInstanceId.NotFound
The InstanceId provided does not exist in our records.诊断
403
InvalidRegionId.Malformed
The specified parameter ?RegionId? is not valid.诊断
403
InvalidVpcId.Malformed
The specified parameter ?VpcId? is not valid.诊断
403
InvalidInstanceId.MalFormed
The specified instance is not a classic network instance.诊断
403
OperationDenied
The instances are not allowed to detach from the linked vpc.诊断
403
InvalidParameter.InvalidInstanceIdAndVpcId
The parameter InstanceId and VpcId are not allowed to be empty at the same time.诊断
403
InvalidStatus.InstanceStatus
The specified instance status is not support this operation ,expect status is running or shutted.诊断
403
InvalidInstanceId.NotBelong
The specified instance is not belong to you.诊断
403
Forbidden.SubUser
User not authorized to operate on the specified resource.诊断
403
InvalidOperation.InvalidVpc
The specified instance not link specify vpc.诊断
403
InvalidRegionId.NotFound
The RegionId provided does not exist in our records.诊断
403
InvalidParameter.RegionIdAndInstanceId
The specified instance does not exist.诊断

变更历史

变更时间变更内容概要操作
2023-08-31
变更错误码403
2021-05-12
变更错误码403

相关示例