Skip to content

Commit 315a1b3

Browse files
leslitagorditaRyan Syracuse
andauthored
[New] View Longview Plan and Update Longview Plan (#270)
* Add new endpoints: View Longview Plan and Update Longview Plan * recommended fixes Co-authored-by: Ryan Syracuse <[email protected]>
1 parent cb31da3 commit 315a1b3

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
@@ -6995,6 +6995,90 @@ paths:
69956995
- lang: CLI
69966996
source: >
69976997
linode-cli longview delete 789
6998+
/longview/plan:
6999+
x-linode-cli-command: longview
7000+
get:
7001+
tags:
7002+
- Longview
7003+
summary: View Longview Plan
7004+
description: >
7005+
Returns the Longview subscription plan for this account. You can send a request to the
7006+
[View Longview Subscription](/api/v4/longview-subscriptions-subscription-id) endpoint for details on each particular subscription plan.
7007+
operationId: getLongviewPlan
7008+
x-linode-cli-action: plan-view
7009+
security:
7010+
- personalAccessToken: []
7011+
- oauth:
7012+
- longview:read_only
7013+
responses:
7014+
'200':
7015+
description: The Longview Subscription plan for this account.
7016+
content:
7017+
application/json:
7018+
schema:
7019+
$ref: '#/components/schemas/LongviewPlan'
7020+
default:
7021+
$ref: '#/components/responses/ErrorResponse'
7022+
x-code-samples:
7023+
- lang: Shell
7024+
source: >
7025+
curl -H "Authorization: Bearer $TOKEN" \
7026+
https://api.linode.com/v4/longview/plan
7027+
- lang: CLI
7028+
source: >
7029+
linode-cli longview plan-view
7030+
put:
7031+
tags:
7032+
- Longview
7033+
summary: Update Longview Plan
7034+
description: >
7035+
Updates the Longview subscription plan for this user. You can send a request to the
7036+
[View Longview Subscription](/api/v4/longview-subscriptions-subscription-id) endpoint for details on each particular subscription plan.
7037+
operationId: updateLongviewPlan
7038+
x-linode-cli-action: plan-update
7039+
security:
7040+
- personalAccessToken: []
7041+
- oauth:
7042+
- account:read_write
7043+
requestBody:
7044+
description: Update your Longview subscription plan.
7045+
required: true
7046+
content:
7047+
application/json:
7048+
schema:
7049+
$ref: '#/components/schemas/LongviewPlan'
7050+
responses:
7051+
'200':
7052+
description: The requested Longview Subscription.
7053+
content:
7054+
application/json:
7055+
schema:
7056+
properties:
7057+
longview_subscription:
7058+
type: string
7059+
description: >
7060+
The Longview subscription plan you are currently subscribed to.
7061+
7062+
7063+
7064+
To update your subscription plan send a request to [Update Longview Plan](/api/v4/longview-plan/#put).
7065+
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.
7066+
example: longview-10
7067+
x-linode-cli-display: 1
7068+
default:
7069+
$ref: '#/components/responses/ErrorResponse'
7070+
x-code-samples:
7071+
- lang: Shell
7072+
source: >
7073+
curl -H "Content-Type: application/json" \
7074+
-H "Authorization: Bearer $TOKEN" \
7075+
-X PUT -d '{
7076+
"longview_subscription": "longview-10"
7077+
}' \
7078+
https://api.linode.com/v4/longview/plan
7079+
- lang: CLI
7080+
source: >
7081+
linode-cli longview plan-update --longview_subscription longview-10
69987082
/longview/subscriptions:
69997083
x-linode-cli-command: longview
70007084
get:
@@ -14215,7 +14299,7 @@ components:
1421514299
example: true
1421614300
add_longview:
1421714301
type: boolean
14218-
description: If true, this User may create Longview clients.
14302+
description: If true, this User may create Longview clients and view the current plan.
1421914303
example: true
1422014304
longview_subscription:
1422114305
type: boolean
@@ -16077,6 +16161,22 @@ components:
1607716161
example: 10
1607816162
readOnly: true
1607916163
x-linode-cli-display: 3
16164+
LongviewPlan:
16165+
type: object
16166+
description: >
16167+
Longview Plan object.
16168+
properties:
16169+
longview_subscription:
16170+
type: string
16171+
description: >
16172+
The Longview subscription plan you are currently subscribed to.
16173+
16174+
16175+
16176+
To update your subscription plan send a request to [Update Longview Plan](/api/v4/longview-plan/#put).
16177+
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.
16178+
example: longview-30
16179+
x-linode-cli-display: 1
1608016180
ManagedContact:
1608116181
type: object
1608216182
description: >

0 commit comments

Comments
 (0)