Longview
Longview Clients List
https://api.linode.com/v4/longview/clients
Returns 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.
Query Parameters
The page of a collection to return.
The number of items to return per page.
Request Samples
- Shell
- CLI
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4/longview/clients
Response Samples
- 200
- default
{
"data": [
{
"id": "",
"created": "2018-01-01T00:01:01.000Z",
"label": "client789",
"updated": "2018-01-01T00:01:01.000Z",
"api_key": "BD1B4B54-D752-A76D-5A9BD8A17F39DB61",
"install_code": "BD1B5605-BF5E-D385-BA07AD518BE7F321",
"apps": {
"apache": true,
"nginx": "",
"mysql": true
}
}
],
"page": 1,
"pages": 1,
"results": 1
}
Responses
200: A paginated list of Longview Clients.
This Client's unique ID.
When this Longview Client was created.
This Client's unique label. This is for display purposes only.
When this Longview Client was last updated.
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.
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.
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.
If True, the Apache Longview Client module is monitoring Apache on your server.
If True, the Nginx Longview Client module is monitoring Nginx on your server.
If True, the MySQL Longview Client modules is monitoring MySQL on your server.
The current page.
The total number of pages.
The total number of results.
default: Error
What happened to cause this error. In most cases, this can be fixed immediately by changing the data you sent in the request, but in some cases you will be instructed to open a Support Ticket or perform some other action before you can complete the request successfully.
The field in the request that caused this error. This may be a path, separated by periods in the case of nested fields. In some cases this may come back as "null" if the error is not specific to any single element of the request.
Longview Client Create
https://api.linode.com/v4/longview/clients
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
.
Request Body Schema
This Client's unique label. This is for display purposes only.
Request Samples
- Shell
- CLI
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X POST -d '{
"label": "client789"
}' \
https://api.linode.com/v4/longview/clients
Response Samples
- 200
- default
{
"created": "2018-01-01T00:01:01.000Z",
"updated": "2018-01-01T00:01:01.000Z",
"id": 1234,
"label": "client789",
"api_key": "BD1B4B54-D752-A76D-5A9BD8A17F39DB61",
"install_code": "BD1B5605-BF5E-D385-BA07AD518BE7F321",
"apps": {
"apache": true,
"nginx": false,
"mysql": true
}
}
Responses
200: Longview Client created successfully.
When this Longview Client was created.
When this Longview Client was last updated.
This Client's unique ID.
This Client's unique label. This is for display purposes 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.
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.
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.
If True, the Apache Longview Client module is monitoring Apache on your server.
If True, the Nginx Longview Client module is monitoring Nginx on your server.
If True, the MySQL Longview Client modules is monitoring MySQL on your server.
default: Error
What happened to cause this error. In most cases, this can be fixed immediately by changing the data you sent in the request, but in some cases you will be instructed to open a Support Ticket or perform some other action before you can complete the request successfully.
The field in the request that caused this error. This may be a path, separated by periods in the case of nested fields. In some cases this may come back as "null" if the error is not specific to any single element of the request.