Skip to main content

subscriptions

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

Overview

Namesubscriptions
TypeResource
Idlinode.longview.subscriptions

Fields

The following fields are returned by SELECT queries:

The requested Longview Subscription details.

NameDatatypeDescription
idstringRead-only The unique ID of this Subscription tier. (longview-3, longview-10, longview-40, longview-100) (example: longview-10)
clients_includedintegerRead-only The number of Longview Clients that may be created with this Subscription tier.
labelstringRead-only A display name for this Subscription tier. (example: Longview Pro 10 pack)
priceobjectRead-only Pricing information about this Subscription tier.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionIdGet the Longview plan details as a single LongviewSubscription object for the provided subscription ID. This is a public endpoint and requires no authentication.

Learn more...
listselectpage, page_sizeReturns a paginated list of available Longview subscriptions. This is a public endpoint and requires no authentication.

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
subscriptionIdstringThe Longview Subscription to look up. (example: {{subscriptionId}})
pageintegerThe page of a collection to return.
page_sizeintegerThe number of items to return per page.

SELECT examples

Get the Longview plan details as a single LongviewSubscription object for the provided subscription ID. This is a public endpoint and requires no authentication.

Learn more...

SELECT
id,
clients_included,
label,
price
FROM linode.longview.subscriptions
WHERE subscriptionId = '{{ subscriptionId }}' -- required
;