Get a virtual key by ID
|
GET /api/v1/billing/ble-controllers/{ble_controller}/virtual-keys/{key} |
Returns a BLE controller virtual key by its ID. A key belonging to another controller isn't found at this endpoint (404).
Key fields:
-
id– key ID; -
ble_device_id– BLE controller UUID; -
user– key owner:id,login,name; -
type– key type:permanent(permanent) ortemporary(temporary); -
valid_from– start of validity; for a permanent key,null; -
valid_till– expiration date; -
is_active– key is enabled; -
is_valid_now– key is currently valid: enabled and the current time falls within thevalid_from-valid_till; -
created_by– key issuer:id,login(for keys issued through the Billing API,billing); -
created_at,updated_at– creation and update dates.
Method parameters
string ble_controller required , BLE controller UUID (in URL)
int key required , Virtual key ID (in URL)
|
200 |
|
Successful response JSON
|
|
404 |
|
BLE controller not found JSON
|
|
404 |
|
Key not found on this controller JSON
|