List RuleStack
GET/v1/config/rulestacks
Retrieve the metadata of the specified rulestack.
You can also query rulestacks based on the tags using this command, /v1/config/rulestacks?tags=<string>
.
This command lists the rulestacks where the tag name starts with the string.
DynamoDB supports this command, and should be implemented as a library.
Request
- application/json
Body
Default value: true
Rulestack candidate.
Possible values: >= 1
and <= 1024
Default value: 1024
The maximum number of rulestacks that you want NGFW to return for this request.
If the number of rulestacks available for retrieval exceeds the maximum you requested, NGFW returns a NextToken value in response. To retrieve the next batch of rulestacks, use this token in your next request.
Rulestacks in run state.
Possible values: [Global
, Local
, All
]
Default value: All
The scope of the rulestack.
A unique identifier in the key-value pair. The constant that defines the data set.
The variable that belongs to the data set.
Uncommitted rulestacks.
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- InvalidOperationException—Operation failed because it is not valid. For example, when you delete an NGFW or rulestack in use.
- 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.
- 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
If the number of rulestacks available for retrieval exceeds the maximum you requested, NGFW returns a NextToken value in response. To retrieve the next batch of rulestacks, use this token in your next request.
Rulestack candidate.
Rulestacks in run state.
RuleStackUncommitted object[]
Uncommitted rulestacks.
Possible values: [add
, delete
, update
]
Rulestacks operation.
Name of the rulestack.
ResponseStatus object
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": {
"NextToken": "string",
"RuleStackCandidate": [
"string"
],
"RuleStackRunning": [
"string"
],
"RuleStackUncommitted": [
{
"Operation": "add",
"RuleStackName": "string"
}
]
},
"ResponseStatus": {
"ErrorCode": 0,
"Reason": "string"
}
}