调用DeletePhysicalConnection接口删除物理专线连接。
接口说明
只能删除 Allocated、Confirmed、Rejected、Canceled、AllocationFailed 和 Terminated 状态的物理专线连接。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| RegionId | string | 是 | 物理专线所在的地域 ID。 您可以通过调用 DescribeRegions 接口获取地域 ID。 | cn-shanghai |
| PhysicalConnectionId | string | 是 | 物理专线实例 ID。 | pc-119mfjzm7********* |
| ClientToken | string | 否 | 客户端 Token,用于保证请求的幂等性。 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过 64 个 ASCII 字符。 | 02fb3da4-130e-11e9-8e44-0016e04115b |
返回参数
示例
正常返回示例
JSON格式
{
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}错误码
| HTTP status code | 错误码 | 错误信息 | 描述 |
|---|---|---|---|
| 400 | InvalidPhysicalConnectionId.NotMatched | instance id not matched. | 实例ID不匹配。 |
| 400 | Forbidden.VBRExists | physical connection owner's vbr still exists. | 物理连接的VBR仍然存在。 |
| 400 | Forbidden.VBRExists | vbr owner's vbr still exists. | 边界路由器仍然存在。 |
| 400 | Forbidden.AssociateToVBR | The physical connection still associate to VBR. | 该物理专线已经关联了边界路由器。 |
| 400 | OperationDenied.NeedVpconnOwner | The operation is denied. | 删除失败,需要共享端口的用户去删除。 |
| 400 | OperationDenied.NeedPconnOwner | The operation is denied. | 删除失败,需要物理端口的用户去删除。 |
| 400 | Forbidden.VBRExists | The vbr still exists. | vbr仍然存在,无法删除端口。 |
| 400 | Forbidden.NotInAllowDeleteStatus | Only physical connection in the Cancelled, Rejected, Terminated, Allocated, or AllocationFailed states can be deleted. | 只有处于已取消、已拒绝、已终止、已分配、分配失败状态的物理专线才可以被删除。 |
| 400 | ResourceAlreadyAssociated.PconnQos | The specified resource of PconnQos is already associated. | 物理专线已经绑定到了其他的QoS策略上。 |
| 400 | ResourceNotFound.PhysicalConnectionId | PhysicalConnection is not found. | PhysicalConnectionId未找到。 |
| 400 | OperationDenied.NeedVpconnOwnerOrPconnOwner | The deletion failed. Only the owner of virtual physical connection or physical connection can delete it. | 删除失败,需要共享端口或独享端口的用户去删除。 |
| 400 | OperationDenied.ExistVbrInPhysicalConnection | It cannot be deleted when VBR exists. | 物理端口下存在边界路由器时不允许删除。 |
| 404 | InvalidPhysicalConnectionId.NotFound | The PhysicalConnectionId provided does not exist in our records. | 该物理专线不存在。 |
访问错误中心查看更多错误码。
变更历史
| 变更时间 | 变更内容概要 | 操作 |
|---|---|---|
| 2024-06-13 | OpenAPI 错误码发生变更 | 查看变更详情 |
| 2024-02-01 | OpenAPI 错误码发生变更 | 查看变更详情 |
| 2023-11-28 | OpenAPI 描述信息更新、OpenAPI 错误码发生变更 | 查看变更详情 |
