All Products
Search
Document Center

Smart Access Gateway:DisassociateQos

Last Updated:Aug 18, 2023

Disassociates a Smart Access Gateway (SAG) instance from a Quality of Service (QoS) policy.

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.

debugging

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:
    • The required resource types are displayed in bold characters.
    • 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:DisassociateQosWrite
  • Smartag
    acs:smartag:{#regionId}:{#accountId}:qos/{#QosId}
  • Smartag
    acs:smartag:{#regionId}:{#accountId}:smartag/{#SmartAGId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The ID of the region to which the QoS policy belongs.

cn-hangzhou
QosIdstringYes

The instance ID of the QoS policy.

qos-1lcl9gv5ew7x****
SmartAGIdstringYes

The ID of the SAG instance to be disassociated.

sag-c3m3n1khz58l****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

551CD836-9E46-4F2C-A167-B4363180A647

Examples

Sample success responses

JSONformat

{
  "RequestId": "551CD836-9E46-4F2C-A167-B4363180A647"
}

Error codes

HTTP status codeError codeError messageDescription
400MissParameter.RegionIdYou must specify RegionId.You must set the RegionId parameter.
400MissParameter.QosIdYou must specify QosId.You must set the QosId parameter.
400MissParameter.SmartAGIdYou must specify SmartAGId.You must specify SmartAGId.
400InvalidId.QosThe specified QosId is invalid.The QosId parameter is set to an invalid value.
400SmartAGNotAssociateQosThe specified smart access gateway is not associated with the specified QoS.The specified smart access gateway is not associated with the specified QoS.
403InternalErrorAn internal server error occurred.An internal server error occurred.
403InvalidId.SMARTAGThe specified smart access gateway instance id is invalid.The SAG instance ID is invalid.

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