Terminates a physical connection after the physical connection is enabled.

The physical connection changes to the Terminating state after this API is called and changes to the Terminated state after the termination is completed.

Note the following before you terminate a physical connection:

  • You can only terminate a physical connection that is in the Enabled state.
  • Before terminating a physical connection, you must delete the Virtual Border Routers (VBRs) associated with the physical connection.

Debug

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

Request parameters

Parameter Type Required? Example value Description
Action String  Yes TerminatePhysicalConnection

The name of this action.

Value: TerminatePhysicalConnection

PhysicalConnectionId String Yes pc-119mfjzm7

The ID of the physical connection to be terminated.

RegionId String Yes cn-hangzhou

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.

Response parameters

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

The request ID.

Examples

Request example


https://vpc.aliyuncs.com/?Action=TerminatePhysicalConnection
&PhysicalConnectionId=pc-119mfjzm7
&RegionId=cn-hangzhou
&<CommonParameters>

Response examples

XML format

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

JSON format

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

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.