Queries Smart Access Gateway (SAG) instances that are not associated with a flow log in a specific region.
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
smartag:DescribeUnbindFlowLogSags | Read |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region where the SAG instances are deployed. You can call the DescribeRegions operation to query the most recent region list. | cn-shanghai |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "C850C10E-9856-45FF-8640-80288BA467DF",
"Count": 20,
"Sags": {
"Sag": [
{
"Description": "desctest",
"SmartAGId": "sag-tzirqx07bvcngm****",
"Name": "sj1000-yf-01"
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | DependencyViolation.FlowLog | This FlowLog instance is bound to an SAG instance. | This flow log associated with a resource. |
400 | IncorrectStatus.FlowLog | The current FlowLog instance status does not support this operation. | The status of the flow log is invalid. |
400 | InvalidFlowLogId.NotFound | The specified FlowLogId does not exist. | The specified FlowLogId does not exist. |
400 | MissingParam.FlowLogId | Specify the FlowLogId parameter. | You must set the FlowLogId parameter. |
400 | OperationFailed.AssociateFlowLog | The operation failed. The specified SAG instance has already been associated with another FlowLog instance. | The operation failed. The specified SAG instance has already been associated with another flow log. |
400 | OperationUnsupported.AssociateFlowLog | You cannot bind the SAG device of the current version or model to a FlowLog instance. | The version or model of the SAG device does not allow you to associate it with a flow log. |
400 | QuotaExceeded.Flowlog | The maximum number of FlowLog instances is exceeded. | The number of flow logs has reached the upper limit. |
400 | IllegalParam.ActiveAging | The specified ActiveAging is invalid. | The ActiveAging parameter is set to an invalid value. |
400 | IllegalParam.InactiveAging | The specified InactiveAging is invalid. | The InactiveAging parameter is set to an invalid value. |
400 | IllegalParam.NetflowServerIp | The specified NetflowServerIp is invalid. | The NetflowServerIp parameter is set to an invalid value. |
400 | IllegalParam.NetflowServerPort | The specified NetflowServerPort is invalid. | The NetflowServerPort parameter is set to an invalid value. |
400 | IllegalParam.NetflowVersion | The specified NetflowVersion is invalid. | The NetflowVersion parameter is set to an invalid value. |
400 | IllegalParam.OutputType | The specified OutputType is invalid. | The OutputType parameter is set to an invalid value. |
400 | IllegalParam.RegionId | The specified RegionId is invalid. | The RegionId parameter is set to an invalid value. |
400 | IllegalParam.SlsRegionId | The specified SlsRegionId is invalid. | The SlsRegionId parameter is set to an invalid value. |
400 | IllegalParam.Status | The specified Status parameter is invalid. | The Status parameter is set to an invalid value. |
403 | Forbidden | User not authorized to operate on the specified resource. | You do not have permissions to manage the specified resource. |
403 | MissingParameter | The input parameter is missing, please check your input. | Missing parameters. Check whether all required parameters are set. |
403 | InvalidParameter | The specified parameter is invalid. | Invalid parameters. |
403 | InternalError | An internal server error occurred. | An internal server error occurred. |
For a list of error codes, visit the Service error codes.