呼叫 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. | |
| 400 | ResourceNotFound.PhysicalConnectionId | PhysicalConnection is not found. | |
| 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. | |
| 404 | InvalidPhysicalConnectionId.NotFound | The PhysicalConnectionId provided does not exist in our records. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。