All Products
Search
Document Center

Smart Access Gateway:DissociateSmartAGFromApplicationBandwidthPackage

Last Updated:Jul 31, 2025

Disassociates a Smart Access Gateway (SAG) instance from a bandwidth plan for application acceleration.

Operation description

When you call DissociateSmartAGFromApplicationBandwidthPackage, you can set the SmartAGId parameter to specify an SAG instance, or set the SmartAGIdList to specify multiple SAG instances.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
smartag:DissociateSmartAGFromApplicationBandwidthPackage
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DryRunbooleanNo

Specifies whether to precheck the request. Check items include permissions and the status of the specified cloud resources. Valid values:

  • false (default): sends the request. After the request passes the check, the SAG instance is disassociated from the bandwidth plan for application acceleration.
  • true: prechecks the request but does not disassociate the SAG instance from the bandwidth plan for application acceleration. If you use this value, the system checks the required parameters and the request syntax. If the request fails the precheck, an error message is returned. If the request passes the precheck, the DryRunOperation error code is returned.
false
ClientTokenstringNo

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

You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters.

Note If you do not set this parameter, ClientToken is set to the value of RequestId. The value of RequestId for each API request may be different.
02fb3da4-130e-11e9-8e44-001****
RegionIdstringYes

The region ID of the bandwidth plan for application acceleration.

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

cn-shanghai
ApplicationBandwidthPackageIdstringYes

The ID of the bandwidth plan for application acceleration.

abwp-7963l7iqnquyj3****
SmartAGIdstringNo

The ID of the SAG instance.

sag-w11hk4bqxpakem****
SmartAGIdListarrayNo

The list of the SAG instance id.

stringNo

The ID of the SAG instance.

You can specify at most 100 SAG instance IDs in each call.

sag-5oq6e314i26piy****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

4EC47282-1B74-4534-BD0E-403F3EE64CAF

Examples

Sample success responses

JSONformat

{
  "RequestId": "4EC47282-1B74-4534-BD0E-403F3EE64CAF"
}

Error codes

HTTP status codeError codeError messageDescription
400ResourceNotFound.ApplicationBandwidthPackageThe specified resource of ApplicationBandwidthPackage is not found.-
400ResourceNotAssociated.SmartAccessGatewayThe specified smart access gateway is not associated.The specified SAG instance is not associated.
404ResourceNotFound.SmartAccessGatewayThe specified resource of SmartAccessGateway is not found.-

For a list of error codes, visit the Service error codes.