Associates a virtual border router (VBR) with a hosted connection.

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 AttachVbrToVpconn

The operation that you want to perform. Set the value to AttachVbrToVpconn.

VpconnId String Yes pc-bp1mrgfbtmc9brre7****

The ID of the hosted connection.

VbrId String Yes vbr-bp133sn3nwjvu7twc****

The ID of the VBR.

Token String No CBCE910E-D396-4944-8****

The client token that is used to ensure the idempotence of the request.

The client token must be unique among different requests. It can contain only ASCII characters and cannot exceed 64 characters in length.

DryRun Boolean No false

Specifies whether to precheck the request only. Valid values:

  • true: only prechecks the request but does not associate the VBR with the hosted connection. The system prechecks the request syntax, instance status, and whether the required parameters are specified. An error message is returned if the request fails to pass the precheck. If the request passes the precheck, the system returns the ID of the request.
  • false (default): sends the request. If the request passes the precheck, the VBR is associated with the hosted connection.
RegionId String Yes cn-hangzhou

The region ID of the hosted connection.

You can call the DescribeRegions operation to query the most recent region list.

Response parameters

Parameter Type Example Description
RequestId String 5356F028-0F5C-56FC-8574-897D24379041

The ID of the request.

VirtualPhysicalConnection String pc-bp1mrgfbtmc9brre7****

The ID of the hosted connection.

Examples

Sample requests

http(s)://[Endpoint]/?Action=AttachVbrToVpconn
&VpconnId=pc-bp1mrgfbtmc9brre7****
&VbrId=vbr-bp133sn3nwjvu7twc****
&DryRun=false
&RegionId=cn-hangzhou
&<Common request parameters>

Sample responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<AttachVbrToVpconnResponse>
    <RequestId>5356F028-0F5C-56FC-8574-897D24379041</RequestId>
    <VirtualPhysicalConnection>pc-bp1mrgfbtmc9brre7****</VirtualPhysicalConnection>
</AttachVbrToVpconnResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "5356F028-0F5C-56FC-8574-897D24379041",
  "VirtualPhysicalConnection" : "pc-bp1mrgfbtmc9brre7****"
}

Error codes

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