You can call this operation to associate a Smart Access Gateway (SAG) instance with a virtual border router (VBR).

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 No BindVbr

The operation that you want to perform.

Set the value to BindVbr.

RegionId String Yes cn-hangzhou

The ID of the region where the SAG instance is deployed.

SmartAGId String Yes sag-jed****************

The ID of the SAG instance.

VbrId String Yes vbr-shf************

The ID of the VBR that you want to associate with the SAG instance.

VbrRegionId String Yes cn-hangzhou

The ID of the region where the VBR is deployed.

SmartAGUid Long No 1688401595963306

The UID of the Alibaba Cloud account that owns the SAG instance.

Response parameters

Parameter Type Example Description
RequestId String 09A2010F-602B-4EC6-A60F-9914AAE2DCA0

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=BindVbr
&RegionId=cn-hangzhou
&SmartAGId=sag-jed****************
&VbrId=vbr-shf************
&VbrRegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<BindVbrResponse>
	  <RequestId>09A2010F-602B-4EC6-A60F-9914AAE2DCA0</RequestId>
</BindVbrResponse>

JSON format

{
    "RequestId":"09A2010F-602B-4EC6-A60F-9914AAE2DCA0"
}

Error codes

HttpCode Error code Error message Description
400 Forbbiden.SubUser You are not authorized to operate on the specified resource. The error message returned because the RAM user does not have the permission to manage the specified resource.
403 Forbidden User not authorized to operate on the specified resource. The error message returned because you do not have the permission to manage the specified resource.
403 InvalidId.SMARTAG The specified smart access gateway instance id is invalid. The error message returned because the specified SAG instance ID is invalid.
400 InvalidId.VBR The specified VBR instance is invalid. You must specify a VBR instance that is associated with an ECC instance. The error message returned because the specified VBR is invalid. Check whether the VBR is an Express Cloud Connect (ECC) instance.
400 SAG.SoftwareNoSupportVbr You cannot bind an SAG software instance with a VBR instance. The error message returned because the specified SAG instance cannot be associated with VBRs.
403 NotBoundCCN The specified smart access gateway has not bound CCN; please bind CCN first. The error message returned because the specified SAG instance is not associated with a Cloud Connect Network (CCN) instance. Associate the SAG instance with a CCN instance first.
403 FeatureNotSupport The current edition of the smart access gateway does not support this feature. The error message returned because the current version of the specified SAG instance does not support this feature.
400 SAG.VbrNotBondCen Bind the specified VBR instance to a CEN instance first. The error message returned because the specified VBR is not associated with a Cloud Enterprise Network (CEN) instance. Associate the VBR with a CEN instance first.
403 VbrConflict.CreateBackup The subnet of the gateway conflicts with the VBR. Create a backup relationship first. The error message returned because the subnet CIDR block of the specified SAG instance overlap with the CIDR block of the specified VBR. Deploy the SAG instance as a backup of the leased line first.
400 SAG.VbrBound The specified SAG instance is bound to another VBR instance. Unbind them first. The error message returned because the specified SAG instance is already associated with a VBR. Disassociate the SAG instance from the VBR first.
400 LinkLevelBackupExists The specified SAG instance is already used as a leased line backup. The error message returned because the specified SAG instance is already used as a backup of the leased line.
400 SAG.VbrBoundToSAG The specified VBR instance is bound to another SAG instance. Unbind them first. The error message returned because the specified VBR is already associated with another SAG instance. Disassociate the VBR from the SAG instance first.
500 InternalError An error occurred while processing your request. The error message returned because an unknown error occurred.

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