All Products
Search
Document Center

Smart Access Gateway:DeactiveFlowLog

Last Updated:Mar 29, 2024

Stops a flow log.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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:DeactiveFlowLogWrite
  • FlowLog
    acs:smartag:{#regionId}:{#accountId}:flowlog/{#flowlogId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The ID of the region to which the flow log belongs.

cn-shanghai
FlowLogIdstringYes

The instance ID of the flow log.

fl-l934tsa5504yuc****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

5F2BAEAF-96D4-4BE5-A031-6CAD7B145D0D

Examples

Sample success responses

JSONformat

{
  "RequestId": "5F2BAEAF-96D4-4BE5-A031-6CAD7B145D0D"
}

Error codes

HTTP status codeError codeError messageDescription
400DependencyViolation.FlowLogThis FlowLog instance is bound to an SAG instance.This flow log associated with a resource.
400IncorrectStatus.FlowLogThe current FlowLog instance status does not support this operation.The status of the flow log is invalid.
400InvalidFlowLogId.NotFoundThe specified FlowLogId does not exist.The specified FlowLogId does not exist.
400MissingParam.FlowLogIdSpecify the FlowLogId parameter.You must set the FlowLogId parameter.
400OperationFailed.AssociateFlowLogThe 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.
400OperationUnsupported.AssociateFlowLogYou 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.
400QuotaExceeded.FlowlogThe maximum number of FlowLog instances is exceeded.The number of flow logs has reached the upper limit.

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