Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    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:

    • true—The event profile is the default event profile
    • false—The event profile is not the default event profile

    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'
                }
            ]
        }
    

    Modified: 2016-08-11