Longview

View Longview Plan

get
https://api.linode.com/v4/longview/plan

Returns the Longview subscription plan for this account. You can send a request to the View Longview Subscription endpoint for details on each particular subscription plan.

Authorizations

Personal Access Token
OAuth: ( longview:read_only)

Request Samples

curl -H "Authorization: Bearer $TOKEN" \
    https://api.linode.com/v4/longview/plan

Response Samples

{
  "longview_subscription": "longview-30"
}

Responses

200: The Longview Subscription plan for this account.

longview_subscription
string

The Longview subscription plan you are currently subscribed to.

To update your subscription plan send a request to Update Longview Plan. The value must be a Longview Subscription ID or null. Note that a value of null will cancel the Longview subscription.

default: Error

errors
array of objects
reason
string

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.

field
string

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.

Update Longview Plan

put
https://api.linode.com/v4/longview/plan

Updates the Longview subscription plan for this account. You can send a request to the View Longview Subscription endpoint for details on each particular subscription plan.

Authorizations

Personal Access Token
OAuth: ( account:read_write)

Request Body Schema

longview_subscription
string

The Longview subscription plan you are currently subscribed to.

To update your subscription plan send a request to Update Longview Plan. The value must be a Longview Subscription ID or null. Note that a value of null will cancel the Longview subscription.

Request Samples

curl -H "Content-Type: application/json" \
    -H "Authorization: Bearer $TOKEN" \
    -X PUT -d '{
        "longview_subscription": "longview-10"
    }' \
    https://api.linode.com/v4/longview/plan

Response Samples

{
  "longview_subscription": "longview-10"
}

Responses

200: The requested Longview Subscription.

longview_subscription
string

The Longview subscription plan you are currently subscribed to.

To update your subscription plan send a request to Update Longview Plan. The value must be a Longview Subscription ID or null. Note that a value of null will cancel the Longview subscription.

default: Error

errors
array of objects
reason
string

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.

field
string

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.