DeletePhysicalConnection - 删除物理专线

更新时间:
复制 MD 格式

调用DeletePhysicalConnection接口删除物理专线连接。

接口说明

只能删除 AllocatedConfirmedRejectedCanceledAllocationFailedTerminated 状态的物理专线连接。

调试

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

调试

授权信息

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

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

vpc:DeletePhysicalConnection

delete

*PhysicalConnection

acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}

请求参数

名称

类型

必填

描述

示例值

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.

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

变更历史

更多信息,参考变更详情