Create Custom URL Category
POST/v1/config/rulestacks/:rulestackname/urlcustomcategories
Create a custom URL filtering object to specify exceptions to URL category enforcement, and to create a custom URL category based on multiple URL categories.
Request
Path Parameters
The name of the rulestack.
- application/json
Body
Possible values: [none
, allow
, alert
, block
]
Default value: none
URL actions.
The URL category audit remarks.
Possible values: <= 255 characters
A description of the rulestack.
Possible values: <= 29 characters
, Value must match regular expression ^[a-zA-Z][0-9a-zA-Z-]*$
Name of the rulestack.
Possible values: <= 255 characters
Specify where the URL opens.
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.
- ResourceNotFoundException—Unable to locate a resource using the parameters you provided.
- 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.
CustomURLEntry object
The custom URL entry.
The custom URL action.
Audit remarks.
Possible values: <= 255 characters
The custom URL description.
Refresh token.
Possible values: <= 255 characters
Custom URL destination.
Name of the custom URL entry.
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": {
"CustomURLEntry": {
"Action": "string",
"AuditComment": "string",
"Description": "string",
"UpdateToken": "string",
"UrlTargets": [
"string"
]
},
"Name": "string",
"RuleStackName": "string"
},
"ResponseStatus": {
"ErrorCode": 0,
"Reason": "string"
}
}