plans
Creates, updates, deletes, gets or lists a plans
resource.
Overview
Name | plans |
Type | Resource |
Id | linode.longview.plans |
Fields
The following fields are returned by SELECT
queries:
- get_longview_plan
The Longview plan details for this account.
Name | Datatype | Description |
---|---|---|
id | string | Read-only The unique ID of this Subscription tier. (example: longview-10) |
clients_included | integer | Read-only The number of Longview Clients that may be created with this Subscription tier. |
label | string | Read-only A display name for this Subscription tier. (example: Longview Pro 10 pack) |
price | object | Read-only Pricing information about this Subscription tier. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_longview_plan | select | 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... | ||
put_longview_plan | replace | 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... |
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.
Name | Datatype | Description |
---|
SELECT
examples
- get_longview_plan
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
- put_longview_plan
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;