lhs-panel Click here to expand

Disable Device

The API allows you to disable a device present in EventLog Analyzer.

Request URL

PUT http://hostname:8400/RestAPI/v1/device/disable

Request Header

Header name Value Mandatory Description
Authorization Bearer {{AuthToken}} Yes AuthToken generated from the API Settings page.

e.g., Bearer abcd1234xyz

Request Parameters

The request body must be sent in JSON format and include the following key/value parameters:

Parameter Name Mandatory Type Description
device_name Yes String Comma-separated list of device names which needs to be disabled. Maximum of 10 devices can be disabled in a single API call.

Response

The response will be a JSON object with the following key/value pair:

Parameter name Description
message Result of the disable device request.

Example Usage using cURL

Sample request

Copy to Clipboard

curl --location --request PUT 'http://localhost:8400/RestAPI/v1/device/disable' \

--header 'Content-Type: application/json' \

--header 'Authorization: Bearer abcd1234xyz' \

--data '{

"device_name":"1.1.1.1"

}'

Sample response:

Copy to Clipboard

{"message":"Device(s) 1.1.1.1 disabled in EventLog Analyzer successfully"}

Example usage using Postman (Third-party tool)

Get Product Details

Copyright © 2020, ZOHO Corp. All Rights Reserved.

Get download link