You can call this operation to associate a Smart Access Gateway (SAG) instance with a Cloud Connect Network (CCN) instance.

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 BindSmartAccessGateway

The operation that you want to perform.

Set the value to BindSmartAccessGateway.

CcnId String Yes ccn-isdjvvkexkrpk*****

The ID of the CCN instance with which you want to associate the SAG instance.

SmartAGId String Yes sag-m7ez44zpayma*****

The ID of the SAG instance.

RegionId String No cn-hangzhou

The ID of the region where the SAG instance 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 8A3FF8DD-B27D-4ED2-B032-5EF90B38195D

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=BindSmartAccessGateway
&CcnId=ccn-isdjvvkexkrpk*****
&SmartAGId=sag-m7ez44zpayma*****
&<Common request parameters>

Sample success responses

XML format

<BindSmartAccessGatewayResponse>
    <RequestId>6877D55B-08F7-4DA3-916B-32A6FD402E06</RequestId>
</BindSmartAccessGatewayResponse>

JSON format

{
   "RequestId":"6877D55B-08F7-4DA3-916B-32A6FD402E06"
}

Error codes

HttpCode Error code Error message Description
403 CidrConflict Cidr is conflict, Please Check your input. The error message returned because the specified CIDR blocks overlap with each other. Check the specified CIDR blocks.
403 MissingParameter The input parameter is missing, please check your input. The error message returned because a required parameter is not set. Check whether you have set all required parameters.
403 InvalidId.CCN Invalid cloud connect network id. The error message returned because the specified CCN instance ID is invalid.
403 InvalidId.SMARTAG The specified smart access gateway instance id is invalid. The error message returned because the specified SAG instance ID is invalid.
403 SmartAccessGatewayAlreadyBound The smart access gateway already bound. The error message returned because the specified SAG instance is already associated with a CCN instance.
500 TunnelIdDistributeError Tunnel id distribute error. The error message returned because an error occurred while allocating tunnel IDs.
403 TunnelIdNotEnough Tunnel id is not enough. The error message returned because the number of tunnel IDs are insufficient.
500 UpdateError.SMARTAG Update smart access gateway error. The error message returned because an error occurred while updating the specified SAG instance.
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.
500 SmartAccessGatewayInArrears The specified Smart Access Gateway has expired. The error message returned because the specified SAG instance has expired. Renew the SAG instance first.
500 SmartAccessGatewayNotActivated The specified Smart Access Gateway has not been activated. The error message returned because the specified SAG has not been activated. Activate the SAG instance first.
400 SAG.NoBindSN The specified SAG is not bound with a serial number. Please perform binding first. The error message returned because the SAG instance is not associated with an SAG device. Associate an SAG device with the SAG instance first.
400 SAG.NoBandwidth Buy bandwidth for the specified SAG instance before binding it to a CCN instance. The error message returned because the specified SAG instance is not assigned bandwidth resources. Purchase bandwidth resources for the SAG instance before you associate the SAG instance with a CCN instance.
400 NotBoundCEN Bind the specified CCN instance to a CEN instance first. The error message returned because the specified CCN instance is not associated with a Cloud Enterprise Network (CEN) instance. Associate the CCN instance with a CEN instance first.
400 SAG.VbrNotBondCen Bind the specified VBR instance to a CEN instance first. The error message returned because the specified virtual border router (VBR) is not associated with a CEN instance. Associate the VBR with a CEN instance first.
403 VbrConflict.ChangeSubnet The subnet of the gateway conflicts with the VBR. Modify the subnet first. The error message returned because the subnet CIDR blocks of the specified SAG instance overlap with the CIDR block of the VBR. Check the specified CIDR blocks.
400 AlreadyBound.CCN The specified SAG instance is bound to another CCN instance. Unbind them first. The error message returned because the specified SAG instance is already associated with another CCN instance. Disassociate the SAG instance from the CCN instance 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 a leased line.

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