Get the IPs of a specified URL

Note: Before you use this API, make sure to create the URL Categories override file by copying the file /usr/share/fa/data/plugins/panorama/url_categories.json to this location: /home/afa/.fa/plugins/panorama/.

Get the IPs of a specified URL in the URL Categories override file. Currently only Panorama devices are supported. Use the PAN URL Category Resource Group GET /{category} method to return the list of available URL Categories.

For further information about the URL Categories override file see (optional) Enhance URL Category accuracy.

Resource Name: /api/v1/plugins/{brand}/URLcategory/{category}/URL/{url}/IP

Request Method: GET

Request URL Parameters:

Element

Type

Description

brand
Mandatory

string

Brand name code. Only "panorama" is supported.

category
Mandatory

string URL Category name that contains the URL.
url
Mandatory
string URL to get IPs from.

Response parameters

Element

Type

Description

categories map of objects

The list of URL Categories, each populated by:

  • URL Category name

  • URLs and their IPs

Response:

Status codes:

Code

Description

200

ActiveChange was triggered

400

Input validation failure

403

Authentication failure

500

Failed to complete operation.

Request cURL examples

curl -X GET "https://localhost/afa/api/v1/plugins/panorama/URLCategory/job-search/URL/www.indeed.com/IP" -H "accept: */*" 

Response example for 200

Copy

    "169.45.207.192", 
    "169.47.19.136", 
    "169.45.207.200", 
    "169.44.165.64", 
    "169.44.162.72" 
]