Deletes a physical connection.

You can only delete a physical connection in the Rejected, Canceled, AllocationFailed, or Terminated status.

Debug

By using API Explorer, you can easily debug APIs, automatically generate SDK code examples, and quickly search for APIs.

Request parameters

Parameter Type Required? Example value Description
Action String Yes DeletePhysicalConnection

The name of this action. Value: 

DeletePhysicalConnection

RegionId String Yes pc-119mfjzm7

The region where the physical connection is located.

To query the region ID, call DescribeRegions.

PhysicalConnectionId String Yes cn-shanghai

The ID of the physical connection.

Response parameters

Parameter Type Example value Description
RequestId String 2B3670CD-670E-4540-8C13-6DE929AEDD3B The ID of the request.

Examples

Request example


https://vpc.aliyuncs.com/?Action=DeletePhysicalConnection
&PhysicalConnectionId=pc-119mfjzm7
&RegionId=cn-shanghai
&<CommonParameters>
Response example
  • 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 instance IDs do not match.
400 Forbidden.VBRExists vbr owner's vbr still exists. A VBR still exists.
400 Forbidden.AssociateToVBR The physical connection still associate to VBR. The physical connection is already associated with a VBR.

See common error codes