@@ -877,6 +877,85 @@ 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
934
+ login from an arbitrary user on the account. This command can only be
935
+ accessed by the unrestricted users of an account.
936
+ operationId: getAccountLogin
937
+ x-linode-cli-action: login-view
938
+ security:
939
+ - personalAccessToken: []
940
+ - oauth:
941
+ - account:read_only
942
+ responses:
943
+ '200':
944
+ description: The requested login object.
945
+ content:
946
+ application/json:
947
+ schema:
948
+ $ref: '#/components/schemas/Login'
949
+ default:
950
+ $ref: '#/components/responses/ErrorResponse'
951
+ x-code-samples:
952
+ - lang: Shell
953
+ source: >
954
+ curl -H "Authorization: Bearer $TOKEN" \
955
+ https://api.linode.com/v4/account/logins/1234
956
+ - lang: CLI
957
+ source: >
958
+ linode-cli account login-view 1234
880
959
/account/notifications:
881
960
x-linode-cli-command: account
882
961
get:
@@ -11166,7 +11245,7 @@ paths:
11166
11245
data:
11167
11246
type: array
11168
11247
items:
11169
- $ref: '#/components/schemas/Logins '
11248
+ $ref: '#/components/schemas/Login '
11170
11249
default:
11171
11250
$ref: '#/components/responses/ErrorResponse'
11172
11251
x-code-samples:
@@ -11208,7 +11287,7 @@ paths:
11208
11287
content:
11209
11288
application/json:
11210
11289
schema:
11211
- $ref: '#/components/schemas/Logins '
11290
+ $ref: '#/components/schemas/Login '
11212
11291
default:
11213
11292
$ref: '#/components/responses/ErrorResponse'
11214
11293
x-code-samples:
@@ -16000,11 +16079,10 @@ components:
16000
16079
When this Longview Client was last updated.
16001
16080
example: 2018-01-01T00:01:01
16002
16081
readOnly: true
16003
- Logins :
16082
+ Login :
16004
16083
type: object
16005
16084
description: >
16006
- A collection of successful account logins from this user during the last
16007
- 90 days
16085
+ An object representing a previous successful login for a User.
16008
16086
properties:
16009
16087
id:
16010
16088
type: integer
@@ -16029,6 +16107,20 @@ components:
16029
16107
example: 192.0.2.0
16030
16108
readOnly: true
16031
16109
x-linode-cli-display: 3
16110
+ username:
16111
+ type: string
16112
+ description: >
16113
+ The username of the User that was logged into.
16114
+ example: example_user
16115
+ readOnly: true
16116
+ x-linode-cli-display: 4
16117
+ restricted:
16118
+ type: boolean
16119
+ description: >
16120
+ True if the User that was logged into was a restricted User, false otherwise.
16121
+ example: true
16122
+ readOnly: true
16123
+ x-linode-cli-display: 5
16032
16124
LongviewSubscription:
16033
16125
type: object
16034
16126
description: >
0 commit comments