Skip to main content

plans

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

Overview

Nameplans
TypeResource
Idlinode.longview.plans

Fields

The following fields are returned by SELECT queries:

The Longview plan details for this account.

NameDatatypeDescription
idstringRead-only The unique ID of this Subscription tier. (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
get_longview_planselectGet the details of your current Longview plan. This returns a LongviewSubscription object for your current Longview Pro plan, or an empty set {} if your current plan is Longview Free.

You must have at least one of the following global List a user's grants in order to run this operation:

- "account_access": read_write
- "account_access": read_only
- "longview_subscription": true
- "add_longview": true

To update your subscription plan, send a request to Update a Longview plan.

Learn more...

Learn more...
put_longview_planreplaceUpdate your Longview plan to that of the given subscription ID. This returns a LongviewSubscription object for the updated Longview Pro plan, or an empty set {} if the updated plan is Longview Free.

You must have "longview_subscription": true configured as a global user grant in order to run this operation.

You can send a request to the List Longview subscriptions operation to receive the details, including id's, of each plan.

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

SELECT examples

Get the details of your current Longview plan. This returns a LongviewSubscription object for your current Longview Pro plan, or an empty set {} if your current plan is Longview Free.

You must have at least one of the following global List a user's grants in order to run this operation:

- "account_access": read_write
- "account_access": read_only
- "longview_subscription": true
- "add_longview": true

To update your subscription plan, send a request to Update a Longview plan.

Learn more...

Learn more...

SELECT
id,
clients_included,
label,
price
FROM linode.longview.plans;

REPLACE examples

Update your Longview plan to that of the given subscription ID. This returns a LongviewSubscription object for the updated Longview Pro plan, or an empty set {} if the updated plan is Longview Free.

You must have "longview_subscription": true configured as a global user grant in order to run this operation.

You can send a request to the List Longview subscriptions operation to receive the details, including id's, of each plan.

Learn more...

Learn more...

REPLACE linode.longview.plans
SET
data__longview_subscription = '{{ longview_subscription }}'
WHERE

RETURNING
id,
clients_included,
label,
price;