Inventory API

This page provides a reference of the available operations in the Inventory API.

All operations must be prefixed with the correct datacenter URL for your tenant. All requests must be authenticated via an API key.

The following operations are available:

Get inventory

Returns an array of computers with their inventory information.

Request

GET {datacenter}/inventory

Response
200 - OK - Success response

The operation returns an array of JSON objects. Each object corresponds to one computer.

Example

Get computer inventory

Returns the inventory information of a single computer, specified by ID or by computer name.

Request

GET {datacenter}/inventory/{id}

GET {datacenter}/inventory/{computername}

Response
200 - OK - Success response

The operation returns the specified computer as a JSON object.

500 - Internal Server Error - Unknown computer

No computer with the specified ID or name exists. The response message is "Unknown computer".

Example

Delete computer

Deletes a computer, specified by ID or by computer name, from the inventory.

Request

DELETE {datacenter}/inventory/{id}

DELETE {datacenter}/inventory/{computername}

Response
200 - OK - Success response

The operation returns true.

500 - Internal Server Error - Unknown computer

No computer with the specified ID or name exists. The response message is "Unknown computer".

Clear device owner

Removes the device owner from a computer, specified by ID or by computer name. If the computer has no owner, nothing happens.

Request

DELETE {datacenter}/inventory/{id}/owner

DELETE {datacenter}/inventory/{computername}/owner

Response
200 - OK - Success response

The operation returns true.

Set device owner

Sets the device owner of a computer, specified by ID or by computer name. If the computer already has an owner, the owner is replaced.

Request

POST {datacenter}/inventory/{id}/owner

POST {datacenter}/inventory/{computername}/owner

Response
200 - OK - Success response

The operation returns true.

Example

Get PIN code

Generates a PIN code for a computer, specified by ID or by computer name. You can generate two types of PIN code:

  • Challenge/response PIN: When a user on an offline computer needs an approval, they can request a PIN code. The client displays a 6-digit PIN 1, which the user passes on to the help desk. The help desk uses this operation to generate the matching 6-digit PIN 2, which the user enters on the computer. PIN 2 depends on PIN 1, the tenant and the computer, so the same PIN 1 results in a different PIN 2 on a different computer.

  • Uninstall PIN: A 10-digit PIN code that allows uninstalling Admin By Request from the computer. Each call generates a new PIN code.

Request

GET {datacenter}/inventory/{id}/pin

GET {datacenter}/inventory/{computername}/pin

Response
200 - OK - Success response

The operation returns the PIN code as a JSON string: a 6-digit PIN 2 for challenge, or a 10-digit uninstall PIN for uninstallpin.

500 - Internal Server Error - General error

No computer with the specified ID or name exists, or pin1 is missing or is not a 6-digit number. The response message is "General error".

Examples