Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

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;charset=UTF-8

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

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

commitComment

String

Comment provided while uninstalling event profile from the device

Produces

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

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

Response Elements

Element

Type

Description

href

String

Link to the uninstallation job

id

Integer

ID of the uninstallation job

Sample Input

Example XML Input

Example JSON Input

Sample Output

Example XML Output

Example JSON Output