Awesome - thank you! after successful tests there I came up with a template for doing it in python (my preferred language). Here's an example of that, this function creates a custom url category and returns the response given by the web server - in case anyone is interested in that. For debugging / testing it also prints out the URL that would have been passed to the API import urllib, urllib2 #cat_desc is a description of the url category #cat_name is the name of the custom url category def create_url_cat(self, cat_name, cat_desc, action='set'): self.parameters = dict() self.parameters['key'] = 'Y/Xt9o0IK8ISYNnzTF4oJ8SpTis7cYMKb2NiNniMuPUPutJN4CuDASu5ni79twT6' self.parameters['type'] = 'config' self.parameters['action'] = 'set' self.url = ' https://panorama/api/ ?' self.parameters['action'] = action self.parameters['xpath'] = '/config/shared/profiles/custom-url-category/entry[@name=\''+ cat_name + '\']' self.parameters['element'] = '<description>' + cat_desc + '</description>' params = urllib.urlencode(self.parameters) response = urllib2.urlopen(self.url, params) print self.url + str(params) return response.read()
... View more