Related Documentation
- Junos Space
- Get Information About an Event Profile
- Create an Event Profile
- Install Event Profile on Devices
- Export All Event Profiles by Type
- Export Event Profiles by ID and Type
- Import Event Profiles from a File
- Get Import Event Profiles Job Details
- Get Event Profiles Import Job Results
- Clone an Event Profile
- Set an Event Profile as the Default Event Profile
- Event Profile Management REST API Overview
Get All Event Profiles
The Get All Event Profiles operation lists all event profiles in Service Now, including their name, description, the AI-Script bundle that it is associated with, and the event scripts It contains.
URI
https://[host]/api/juniper/servicenow/event-profile-management/eventProfiles (HTTP method = GET)
Consumes
None
Produces
- application/vnd.juniper.servicenow.event-profile-management.eventprofiles+xml;version=1
- application/vnd.juniper.servicenow.event-profile-management.eventprofiles+json;version=1
Response
Element | Type | Description |
---|---|---|
uri | String | URI of the collection of event profiles in Service Now |
size | Integer | Number of event profiles in the collection |
eventProfile | eventProfile | An event profile |
uri | String | URI of the event profile |
href | String | Link to the event profile |
key | Integer | ID of the event profile |
profileName | String | Event profile name |
scriptsEnabledCount | Integer | Number of events selected for the event profile |
scriptsDisabledCount | Integer | Number of disabled scripts associated with the event profile |
createdBy | String | Username of person that created this event profile. If the event profile is auto-generated, createdby is set to Service Now. |
description | String | Brief description of the event profile. |
isDefault | String | Flag to indicate if the event profile is the default event profile in Service Now Possible Values:
|
domainId | Integer | ID of the domain in which an event profile is created |
Sample Output
Sample XML Output
<eventprofiles size="2" uri="/api/juniper/servicenow/event-profile-management/eventProfiles"> <eventProfile href="/api/juniper/servicenow/event-profile-management/eventProfiles/99066" uri="/api/juniper/servicenow/event-profile-management/eventProfiles/99066" key="99066"> <profileName>Base_Profile_3_1R1_1</profileName> <scriptsEnabledCount>380</scriptsEnabledCount> <scriptsDisabledCount>0</scriptsDisabledCount> <createdBy>Service Now</createdBy> <description> Base Profile for Bundle Version: 3.1R1.1 </description> <domainId>10</domainId> <isDefault>true</isDefault> </eventProfile> <eventProfile href="/api/juniper/servicenow/event-profile-management/eventProfiles/163857" uri="/api/juniper/servicenow/event-profile-management/eventProfiles/163857" key="163857"> <profileName>testProfile</profileName> <scriptsEnabledCount>5</scriptsEnabledCount> <scriptsDisabledCount>375</scriptsDisabledCount> <createdBy>super</createdBy> <domainId>10</domainId> <isDefault>false</isDefault> </eventProfile> </eventprofiles>
Sample JSON Output
eventprofiles:{ size:2, uri:'/api/juniper/servicenow/event-profile-management/eventProfiles', eventprofile:[ { href:'/api/juniper/servicenow/event-profile-management/eventProfiles/99066" uri="/api/juniper/servicenow/event-profile-management/eventProfiles/99066', key:99066, profilename:'Base_Profile_3_1R1_1', scriptsenabledcount:380, scriptsdisabledcount:0, createdby:'Service Now', description:'Base Profile for Bundle Version: 3.1R1.1', domainId:’10’, isdefault:'true' }, { href:'/api/juniper/servicenow/event-profile-management/eventProfiles/163857 "uri="/api/juniper/servicenow/event-profile-management/eventProfiles/163857', key:163857, profilename:'testProfile', scriptsenabledcount:5, scriptsdisabledcount:375, createdby:'super', domainId:’10’, isdefault:'false' } ] }
Related Documentation
- Junos Space
- Get Information About an Event Profile
- Create an Event Profile
- Install Event Profile on Devices
- Export All Event Profiles by Type
- Export Event Profiles by ID and Type
- Import Event Profiles from a File
- Get Import Event Profiles Job Details
- Get Event Profiles Import Job Results
- Clone an Event Profile
- Set an Event Profile as the Default Event Profile
- Event Profile Management REST API Overview