Cancels a physical connection. After a physical connection is cancelled, it enters the Canceled state.

You can only cancel physical connections that are not enabled, including physical connections in the Initial, Approved, Allocated, and Confirmed state.


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

Request parameters

Parameter Type Required? Example value Description
Action String  Yes CancelPhysicalConnection

The name of this action.

Value: CancelPhysicalConnection

PhysicalConnectionId String Yes pc-119mfjzm7

The ID of the physical connection.

RegionId String Yes cn-shanghai

The region to which the physical connection belongs. 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.

Response parameters

Parameter Type Example value Description
RequestId String 4EC47282-1B74-4534-BD0E-403F3EE64CAF

The request ID.


Request example

http(s)://[Endpoint]/? Action=CancelPhysicalConnection

Response examples

XML format


JSON format


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 status of the physical connection does not allow this request.

See common error codes.