You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: openapi.yaml
+204-7Lines changed: 204 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
openapi: 3.0.1
2
2
info:
3
-
version: 4.67.0
3
+
version: 4.68.0
4
4
5
5
title: Linode API
6
6
description: |
@@ -877,6 +877,86 @@ paths:
877
877
- lang: CLI
878
878
source: >
879
879
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
880
960
/account/notifications:
881
961
x-linode-cli-command: account
882
962
get:
@@ -6995,6 +7075,90 @@ paths:
6995
7075
- lang: CLI
6996
7076
source: >
6997
7077
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.
The relative weight of this Record. Higher values are preferred.
13799
13963
example: 50
13964
+
minimum: 0
13965
+
maximum: 65535
13800
13966
x-linode-cli-display: 7
13801
13967
port:
13802
13968
type: integer
13803
13969
description: >
13804
13970
The port this Record points to.
13805
13971
example: 80
13972
+
minimum: 0
13973
+
maximum: 65535
13806
13974
service:
13807
13975
type: string
13808
13976
nullable: true
@@ -14215,7 +14383,7 @@ components:
14215
14383
example: true
14216
14384
add_longview:
14217
14385
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.
14219
14387
example: true
14220
14388
longview_subscription:
14221
14389
type: boolean
@@ -16000,11 +16168,10 @@ components:
16000
16168
When this Longview Client was last updated.
16001
16169
example: 2018-01-01T00:01:01
16002
16170
readOnly: true
16003
-
Logins:
16171
+
Login:
16004
16172
type: object
16005
16173
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.
16008
16175
properties:
16009
16176
id:
16010
16177
type: integer
@@ -16029,6 +16196,20 @@ components:
16029
16196
example: 192.0.2.0
16030
16197
readOnly: true
16031
16198
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
16032
16213
LongviewSubscription:
16033
16214
type: object
16034
16215
description: >
@@ -16077,6 +16258,22 @@ components:
16077
16258
example: 10
16078
16259
readOnly: true
16079
16260
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.
0 commit comments