Attaches a Smart Access Gateway instance to a Cloud Connect Network (CCN) instance.

Debug

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

Request parameters

Parameter Type Required? Example value Description
CcnId String Yes ccn-isdjvvkexkrpk*****

The ID of the CCN instance to attach.

SmartAGId String Yes sag-m7ez44zpayma*****

The ID of the Smart Access Gateway instance.

Action String No BindSmartAccessGateway

The name of this action.

Value: BindSmartAccessGateway

RegionId String No cn-hangzhou

The area to which the Smart Access Gateway instance belongs.

Response parameters

Parameter Type Example value Description
RequestId String 8A3FF8DD-B27D-4ED2-B032-5EF90B38195D

The ID of the request.

Examples

Request example


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

Response examples

XML format

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

JSON format

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

Error codes

HTTP status code Error code Error message Description
403 CidrConflict Cidr is conflict, Please Check your input. The CIDR blocks are in conflict.
403 MissingParameter The input parameter is missing, please check your input. The required parameters are missing.
403 InvalidId.CCN Invalid cloud connect network id. The specified CCN ID is invalid.
403 InvalidId.SMARTAG The specified smart access gateway instance id is invalid. The specified Smart Access Gateway ID is invalid.
403 SmartAccessGatewayAlreadyBound The smart access gateway already bound. The specified Smart Access Gateway instance is already attached to a CCN instance.
500 TunnelIdDistributeError Tunnel id distribute error. An error occurred while the tunnel ID is being distributed.
403 TunnelIdNotEnough Tunnel id is not enough. The tunnel IDs are not enough.
500 UpdateError.SMARTAG Update smart access gateway error. An error occurred while the Smart Access Gateway instance is being upgraded.
403 Forbidden User not authorized to operate on the specified resource. You are not authorized to operate on this resource.
500 SmartAccessGatewayInArrears The specified Smart Access Gateway has expired. The specified Smart Access Gateway instance has expired.
500 SmartAccessGatewayNotActivated The specified Smart Access Gateway has not been activated. The specified Smart Access Gateway instance has not been activated.

See common error codes.