List Security Rules
GET/v1/config/rulestacks/:rulestackname/rulelists/:rulelistname
List the security rules associate with a specified rulestack in the order of priority.
Request
Path Parameters
The name of the rulestack.
The name of the rulelist.
Query Parameters
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.
Default value: true
Rulestack candidate.
Rulestacks in run state.
Uncommitted rulestacks.
Possible values: >= 1
and <= 1024
Default value: 1024
The maximum number of rulestacks that you want NGFW to return for this request.
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
- Array [
- ]
- InvalidRequestException—Operation failed due to invalid request. For example, unsupported parameter name, value, priority, or length in the request.
- ResourceNotFoundException—Unable to locate a resource using the parameters you provided. For example, RuleListName is not found, Priority is not found.
- 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.
Response object
If the number of security rules available for retrieval exceeds the maximum you requested, NGFW returns a NextToken value in response. To retrieve the next batch of security rules, use this token in your next request.
RuleEntryCandidate object[]
The rules entry candidate.
Possible values: > 0
and < 1000001
The priority of the rule.
Name of the rule.
RuleEntryRunning object[]
Rule entry in run state.
Possible values: > 0
and < 1000001
The priority of the rule.
Name of the rule.
RuleEntryUncommitted object[]
The rule action.
The priority of the rule.
Name of the rule.
Name of the rule list.
Length: 0-128 characters
, Pattern: ^[a-zA-Z0-9-]+$
The 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",
"RuleEntryCandidate": [
{
"Priority": 0,
"RuleName": "string"
}
],
"RuleEntryRunning": [
{
"Priority": 0,
"RuleName": "string"
}
],
"RuleEntryUncommitted": [
{
"Operation": "string",
"Priority": 0,
"RuleName": "string"
}
],
"RuleListName": "string",
"RuleStackName": "string"
},
"ResponseStatus": {
"ErrorCode": 0,
"Reason": "string"
}
}