调用DeletePhysicalConnection接口删除物理专线连接。
接口说明
只能删除 Allocated、Confirmed、Rejected、Canceled、AllocationFailed 和 Terminated 状态的物理专线连接。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
vpc:DeletePhysicalConnection |
delete |
*PhysicalConnection
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
物理专线所在的地域 ID。 您可以通过调用 DescribeRegions 接口获取地域 ID。 |
cn-shanghai |
| PhysicalConnectionId |
string |
是 |
物理专线实例 ID。 |
pc-119mfjzm7********* |
| ClientToken |
string |
否 |
客户端 Token,用于保证请求的幂等性。 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过 64 个 ASCII 字符。 |
02fb3da4-130e-11e9-8e44-0016e04115b |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
示例
正常返回示例
JSON格式
{
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidPhysicalConnectionId.NotMatched | instance id not matched. | |
| 400 | Forbidden.VBRExists | physical connection 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.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. | 物理端口下存在边界路由器时不允许删除。 |
| 400 | OperationDenied.MacsecAttached | The operation is not allowed because of MacsecAttached. | 当前操作被拒绝因为物理专线上还有MACSec秘钥绑定中。 |
| 404 | InvalidPhysicalConnectionId.NotFound | The PhysicalConnectionId provided does not exist in our records. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。