Associates a Smart Access Gateway instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
smartag:AssociateFlowLog |
*SmartAccessGateway
*FlowLog
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the flow log. |
cn-shanghai |
| FlowLogId |
string |
Yes |
The flow log instance ID. |
fl-l934tsa5504yuc**** |
| SmartAGId |
string |
Yes |
The Smart Access Gateway instance ID. |
sag-39u6j9a49i03wk**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
A6E1680B-B34F-4BB7-B504-F8ED675E721C |
Examples
Success response
JSON format
{
"RequestId": "A6E1680B-B34F-4BB7-B504-F8ED675E721C"
}
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. |
| 400 | InvalidSmartAGId.NotFound | The specified SmartAGId does not exist. | The specified SmartAGId does not exist. |
| 403 | FeatureNotSupport | The current edition of the smart access gateway does not support this feature. | The current version of Smart Access Gateway does not support this feature. |
| 403 | FeatureNotSupportForActiveSmartAG | The current edition of the active smart access gateway does not support this feature. | The current edition of the active SAG instance does not support this feature. |
| 403 | FeatureNotSupportForStandBySmartAG | The current edition of the standby smart access gateway does not support this feature. | The current version of Smart Access Gateway does not support this feature. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.