Queries the Smart Access Gateway (SAG) instances associated with a flow log.
Debug
Use OpenAPI Explorer to perform debug operations and generate SDK code examples.
Request parameters
Parameter | Type | Required? | Example value | Description |
---|---|---|---|---|
FlowLogId | String | Yes | fl-l934tsa5504yuc**** |
The instance ID of the flow log. |
RegionId | String | Yes | cn-shanghahi |
The ID of the region to which the flow log belongs. |
Action | String | No | DescribeFlowLogSags |
The name of this action. Value: DescribeFlowLogSags |
PageNumber | Integer | No | 1 |
The page number of the SAG instance list. Minimum value: 1. Default value: 1 |
PageSize | Integer | No | 10 |
The number of entries per page in the case of a paged query result. Maximum value: 50. Default value: 10 |
Response parameters
Parameter | Type | Example value | Description |
---|---|---|---|
PageNumber | Integer | 1 |
The current page number. |
PageSize | Integer | 4 |
The number of entries on the current page. |
RequestId | String | 8D945945-85F2-4BD7-A144-7DC0E8B5A0DC |
The ID of the request. |
Sags |
The list of SAG instances. |
||
Sag |
The details of an SAG instance. |
||
Description | String | sag-100wm |
The description of the SAG instance. |
Name | String | ruijie-test-2 |
The name of the SAG instance. |
SmartAGId | String | sag-6rm1awijm3ktic**** |
The ID of the SAG instance. |
TotalCount | Integer | 35 |
The total number of entries. |
Examples
Request example
http(s)://[Endpoint]/? Action=DescribeFlowLogSags
&FlowLogId=fl-l934tsa5504yuc****
&RegionId=cn-shanghahi
&<CommonParameters>
Response example
XML
format
<DescribeFlowLogSagsResponse>
<PageNumber>1</PageNumber>
<Sags>
<Sag>
<Name>ruijie-test-2</Name>
<SmartAGId>sag-6rm1awijm3ktic****</SmartAGId>
</Sag>
<Sag>
<Name>ruijie-test-2</Name>
<SmartAGId>sag-ecvqa7bw8fxbdn****</SmartAGId>
</Sag>
<Sag>
<Name>ccn-e2e-cn-sh-0-0820-005408</Name>
<SmartAGId>sag-gn7m5v5bpjykne****</SmartAGId>
</Sag>
<Sag>
<Name>sag-sec-1b</Name>
<SmartAGId>sag-hk69hizmi21fy9****</SmartAGId>
</Sag>
<Sag>
<Name></Name>
<SmartAGId>sag-i54wm4v15ruxji****</SmartAGId>
</Sag>
<Sag>
<Name>china-0-0424-222240</Name>
<SmartAGId>sag-iunln2dztruttt****</SmartAGId>
</Sag>
<Sag>
<Name>sag-sec-1</Name>
<SmartAGId>sag-q1sqc77sk2oe08****</SmartAGId>
</Sag>
<Sag>
<Name>sag1000_box5</Name>
<SmartAGId>sag-u42tn80ro3bxsd****</SmartAGId>
</Sag>
<Sag>
<Name>ccn-e2e-cn-sh-0-0820-005549</Name>
<SmartAGId>sag-wle98f4o41nm3f****</SmartAGId>
</Sag>
<Sag>
<Name>jia_dual-device_SAG1000</Name>
<SmartAGId>sag-yev5ajsek9x12o****</SmartAGId>
</Sag>
</Sags>
<TotalCount>35</TotalCount>
<PageSize>10</PageSize>
<RequestId>8D945945-85F2-4BD7-A144-7DC0E8B5A0DC</RequestId>
</DescribeFlowLogSagsResponse>
JSON
format
{
"PageNumber":1,
"Sags":{
"Sag":[
{
"SmartAGId":"sag-6rm1awijm3ktic****",
"Name":"ruijie-test-2"
},
{
"SmartAGId":"sag-ecvqa7bw8fxbdn****",
"Name":"zhanxiaolong"
},
{
"SmartAGId":"sag-gn7m5v5bpjykne****",
"Name":"ccn-e2e-cn-sh-0-0820-005408"
},
{
"SmartAGId":"sag-hk69hizmi21fy9****",
"Name":"sag-sec-1b"
},
{
"SmartAGId":"sag-i54wm4v15ruxji****",
"Name":""
},
{
"SmartAGId":"sag-iunln2dztruttt****",
"Name":"china-0-0424-222240"
},
{
"SmartAGId":"sag-q1sqc77sk2oe08****",
"Name":"sag-sec-1"
},
{
"SmartAGId":"sag-u42tn80ro3bxsd****",
"Name":"sag1000_box5"
},
{
"SmartAGId":"sag-wle98f4o41nm3f****",
"Name":"ccn-e2e-cn-sh-0-0820-005549"
},
{
"SmartAGId":"sag-yev5ajsek9x12o****",
"Name":"jia_dual-device_SAG1000"
}
]
},
"TotalCount":35,
"PageSize":10,
"RequestId":"8D945945-85F2-4BD7-A144-7DC0E8B5A0DC"
}
Errors
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | IllegalParam.ActiveAging | The specified ActiveAging is invalid. | The specified ActiveAging is invalid. |
400 | IllegalParam.InactiveAging | The specified InactiveAging is invalid. | The specified InactiveAging is invalid. |
400 | IllegalParam.NetflowServerIp | The specified NetflowServerIp is invalid. | The specified NetflowServerIp is invalid. |
400 | IllegalParam.NetflowServerPort | The specified NetflowServerPort is invalid. | The specified NetflowServerPort is invalid. |
400 | IllegalParam.NetflowVersion | The specified NetflowVersion is invalid. | The specified NetflowVersion is invalid. |
400 | IllegalParam.OutputType | The specified OutputType is invalid. | The specified OutputType is invalid. |
400 | IllegalParam.RegionId | The specified RegionId is not valid | The specified RegionId is invalid. |
400 | IllegalParam.SlsRegionId | The specified SlsRegionId is invalid. | The specified SlsRegionId is invalid. |
400 | IllegalParam.Status | The specified Status parameter is invalid. | The specified Status is invalid. |
400 | DependencyViolation.FlowLog | This FlowLog instance is bound to an SAG instance. | The flow log has dependencies. |
400 | IncorrectStatus.FlowLog | The current FlowLog instance status does not support this operation. | The status of the flow log does not permit this operation. |
400 | InvalidFlowLogId.NotFound | The specified FlowLogId does not exist. | The specified FlowLogId does not exist. |
400 | MissingParam.FlowLogId | Specify the FlowLogId parameter. | You must specify the FlowLogId. |
400 | OperationFailed.AssociateFlowLog | The operation failed. The specified SAG instance has already been associated with another FlowLog instance. | The operation failed because the SAG instance is 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 support the associating of flow logs. |
400 | QuotaExceeded.Flowlog | The maximum number of FlowLog instances is exceeded. | The number of flow logs has reached the quota. |
For a list of error codes, visit the API Error Center.