Skip to content

Commit b4fcace

Browse files
authored
Merge pull request #275 from leslitagordita/longview-endpoints-revert
[New] View Longview Plan and Update Longview Plan
2 parents 58bd928 + 2199eb4 commit b4fcace

File tree

1 file changed

+101
-1
lines changed

1 file changed

+101
-1
lines changed

openapi.yaml

Lines changed: 101 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7075,6 +7075,90 @@ paths:
70757075
- lang: CLI
70767076
source: >
70777077
linode-cli longview delete 789
7078+
/longview/plan:
7079+
x-linode-cli-command: longview
7080+
get:
7081+
tags:
7082+
- Longview
7083+
summary: View Longview Plan
7084+
description: >
7085+
Returns the Longview subscription plan for this account. You can send a request to the
7086+
[View Longview Subscription](/api/v4/longview-subscriptions-subscription-id) endpoint for details on each particular subscription plan.
7087+
operationId: getLongviewPlan
7088+
x-linode-cli-action: plan-view
7089+
security:
7090+
- personalAccessToken: []
7091+
- oauth:
7092+
- longview:read_only
7093+
responses:
7094+
'200':
7095+
description: The Longview Subscription plan for this account.
7096+
content:
7097+
application/json:
7098+
schema:
7099+
$ref: '#/components/schemas/LongviewPlan'
7100+
default:
7101+
$ref: '#/components/responses/ErrorResponse'
7102+
x-code-samples:
7103+
- lang: Shell
7104+
source: >
7105+
curl -H "Authorization: Bearer $TOKEN" \
7106+
https://api.linode.com/v4/longview/plan
7107+
- lang: CLI
7108+
source: >
7109+
linode-cli longview plan-view
7110+
put:
7111+
tags:
7112+
- Longview
7113+
summary: Update Longview Plan
7114+
description: >
7115+
Updates the Longview subscription plan for this user. You can send a request to the
7116+
[View Longview Subscription](/api/v4/longview-subscriptions-subscription-id) endpoint for details on each particular subscription plan.
7117+
operationId: updateLongviewPlan
7118+
x-linode-cli-action: plan-update
7119+
security:
7120+
- personalAccessToken: []
7121+
- oauth:
7122+
- account:read_write
7123+
requestBody:
7124+
description: Update your Longview subscription plan.
7125+
required: true
7126+
content:
7127+
application/json:
7128+
schema:
7129+
$ref: '#/components/schemas/LongviewPlan'
7130+
responses:
7131+
'200':
7132+
description: The requested Longview Subscription.
7133+
content:
7134+
application/json:
7135+
schema:
7136+
properties:
7137+
longview_subscription:
7138+
type: string
7139+
description: >
7140+
The Longview subscription plan you are currently subscribed to.
7141+
7142+
7143+
7144+
To update your subscription plan send a request to [Update Longview Plan](/api/v4/longview-plan/#put).
7145+
The value must be a [Longview Subscription ID](/api/v4/longview-subscriptions) or `null`. Note that a value of `null` will cancel the longview subscription.
7146+
example: longview-10
7147+
x-linode-cli-display: 1
7148+
default:
7149+
$ref: '#/components/responses/ErrorResponse'
7150+
x-code-samples:
7151+
- lang: Shell
7152+
source: >
7153+
curl -H "Content-Type: application/json" \
7154+
-H "Authorization: Bearer $TOKEN" \
7155+
-X PUT -d '{
7156+
"longview_subscription": "longview-10"
7157+
}' \
7158+
https://api.linode.com/v4/longview/plan
7159+
- lang: CLI
7160+
source: >
7161+
linode-cli longview plan-update --longview_subscription longview-10
70787162
/longview/subscriptions:
70797163
x-linode-cli-command: longview
70807164
get:
@@ -14299,7 +14383,7 @@ components:
1429914383
example: true
1430014384
add_longview:
1430114385
type: boolean
14302-
description: If true, this User may create Longview clients.
14386+
description: If true, this User may create Longview clients and view the current plan.
1430314387
example: true
1430414388
longview_subscription:
1430514389
type: boolean
@@ -16174,6 +16258,22 @@ components:
1617416258
example: 10
1617516259
readOnly: true
1617616260
x-linode-cli-display: 3
16261+
LongviewPlan:
16262+
type: object
16263+
description: >
16264+
Longview Plan object.
16265+
properties:
16266+
longview_subscription:
16267+
type: string
16268+
description: >
16269+
The Longview subscription plan you are currently subscribed to.
16270+
16271+
16272+
16273+
To update your subscription plan send a request to [Update Longview Plan](/api/v4/longview-plan/#put).
16274+
The value must be a [Longview Subscription ID](/api/v4/longview-subscriptions) or `null`. Note that a value of `null` will cancel the longview subscription.
16275+
example: longview-30
16276+
x-linode-cli-display: 1
1617716277
ManagedContact:
1617816278
type: object
1617916279
description: >

0 commit comments

Comments
 (0)