Policy > Security > North South Security > Gateway Firewall > Url Categorization

Create or Update PolicyUrlCategorizationConfig

Creates/Updates a PolicyUrlCategorizationConfig. Creating or updating the
PolicyUrlCategorizationConfig will enable or disable URL categorization for
the given edge cluster. If the context_profiles field is empty, the edge
cluster will detect all the categories of URLs. If context_profiles field
has any context profiles, the edge cluster will detect only the categories
listed within those context profiles. The context profiles should have
attribute type URL_CATEGORY. The update_frequency specifies how frequently
in minutes, the edge cluster will get updates about the URL data from the
URL categorization cloud service. If the update_frequency is not specified,
the default update frequency will be 30 min.

Request:

Method:
PUT
URI Path(s):
/policy/api/v1/infra/sites/<site-id>/enforcement-points/<enforcement-point-id>/edge-clusters/<edge-cluster-id>/url-categorization-configs/<url-categorization-config-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
PolicyUrlCategorizationConfig+

Example Request:

PUT https://<policy-mgr>/api/v1/infra/sites/default/enforcement-points/enforcement-point-id/edge-clusters/edge-cluster-id/url-categorization-configs/default { "enabled" : true, "context_profiles"; [ "/infra/context-profiles/policy-context-profile-1", "/infra/context-profiles/policy-context-profile-2" ] }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
PolicyUrlCategorizationConfig+

Example Response:

{ "resource_type" : "PolicyUrlCategorizationConfig", "path" : "/infra/sites/default/enforcement-points/enforcement-point-id/edge-clusters/edge-cluster-id/url-categorization-configs/default", "id" : "default", "enabled" : true, "context_profiles"; [ "/infra/context-profiles/policy-context-profile-1", "/infra/context-profiles/policy-context-profile-2" ], "update_frequency": 30 }

Required Permissions:

crud

Feature:

policy_url_categorization

Additional Errors: