Describe File Blocking Action
GET/v1/config/rulestacks/:rulestackname/fileblockingprofiles/custom/filetypes/:type
Use this command to return the data related to the file blocking profile attached to a specified rulestack.
Request
Path Parameters
The name of the rulestack.
The type of file blocking action.
Query Parameters
File blocking actions in run state.
Default value: true
File blocking action candidate.
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
- InvalidRequestException—Operation failed due to invalid request. For example, unsupported parameter name or value in the request.
- LimitExceededException—Operation failed due to violation in limit settings.
- ThrottlingException—Operation failed due to throttling limitations.
- AccessDeniedException—You do not have sufficient access to perform this action.
- InternalServerError—Your request is valid but Cloud NGFW could not perform the operation due to a system issue.
- InsufficientCapacityException—AWS currently does not have enough capacity to fulfill your request.
Response object
The API call response.
FileBlockingCandidate object
The file blocking action candidate.
Possible values: [alert
, block
, continue
]
Default value: alert
File blocking action.
Audit remarks.
Possible values: <= 255 characters
A description of the file blocking action.
Possible values: [upload
, download
, both
]
Default value: both
Traffic direction.
Default value: 1
Refresh the token.
FileBlockingRunning object
The file blocking actions on run state.
Possible values: [alert
, block
, continue
]
Default value: alert
File blocking action.
Audit remarks.
Possible values: <= 255 characters
A description of the file blocking action.
Possible values: [upload
, download
, both
]
Default value: both
Traffic direction.
Default value: 1
Refresh the token.
Blocked file type.
Name of the rulestack.
ResponseStatus object
The API call response status.
Default value: 0
Default value of a successful response is 0. Any other number indicates an error code.
400—HTTP bad request
500—Bad request
The error description.
{
"Response": {
"FileBlockingCandidate": {
"Action": "alert",
"AuditComment": "string",
"Description": "string",
"Direction": "both",
"UpdateToken": "1"
},
"FileBlockingRunning": {
"Action": "alert",
"AuditComment": "string",
"Description": "string",
"Direction": "both",
"UpdateToken": "1"
},
"FileType": "string",
"RuleStackName": "string"
},
"ResponseStatus": {
"ErrorCode": 0,
"Reason": "string"
}
}