@@ -877,6 +877,85 @@ 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
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
880959 /account/notifications:
881960 x-linode-cli-command: account
882961 get:
@@ -11166,7 +11245,7 @@ paths:
1116611245 data:
1116711246 type: array
1116811247 items:
11169- $ref: '#/components/schemas/Logins '
11248+ $ref: '#/components/schemas/Login '
1117011249 default:
1117111250 $ref: '#/components/responses/ErrorResponse'
1117211251 x-code-samples:
@@ -11208,7 +11287,7 @@ paths:
1120811287 content:
1120911288 application/json:
1121011289 schema:
11211- $ref: '#/components/schemas/Logins '
11290+ $ref: '#/components/schemas/Login '
1121211291 default:
1121311292 $ref: '#/components/responses/ErrorResponse'
1121411293 x-code-samples:
@@ -16000,11 +16079,10 @@ components:
1600016079 When this Longview Client was last updated.
1600116080 example: 2018-01-01T00:01:01
1600216081 readOnly: true
16003- Logins :
16082+ Login :
1600416083 type: object
1600516084 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.
1600816086 properties:
1600916087 id:
1601016088 type: integer
@@ -16029,6 +16107,20 @@ components:
1602916107 example: 192.0.2.0
1603016108 readOnly: true
1603116109 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
1603216124 LongviewSubscription:
1603316125 type: object
1603416126 description: >
0 commit comments