Enables a physical connection in the Confirmed status. After being enabled, the physical connection changes to the Enabled status.

Note the following before you call this action:

  • You can only enable a physical connection in the Confirmed status.
  • The physical connection changes to the Enabled status after being enabled.

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 EnablePhysicalConnection

The name of this action. Value:

EnablePhysicalConnection

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 API-20365164-5b0d-460a-83c2-2189972b3349 The ID of the request.

Examples

Request example


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

    <EnablePhysicalConnectionResponse>
      <RequestId>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</RequestId>
    </EnablePhysicalConnectionResponse>
    
  • 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.

See common error codes