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

    Uninstall an Event Profile from a Device

    Use this API to uninstall all event profiles installed on a device.

    URI

    /api/juniper/servicenow/device-management/devices/ {id} /uninstallEventProfile? queue=https://[host]/api/hornet-q/queues/jms.queue.[QueueName] (HTTP method = POST)

    URI Parameters

    Parameter

    Type

    Required

    Description

    id

    Integer

    Yes

    ID of the device from which event profiles must be uninstalled

    QueueName

    String

    Yes

    Name of the uninstall event profile job queue

    Consumes

    • application/vnd.juniper.servicenow.device-management.device+xml;version=2
    • application/vnd.juniper.servicenow.device-management.device+json;version=2

    Request Elements

    Element

    Type

    Description

    partialUninstall

    Boolean

    Flag to prevent modifying AI-Scripts configuration when uninstalling an event profile from the device

    Possible values

    • true—AI-Scripts configuration is not modified while uninstalling event profile
    • false—AI-Scripts configuration is modified while uninstalling event profile

    Produces

    • application/vnd.juniper.servicenow.device-management.uninstalleventprofile+xml;version=2; charset=UTF-8
    • application/vnd.juniper.servicenow.device-management.uninstalleventprofile+json;version=2; charset=UTF-8

    Response Elements

    Element

    Type

    Description

    href

    String

    Link to the uninstallation job

    id

    Integer

    ID of the uninstallation job

    Sample Input

    Example XML Input

    <uninstalleventprofile>
    <partialUninstall>true</partialUninstall>
    </uninstalleventprofile>

    Example JSON Input

    {
    		"uninstalleventprofile": {
    				"partialUninstall": "true"
    				}
    }

    Sample Output

    Example XML Output

    < task href="/api/juniper/job-management/jobs/2130040" >
    		< id >2130040< /id  >
    < /task >
    

    Example JSON Output

    {
    		"task": {
    				"href": "/api/juniper/job-management/jobs/2130040",
    				"id": "2130040"
    		}
    }

    Modified: 2016-08-10