Disables a physical connection after it is enabled.

After you call this operation, the state of the physical connection becomes Terminating. After the physical connection is disabled, its state becomes Terminated.

When you call this operation, take note of the following limits:

  • You can disable only a physical connection that is in the Enabled state.
  • Before you disable a physical connection, you must delete the virtual border routers (VBRs) associated with it.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes TerminatePhysicalConnection

The operation that you want to perform.

Set the value to TerminatePhysicalConnection.

PhysicalConnectionId String Yes pc-119mfjzm****

The ID of the physical connection.

RegionId String Yes cn-hangzhou

The ID of the region where the physical connection is deployed.

You can call the DescribeRegions operation to query region IDs.

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

The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.

Response parameters

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

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=TerminatePhysicalConnection
&PhysicalConnectionId=pc-119mfjzm****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<TerminatePhysicalConnectionResponse>
    <RequestId>513E0A50-4F2D-4CBE-BF35-40559DF65D79</RequestId>
</TerminatePhysicalConnectionResponse>

JSON format

{
  "RequestId": "513E0A50-4F2D-4CBE-BF35-40559DF65D79"
}

Error codes

HttpCode Error code Error message Description
404 InvalidPhysicalConnectionId.NotFound The PhysicalConnectionId provided does not exist in our records. The error message returned because the specified physical connection does not exist.
400 Forbidden.NotAllowedInState The request does not allow in this state. The error message returned because the specified state is invalid and the operation cannot be performed.

For a list of error codes, visit the API Error Center.