All Products
Search
Document Center

Smart Access Gateway:UnbindSmartAccessGateway

Last Updated:Aug 24, 2026

Unbinds a Smart Access Gateway from a specified Cloud Connect Network (CCN).

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

smartag:UnbindSmartAccessGateway

*CloudConnectNetwork

acs:smartag:{#regionId}:{#accountId}:ccn/{#CcnId}

*SmartAccessGateway

acs:smartag:{#regionId}:{#accountId}:smartag/{#SmartAGId}

None None

Request parameters

Parameter

Type

Required

Description

Example

CcnId

string

Yes

The ID of the Cloud Connect Network (CCN).

ccn-kygbldwikz********

SmartAGId

string

Yes

The ID of the Smart Access Gateway.

sag-0ovhf732a********

RegionId

string

Yes

The region to which the Smart Access Gateway belongs.

cn-hangzhou

SmartAGUid

integer

No

The user ID of the Smart Access Gateway instance.

1688401595963306

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

CE6642D4-21EB-4168-9BF9-F217953F9892

Examples

Success response

JSON format

{
  "RequestId": "CE6642D4-21EB-4168-9BF9-F217953F9892"
}

Error codes

HTTP status code

Error code

Error message

Description

400 OperationDenied.BondApplicationBandwidthPackage Because the application acceleration bandwidth package bound by the current instance is not allowed to unbind the cloud connection network, please unbind the application acceleration bandwidth package first.
400 SAG.DedicatedLineExist This SAG instance is used as a backup for a leased line. Unbind the SAG instance from the leased line first. This SAG instance is used as a backup for a leased line. Unbind the SAG instance from the leased line first.
400 NotBoundCEN Bind the specified CCN instance to a CEN instance first. Bind the specified CCN instance to a CEN instance first.
400 UnBinding The specified instance id unbinding. The Smart Access Gateway instance is being unbound. Please try again later.
500 SmartAccessGatewayNotActivated The specified Smart Access Gateway has not been activated.
403 MissingParameter The input parameter is missing, please check your input. Missing parameters. Check whether all required parameters are set.
403 InvalidId.SMARTAG The specified smart access gateway instance id is invalid. The SAG instance ID is invalid.
403 SmartAccessGatewayNotBind The instance has not yet been bound. The instance is not associated with a CCN instance.
403 Forbidden User not authorized to operate on the specified resource. You do not have permissions to manage the specified resource.
403 AlreadyBound.CEN This instance has been bound, please unbind first. The instance has been associated with a CEN instance. You must disassociate the instance from the CEN instance first.
403 NotBoundCCN The specified smart access gateway has not bound CCN; please bind CCN first. The SAG instance is not associated with a CCN instance. You must associate the SAG instance with a CCN instance first.
403 VbrConflict.ChangeSubnet The subnet of the gateway conflicts with the VBR. Modify the subnet first. The subnet CIDR block of the SAG instance is in conflict with the VBR. You must change the subnet CIDR block.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.