Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- paths:
- /account/events:
- x-linode-cli-command: events
- get:
- x-linode-grant: read_only
- parameters:
- - $ref: '#/components/parameters/pageOffset'
- - $ref: '#/components/parameters/pageSize'
- tags:
- - Account
- summary: List Events
- description: >
- Returns a collection of Event objects representing
- actions taken on your Account. The Events returned depends on your
- grants.
- operationId: getEvents
- x-linode-cli-action: list
- security:
- - personalAccessToken: []
- - oauth:
- - events:read_only
- responses:
- '200':
- description: Returns a paginated lists of Event objects.
- content:
- application/json:
- schema:
- type: object
- properties:
- data:
- type: array
- items:
- $ref: '#/components/schemas/Event'
- page:
- $ref: '#/components/schemas/PaginationEnvelope/properties/page'
- pages:
- $ref: '#/components/schemas/PaginationEnvelope/properties/pages'
- results:
- $ref: '#/components/schemas/PaginationEnvelope/properties/results'
- default:
- $ref: '#/components/responses/ErrorResponse'
- x-code-samples:
- - lang: Shell
- source: >
- curl -H "Authorization: Bearer $TOKEN" \
- https://api.linode.com/v4/account/events
- - lang: CLI
- source: >
- linode-cli events list
- components:
- schemas:
- PaginationEnvelope:
- type: object
- description: >
- An envelope for paginated response. When accessing a collection through a GET endpoint, the
- results are wrapped in this envelope which includes metadata about those results.
- required:
- - pages
- - page
- - results
- - data
- properties:
- data:
- type: array
- readOnly: true
- items:
- type: object
- pages:
- type: integer
- readOnly: true
- example: 1
- page:
- type: integer
- readOnly: true
- example: 1
- results:
- type: integer
- readOnly: true
- example: 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement