调用 DetachInstanceFromCen 接口,为云企业网实例卸载网络实例。
参数名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DetachInstanceFromCen | 要执行的操作,取值为DetachInstanceFromCen。 |
Version | String | 是 | 2020-04-01 | API版本信息,当前版本为2020-04-01。 |
CenId | String | 是 | cen-7qthudw0ll6jmc**** | 云企业网实例的ID。 |
InstanceRegionId | String | 是 | cn-beijing | 网络实例所在的地域。 |
InstanceType | String | 是 | VPC | 网络实例的类型,取值如下:
|
InstanceId | String | 是 | vpc-2fexiqjlgjif45oxruvso**** | 网络实例的ID。
|
本接口无特有的返回参数。更多信息请见返回结构。
GET /?Action=DetachInstanceFromCen&Version=2020-04-01&CenId=cen-7qthudw0ll6jmc****&InstanceId=vpc-2fexiqjlgjif45oxruvso****&InstanceType=vpc&InstanceRegionId=cn-beijing HTTP/1.1 Host: open.volcengineapi.com Service: cen Region: cn-beijing
{ "ResponseMetadata": { "RequestId": "202111161611080102121461940900****", "Action": "DetachInstanceFromCen", "Version": "2020-04-01", "Service": "cen", "Region": "cn-beijing" }, "Result": {} }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidCenAttachedInstance.CannotUpdate | Failed to update the specified attached instance, please try again later. | 更新指定的网络实例失败,请稍候再试。 |
400 | InvalidCenAttachedInstance.DcgwInvalidStatus | Specified direct connect gateway has been frozen. | 指定的专线网关已经被冻结。 |
400 | InvalidCenAttachedInstance.DcgwMismatch | The specified DCGW cannot be attached to CEN due to the lack of a virtual interface. | 指定的专线网关缺少虚拟接口,无法关联至云企业网实例。 |
400 | InvalidCenAttachedInstance.HasServiceRouteEntry | The specified CEN attached instance has configured service route entry and cannot be detached. | 指定的网络实例中存在已配置的云服务路由,不能卸载。 |
400 | InvalidCenAttachedInstance.HasVpcCustomRouteEntry | The specified CEN attached instance has published VPC custom route entry and cannot be detached. | 指定的网络实例中存在已发布的私有网络自定义路由,不能卸载。 |
400 | InvalidCenAttachedInstance.InvalidStatus | The specified instance is not in the correct status for the request. | 指定的网络实例所处状态无法响应该请求。 |
400 | InvalidCenAttachedInstance.Malformed | The specified instance type is malformed. | 指定的网络实例类型不支持。 |
400 | InvalidParameter | A parameter specified in the request is not valid, is unsupported or cannot be used. | 该请求传入了非法或不支持的参数。 |
400 | InvalidInstance.Isolated | The specified instance is abnormal and has been isolated. | 指定资源因异常而被隔离,请稍后重试。 |
404 | InvalidCenAttachedInstance.NotFound | The specified CEN attached instance does not exist. | 指定的网络实例不存在。 |
404 | InvalidCenAttachedInstance.NotMatch | The specified instance has not attached to the given CEN. | 指定的网络实例未加载到该云企业网实例。 |
404 | InvalidDcgwId.NotFound | The specified DCGW ID does not exist in this region. | 指定的地域内该专线网关不存在。 |
404 | InvalidVpcId.NotFound | The specified VPC ID does not exist in this region. | 指定的地域内该私有网络不存在。 |
409 | InvalidCen.InvalidStatus | The specified CEN instance is not in the correct status for the request. | 指定的云企业网实例所处的状态无法响应该请求,请稍后再试。 |
409 | InvalidCenAttachedInstance.Conflict | The specified instance has already been attached to Transit Router. | 指定的网络实例已加载至中转路由器。 |