List Custom URL Categories
GET/v1/config/rulestacks/:rulestackname/urlcustomcategories
Retrieve the data of the custom URL categories for a specified rulestack.
Request
Path Parameters
The name of the rulestack.
Query Parameters
If the number of custom URL categories available for retrieval exceeds the maximum you requested, Cloud NGFW returns a NextToken value in response. To retrieve the next batch of URLs, 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 custom URL categories you want Cloud NGFW to return for this request.
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- 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.
Response object
The API call response.
Custom URL category candidate.
Predefined URL category candidate
Custom URLs on run state.
CategoriesUncommitted object[]
Uncommitted custom URLs.
Name of the custom URL category.
If the number of custom URL categories available for retrieval exceeds the maximum you requested, Cloud NGFW returns a NextToken value in response. To retrieve the next batch of URLs, use this token in your next request.
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": {
"CategoriesCandidate": [
"string"
],
"CategoriesPreDefined": [
"string"
],
"CategoriesRunning": [
"string"
],
"CategoriesUncommitted": [
{
"Name": "string",
"Operation": "string"
}
],
"NextToken": "string",
"RuleStackName": "string"
},
"ResponseStatus": {
"ErrorCode": 0,
"Reason": "string"
}
}