Skip to main content

clients

Creates, updates, deletes, gets or lists a clients resource.

Overview

Nameclients
TypeResource
Idlinode.longview.clients

Fields

The following fields are returned by SELECT queries:

The requested Longview Client.

NameDatatypeDescription
idintegerRead-only This Client's unique ID.
api_keystringRead-only The API key for this Client, used when configuring the Longview Client application on your Linode. Returns as [REDACTED] if you do not have read-write access to this client. (example: BD1B4B54-D752-A76D-5A9BD8A17F39DB61)
appsobjectRead-only The apps this Client is monitoring on your Linode. This is configured when you install the Longview Client application, and is present here for information purposes only.
createdstring (date-time)Read-only When this Longview Client was created. (example: 2018-01-01T00:01:01)
install_codestringRead-only The install code for this Client, used when configuring the Longview Client application on your Linode. Returns as [REDACTED] if you do not have read-write access to this client. (example: BD1B5605-BF5E-D385-BA07AD518BE7F321)
labelstringFilterable This Client's unique label. This is for display purposes only. (example: client789, pattern: [a-zA-Z0-9-_]{3,32})
updatedstring (date-time)Read-only When this Longview Client was last updated. (example: 2018-01-01T00:01:01)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_longview_clientselectReturns a single Longview Client you can access.

Learn more...

Learn more...
get_longview_clientsselectpage, page_sizeReturns a paginated list of Longview Clients you have access to. Longview Client is used to monitor stats on your Linode with the help of the Longview Client application.

Learn more...

Learn more...
post_longview_clientinsertCreates a Longview Client. This Client will not begin monitoring the status of your server until you configure the Longview Client application on your Linode using the returning install_code and api_key.

Learn more...

Learn more...
put_longview_clientreplaceUpdates a Longview Client. This cannot update how it monitors your server; use the Longview Client application on your Linode for monitoring configuration.

Learn more...

Learn more...
delete_longview_clientdeleteDeletes a Longview Client from your Account.

All information stored for this client will be lost.

This does not uninstall the Longview Client application for your Linode - you must do that manually.

Learn more...

Learn more...

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
pageintegerThe page of a collection to return.
page_sizeintegerThe number of items to return per page.

SELECT examples

Returns a single Longview Client you can access.

Learn more...

Learn more...

SELECT
id,
api_key,
apps,
created,
install_code,
label,
updated
FROM linode.longview.clients;

INSERT examples

Creates a Longview Client. This Client will not begin monitoring the status of your server until you configure the Longview Client application on your Linode using the returning install_code and api_key.

Learn more...

Learn more...

INSERT INTO linode.longview.clients (
data__label
)
SELECT
'{{ label }}'
RETURNING
id,
api_key,
apps,
created,
install_code,
label,
updated
;

REPLACE examples

Updates a Longview Client. This cannot update how it monitors your server; use the Longview Client application on your Linode for monitoring configuration.

Learn more...

Learn more...

REPLACE linode.longview.clients
SET
data__label = '{{ label }}'
WHERE

RETURNING
id,
api_key,
apps,
created,
install_code,
label,
updated;

DELETE examples

Deletes a Longview Client from your Account.

All information stored for this client will be lost.

This does not uninstall the Longview Client application for your Linode - you must do that manually.

Learn more...

Learn more...

DELETE FROM linode.longview.clients;