This small project is just a python API that queries the rest API for the WebTitan DNS filtering solution. This page will be updated in the future after I've finished all the APIs to configure categories, users, locations, etc...
UsersAPI LocationsAPI GlobalBlacklistAPI GlobalWhitelistAPI CloudKeyAPI DefaultPolicyAPI CategoryAPI SystemStatsAPI CustomerStatsAPI PolicyAPI InternalUsersAPI
Used to create an account in the WebTitan Portal
- account_name : Name for the WebTitan Account
- account_email : Email address used for login and email notifications
- account_license : Local license number that needs to be unique between accounts
- account_password : Account password
Used to delete an account in the WebTitan Portal
- account_id : Account ID that relates to the account
Used to return specific information about the users account (eg. id, license etc..)
- account_id : Account ID that relates to the account
Used to get all accounts that are configured within the WebTitan Portal. This will only return accounts that you have access to (eg. Global Admin will return ALL accounts, whereas specific accounts will only return nested accounts that they have created)
Used to update the account (such as password, license, email etc...)
- account_id : Account ID that relates to the account
Used to create a location for a specific user account (eg. Static IP location so the public IP address has permission to query the DNS server)
- account_id : Account ID that relates to the account
- location_type : Type of location such as staticip, dynamicip, etc... (find via the WebTitan Restful API documentation)
- location_name : Name of the location is required when creating a new location...
Used to delete a location for a specific user account
- account_id : Account ID that relates to the account
- location_type : Location type needs to be specified (eg. staticip, dynamicip)
- location_name : Name of the location is also required to delete it
Used to get details of a specific type of location assoicated to the WebTitan account
- account_id : Account ID that relates to the account
- location_type : Location type needs to be specified
- location_id : Location ID that relates to the location
Used to get details of all locations of a specific type associate to the WebTitan account
- account_id : Account ID that relates to the account
- location_type : Location type needs to be specified (By default, this is 'staticip' if not passed)
Used to update a specific location assosicated to the WebTitan account
- account_id : Account ID that relates to the account
- location_type : Location type needs to be specified
- location_id : Location ID that relates to the location
Used to create a global blacklist entry that affects all accounts
- domain : Example: bbc.co.uk or google.com
Used to delete a global blacklist entry
- blacklist_id : Blacklist ID that relates to the Blacklist entry
Used to get details of a specific global blacklist entry
- blacklist_id : Blacklist ID that relates to the Blacklist entry
Used to get every global Blacklist entry configured in WebTitan
Used to update a specific global Blacklist entry
- blacklist_id : Blacklist ID that relates to the Blacklist entry
- kwargs can be found when listing the global blacklist (eg. incude subdomains...)
Used to create a global whitelist entry that affects all accounts
- domain : Example: bbc.co.uk or google.com
Used to delete a global whitelist entry
- whitelist_id : Whitelist ID that relates to the Whitelist entry
Used to get details of a specific global whitelist entry
- whitelist_id : Whitelist ID that relates to the Whitelist entry
Used to get every global Whitelist entry configured in WebTitan
Used to update a specific global Whitelist entry
- whitelist_id : Whitelist ID that relates to the Whitelist entry
- kwargs can be found when listing the global whitelist (eg. include subdomains...)
Used to create a cloud key for the specific WebTitan user
- account_id : Account ID that relates to the account
Used to delete a cloud key for the specific WebTitan user
- account_id : Account ID that relates to the account
- cloudkey_id : Cloudkey ID that relates to the Cloudkey
Used to get specific details about a specific cloudkey
- account_id : Account ID that relates to the account
- cloudkey_id : Cloudkey ID that relates to the Cloudkey
Used to list all details about a users cloudkey
- account_id : Account ID that relates to the account
Used to get specific details on a filter category that exist in the default policy
- categoryid : Category ID that relates to the specific Category (can be found via get_default_filtering_policy_categories())
Used to get specific details about the policy itself (not categories) such as: safesearch enabled? Email notificiations enabled?
Used to get all categories of the default filtering policy
Used to update a specific category in the default policy (eg. Allow = True/False)
- categoryid : Category ID that relates to the specific Category
Used to update the default filtering policy
Used to update every default filter category
Used to get a specific custom policy category
- account_id : Account ID that relates to the account
- policy_id : Policy ID that relates to the custom Policy
- category_id : Category ID that relates to the specific category
Used to get specific category in the customers default policy
- account_id : Account ID that relates to the account
- category_id : Category ID that relates to the specific category
Used to get all categories in a specific custom policy
- account_id : Account ID that relates to the account
- category_id : Category ID that relates to the specific category
Used to get all categories in the customers default policy
- account_id : Account ID that relates to the account
Used to update the specific category in a custom policy
- account_id : Account ID that relates to the account
- policy_id : Policy ID that relates to the custom Policy
- category_id : Category ID that relates to the specific category
Used to update the specific category in the customers default policy
- account_id : Account ID that relates to the account
- category_id : Category ID that relates to the specific category
Used to update every category in the custom policy
- account_id : Account ID that relates to the account
- policy_id : Policy ID that relates to the custom Policy
Used to update every category in the customers default policy
- account_id : Account ID that relates to the account
Used to get an overview of things such as total DNS requests, total domains allowed/blocked... Use kwargs from the Rest API documentation on apidoc.webtitancloud.com for optional parameters to filter on dates etc.. or get a date range
Used to get top categories accessed
- system_type : Allowed, Blocked or Bypassed
Used to get the top domains visited (can be filtered on date or date range)
- system_type : Allowed, Blocked or Bypassed
Used to get the top users (can be filtered on date or date range)
- system_type : Allowed, Blocked or Bypassed
Used to get an overview for a specific account/customer
- account_id : Account ID that relates to the account
Used to get top categories accessed by a specific customer
- account_id : Account ID that relates to the account
- category_type : Allowed/Blocked or Bypassed
Used to get top domains visited by a specific customer
- account_id : Account ID that relates to the account
- domain_type : Allowed/Blocked or Bypassed
Used to get top internal users in a specific account/customer
- account_id : Account ID that relates to the account
- user_type : Allowed/Blocked or Bypassed