Freshservice
Freshservice is a cloud-based IT help desk and service management solution that enables organizations to simplify their IT operations.
Asset Types Fetched
- Devices, Users, Software, SaaS Applications, Tickets
Before You Begin
APIs
Axonius uses the Freshservice API. The following endpoints are called:
GET /api/v2/assetsGET /api/v2/asset_typesGET /api/v2/locationsGET /api/v2/agentsGET /api/v2/requestersGET /api/v2/productsGET /api/v2/applicationsGET /api/v2/applications/{id}/installationsGET /api/v2/vendorsGET /api/v2/relationships_typesGET /api/v2/relationshipsGET /api/v2/tickets/{id}GET /api/v2/problems/{id}GET /api/v2/tickets/filter
Locate API Key
To locate your API Key
- Log in to your Support Portal.
- Click on your profile picture on the top right corner of your portal.
- Go to the Profile Settings page. Your API Key is displayed below the Change Password section on the right side.
Connection Parameters
-
Freshservice Domain (required) - The hostname of the Freshservice server. The hostname field format is '[instance].freshservice.com'.
-
API Key (required) - Specify the API Key provided by Freshservice. To locate your API Key, see Locate API Key.
-
Throttle API Requests - Select this option to only use 90% of the API total rate limit bandwidth. For example: If a customer has 3000 total API calls allowed per hour, Axonius will only produce 2700 calls and leave the remaining 10% available.
-
Verify SSL - Select whether to verify the SSL certificate of the server against the CA database inside of Axonius. For more details, see SSL Trust & CA Settings.
-
HTTPS Proxy (optional) - Connect the adapter to a proxy instead of directly connecting it to the domain.
To learn more about common adapter connection parameters and buttons, see Adding a New Adapter Connection.
Advanced Settings
Note
Advanced settings can either apply to all connections for this adapter, or to a specific connection. Refer to Advanced Configuration for Adapters.
-
Freshservice asset type Include list (optional) - Specify a comma-separated list of Freshservice asset types.
- If supplied, all connections for this adapter will only fetch devices whose asset type is any of the comma-separated list of Freshservice CI types that have been defined in this field.
- If not supplied, all connections for this adapter will fetch devices with any Freshservice asset type.
-
Fetch installed software - Select to fetch installed software.
-
Fetch disabled users - Select to fetch disabled users. This setting is relevant only if one of the Fetch ___ as Users settings is selected.
-
Fetch devices (optional, default: true) - Select to fetch devices.
-
Fetch device relationships - Select this option to fetch device relationships from Freshservice (when cleared this data is not fetched).
-
Fetch Agent as Users - Select to fetch agents as users.
-
Fetch Requesters as Users - Select to fetch requestors as users.
-
Fetch Assets as Users - Select to fetch assets as users.
-
Use short format to describe OS Builds - Select this option to use short format to describe OS Builds.
-
Fetch and resolve Product Fields - Select this option to fetch Freshservice product fields.
- Devices Schema and Users Schema (Custom schema entry (JSON) - Use these settings to add a JSON file to fetch information from one object to another. See Using Custom Schema Entries to add a JSON file to Fetch Information from One Object to Another for details of how to configure these fields.
-
Enable Custom Parsing - Enable this option to define how to parse specific fields from the raw data fetched. You can choose to parse the data into an already existing field, or create a new one. See Adapter Custom Parsing for more information.
-
Enable real-time asset updates (Supported events: New Tickets, Updated Tickets) - Use these settings to publish Ticket Created and Ticket Updated events in real time.
- Enable real-time asset updates (default: disabled) - Select this option to enable real-time asset updates.
- Tickets - Configure real-time updates for tickets:
- Enable real-time Tickets updates (default: disabled) - Select this option to emit Ticket Created and Ticket Updated events for tickets created through Axonius enforcement actions. When this option is enabled, creating a ticket or service request through an enforcement action emits a Ticket Created event when the enforcement action runs.
- Emit 'Ticket Created' events for non-Axonius tickets - Configure Ticket Created events for tickets created outside Axonius enforcement actions:
- Enabled (default: disabled) - Select this option to also emit Ticket Created events for tickets created outside Axonius enforcement actions.
- Additional 'Ticket Created' query (optional) - Enter a Freshservice ticket filter query to limit which non-Axonius created tickets emit events. Leave empty to include all tickets created since the last run.
- Emit 'Ticket Updated' events for non-Axonius tickets - Configure Ticket Updated events for tickets updated outside Axonius enforcement actions:
- Enabled (default: disabled) - Select this option to also emit Ticket Updated events for tickets updated outside Axonius enforcement actions.
- Additional 'Ticket Updated' query (optional) - Enter a Freshservice ticket filter query to limit which non-Axonius updated tickets emit events. Leave empty to include all tickets updated since the last run.
For each additional query:
- Use the Freshservice filter syntax. For example:
priority:4 AND group_id:12orsubject:'VPN'. - Axonius combines the query with its date filter using AND. You can use OR within the query.
- Use single quotes for text values. Double quotes are not supported.
- The query can be up to 481 characters. A query that is too long or contains a double quote is not sent.
- Axonius reads up to 300 matching tickets per run.
-
Fetch EC Action ticket updates (optional, default: true) - Select whether to fetch EC action ticket updates.
Note
For details on general advanced settings under the Adapter Configuration tab, see Adapter Advanced Settings.
Using Custom Schema Entries to Add a JSON File to Fetch Information from One Object to Another
You can use Custom devices schema, Custom users schema to add a JSON file to fetch information from one object to another. For example - to enrich a laptop with information from another object. You can add more than one JSON file.
The schema below fetches extra information for the entity in the “Assets” table from the “Users” table and it looks up using the value in the “UserID” field. It then inserts the information in the “Advanced View” (JSON view in the Asset Profile page for the specific adapter connection) under the “ax_user” field. The JSON file must be of the format:
{
"type": "link",
"link_type": "reference",
"source_table": "Assets",
"source_field": "UserID",
"destination_table": "Users",
"link_to_field": "ax_user"
}For more information on custom asset schema and the format of the JSON file, see ServiceNow Advanced Settings - Custom Asset Schema.
Related Enforcement Actions
Updated 1 day ago
