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
|
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
<uninstalleventprofile> <partialUninstall>false</partialUninstall> <commitComment>Uninstalling</commitComment> </uninstalleventprofile>
Example JSON Input
{ "uninstalleventprofile": { "partialUninstall": "false", "commitComment": "Uninstalling" } }
Sample Output
Example XML Output
<task href= "/api/space/job-management/jobs/426000" > <id>426000</id> </task>
Example JSON Output
{ "task": { "@href": "/api/space/job-management/jobs/426002", "id": 426002 } }