Skip to content

Commit 94bcdda

Browse files
authored
Merge pull request #278 from linode/release-4.68.0
Release-4.68.0
2 parents 64ea576 + 143df76 commit 94bcdda

File tree

1 file changed

+204
-7
lines changed

1 file changed

+204
-7
lines changed

openapi.yaml

Lines changed: 204 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.1
22
info:
3-
version: 4.67.0
3+
version: 4.68.0
44

55
title: Linode API
66
description: |
@@ -877,6 +877,86 @@ paths:
877877
- lang: CLI
878878
source: >
879879
linode-cli account invoice-items 123
880+
/account/logins:
881+
x-linode-cli-command: account
882+
get:
883+
tags:
884+
- Account
885+
summary: List All User Logins
886+
description: >
887+
Returns a collection of successful logins for all users on the account during the last
888+
90 days. This command can only be accessed by the unrestricted users of an account.
889+
operationId: getAccountLogins
890+
x-linode-cli-action: logins-list
891+
security:
892+
- personalAccessToken: []
893+
- oauth:
894+
- account:read_only
895+
responses:
896+
'200':
897+
description: >
898+
A collection of successful logins for all users on the account during the last
899+
90 days.
900+
content:
901+
application/json:
902+
schema:
903+
type: object
904+
properties:
905+
data:
906+
type: array
907+
items:
908+
$ref: '#/components/schemas/Login'
909+
default:
910+
$ref: '#/components/responses/ErrorResponse'
911+
x-code-samples:
912+
- lang: Shell
913+
source: >
914+
curl -H "Authorization: Bearer $TOKEN" \
915+
https://api.linode.com/v4/account/logins
916+
- lang: CLI
917+
source: >
918+
linode-cli account logins-list
919+
/account/logins/{loginId}:
920+
parameters:
921+
- name: loginId
922+
in: path
923+
description: The ID of the login object to access.
924+
required: true
925+
schema:
926+
type: integer
927+
x-linode-cli-command: account
928+
get:
929+
tags:
930+
- Account
931+
summary: View Login
932+
description: >
933+
Returns a Login object that displays information about a successful login.
934+
The logins that can be viewed can be for any user on the account, and are not
935+
limited to only the logins of the user that is accessing this API endpoint.
936+
This command can only be accessed by the unrestricted users of the account.
937+
operationId: getAccountLogin
938+
x-linode-cli-action: login-view
939+
security:
940+
- personalAccessToken: []
941+
- oauth:
942+
- account:read_only
943+
responses:
944+
'200':
945+
description: The requested login object.
946+
content:
947+
application/json:
948+
schema:
949+
$ref: '#/components/schemas/Login'
950+
default:
951+
$ref: '#/components/responses/ErrorResponse'
952+
x-code-samples:
953+
- lang: Shell
954+
source: >
955+
curl -H "Authorization: Bearer $TOKEN" \
956+
https://api.linode.com/v4/account/logins/1234
957+
- lang: CLI
958+
source: >
959+
linode-cli account login-view 1234
880960
/account/notifications:
881961
x-linode-cli-command: account
882962
get:
@@ -6995,6 +7075,90 @@ paths:
69957075
- lang: CLI
69967076
source: >
69977077
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 account. 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
69987162
/longview/subscriptions:
69997163
x-linode-cli-command: longview
70007164
get:
@@ -11166,7 +11330,7 @@ paths:
1116611330
data:
1116711331
type: array
1116811332
items:
11169-
$ref: '#/components/schemas/Logins'
11333+
$ref: '#/components/schemas/Login'
1117011334
default:
1117111335
$ref: '#/components/responses/ErrorResponse'
1117211336
x-code-samples:
@@ -11208,7 +11372,7 @@ paths:
1120811372
content:
1120911373
application/json:
1121011374
schema:
11211-
$ref: '#/components/schemas/Logins'
11375+
$ref: '#/components/schemas/Login'
1121211376
default:
1121311377
$ref: '#/components/responses/ErrorResponse'
1121411378
x-code-samples:
@@ -13797,12 +13961,16 @@ components:
1379713961
description: >
1379813962
The relative weight of this Record. Higher values are preferred.
1379913963
example: 50
13964+
minimum: 0
13965+
maximum: 65535
1380013966
x-linode-cli-display: 7
1380113967
port:
1380213968
type: integer
1380313969
description: >
1380413970
The port this Record points to.
1380513971
example: 80
13972+
minimum: 0
13973+
maximum: 65535
1380613974
service:
1380713975
type: string
1380813976
nullable: true
@@ -14215,7 +14383,7 @@ components:
1421514383
example: true
1421614384
add_longview:
1421714385
type: boolean
14218-
description: If true, this User may create Longview clients.
14386+
description: If true, this User may create Longview clients and view the current plan.
1421914387
example: true
1422014388
longview_subscription:
1422114389
type: boolean
@@ -16000,11 +16168,10 @@ components:
1600016168
When this Longview Client was last updated.
1600116169
example: 2018-01-01T00:01:01
1600216170
readOnly: true
16003-
Logins:
16171+
Login:
1600416172
type: object
1600516173
description: >
16006-
A collection of successful account logins from this user during the last
16007-
90 days
16174+
An object representing a previous successful login for a User.
1600816175
properties:
1600916176
id:
1601016177
type: integer
@@ -16029,6 +16196,20 @@ components:
1602916196
example: 192.0.2.0
1603016197
readOnly: true
1603116198
x-linode-cli-display: 3
16199+
username:
16200+
type: string
16201+
description: >
16202+
The username of the User that was logged into.
16203+
example: example_user
16204+
readOnly: true
16205+
x-linode-cli-display: 4
16206+
restricted:
16207+
type: boolean
16208+
description: >
16209+
True if the User that was logged into was a restricted User, false otherwise.
16210+
example: true
16211+
readOnly: true
16212+
x-linode-cli-display: 5
1603216213
LongviewSubscription:
1603316214
type: object
1603416215
description: >
@@ -16077,6 +16258,22 @@ components:
1607716258
example: 10
1607816259
readOnly: true
1607916260
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
1608016277
ManagedContact:
1608116278
type: object
1608216279
description: >

0 commit comments

Comments
 (0)