RPC API: Update a Device
Note that LogicMonitor does have an available REST API equivalent for this API call.
LogicMonitor’s RPC API enables you to update devices using updateHost.
Note: As with all our API calls, authentication is required.
updateHost
Request Parameters: You can include the following as query parameters in an updateHost request:
All outputs will be in the format: { [status], [data], [errmsg] }, where status is the status of the response, errmsg is the error message associated with the response, and the data object includes the following:
Example 1
The following example updates device 10.0.1.36 in account apiAccount:
Example 2
The following request adds the location property to device ip-172-31-37-162.us-west-2.compute.interal in account apiAccount.logicmonitor.com, and sets the value to 12 E. Carrillo, Santa Barbara, CA. All other devices properties are left alone.
Example 3
The following request updates the value of the location property for device ip-172-31-37-162.us-west-2.compute.interal in account apiAccount.logicmonitor.com to 1002 Anacapa, Santa Barbara, CA. All other devices properties are left alone.