Deletes a physical connection.

Note You can only delete a physical connection that is in the Rejected, Canceled, AllocationFailed, or Terminated state.

Debug

Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
Action String  Yes DeletePhysicalConnection

The name of this action.

Value: DeletePhysicalConnection

PhysicalConnectionId String Yes pc-119mfjzm7

The ID of the physical connection to be deleted.

RegionId String Yes cn-shanghai

The region of the physical connection.

To query the region ID, call DescribeRegions.

ClientToken String No 02fb3da4-130e-11e9-8e44-0016e04115b

Optional. The client token. It is used to guarantee the idempotence of the request. The value of this parameter is generated by the client and is unique among different requests. It can contain up to 64 ASCII characters.

UserCidr String No 30.100.0.0/16

Optional. The customer-side CIDR block. Separate multiple CIDR blocks by using commas (,). Up to three CIDR blocks are supported.

Response parameters

Parameter Type Example value Description
RequestId String 2B3670CD-670E-4540-8C13-6DE929AEDD3B

The request ID.

Examples

Request example


http(s)://[Endpoint]/? Action=DeletePhysicalConnection
&PhysicalConnectionId=pc-119mfjzm7
&RegionId=cn-shanghai
&<CommonParameters>

Response examples

XML format

<DeletePhysicalConnectionResponse>
  <RequestId>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</RequestId>
</DeletePhysicalConnectionResponse>

JSON format

{
	"RequestId":"0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}

Error codes

HTTP status code Error code Error message Description
404 InvalidPhysicalConnectionId.NotFound The PhysicalConnectionId provided does not exist in our records. The specified physical connection does not exist.
400 Forbidden.NotAllowedInState The request does not allow in this state. The request cannot be processed because the status of the resource does not permit this action.
400 InvalidPhysicalConnectionId.NotMatched instance id not matched. The specified physical connection ID is invalid.
400 Forbidden.VBRExists physical connection owner's vbr still exists. Virtual Border Routers (VBRs) related connections must be deleted.
400 Forbidden.VBRExists vbr owner's vbr still exists. VBRs associated with the physical connection must be deleted.
400 Forbidden.AssociateToVBR The physical connection still associate to VBR. The physical connection is associated with VBRs.

See common error codes.