Cancels physical connection access. After the cancelling, the physical connection changes to the Canceled state.

You cannot cancel a physical connection that is in the Enabled state.

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 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 where the physical connection is located.

To query the region ID, call DescribeRegions.

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

A client token used to guarantee the idempotence of requests.

This parameter value is generated by the client and must be unique. It must be 1 to 64 ASCII characters in length.

Response parameters

Parameter Type Example value Description
RequestId String 4EC47282-1B74-4534-BD0E-403F3EE64CAF The ID of the request.

Examples

Request example


https://vpc.aliyuncs.com/?Action=CancelPhysicalConnection
&PhysicalConnectionId=pc-119mfjzm7
&RegionId=cn-shanghai
&<CommonParameters>
Response example

XML format

<RequestId>BE36E95A-F83E-4127-A29E-F2F35D4C999A</RequestId>

JSON format

{
	"RequestId":"BE36E95A-F83E-4127-A29E-F2F35D4C999A"
}

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.

See common error codes