Advertisement
infogulch

linode-openapi

Sep 22nd, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.35 KB | None | 0 0
  1. paths:
  2.   /account/events:
  3.     x-linode-cli-command: events
  4.     get:
  5.       x-linode-grant: read_only
  6.       parameters:
  7.       - $ref: '#/components/parameters/pageOffset'
  8.       - $ref: '#/components/parameters/pageSize'
  9.       tags:
  10.      - Account
  11.       summary: List Events
  12.       description: >
  13.         Returns a collection of Event objects representing
  14.          actions taken on your Account. The Events returned depends on your
  15.          grants.
  16.       operationId: getEvents
  17.       x-linode-cli-action: list
  18.       security:
  19.       - personalAccessToken: []
  20.       - oauth:
  21.        - events:read_only
  22.       responses:
  23.         '200':
  24.           description: Returns a paginated lists of Event objects.
  25.           content:
  26.             application/json:
  27.               schema:
  28.                 type: object
  29.                 properties:
  30.                   data:
  31.                     type: array
  32.                     items:
  33.                       $ref: '#/components/schemas/Event'
  34.                   page:
  35.                     $ref: '#/components/schemas/PaginationEnvelope/properties/page'
  36.                   pages:
  37.                     $ref: '#/components/schemas/PaginationEnvelope/properties/pages'
  38.                   results:
  39.                     $ref: '#/components/schemas/PaginationEnvelope/properties/results'
  40.         default:
  41.           $ref: '#/components/responses/ErrorResponse'
  42.       x-code-samples:
  43.       - lang: Shell
  44.         source: >
  45.           curl -H "Authorization: Bearer $TOKEN" \
  46.              https://api.linode.com/v4/account/events
  47.      - lang: CLI
  48.        source: >
  49.          linode-cli events list
  50. components:
  51.  schemas:
  52.    PaginationEnvelope:
  53.      type: object
  54.      description: >
  55.        An envelope for paginated response. When accessing a collection through a GET endpoint, the
  56.        results are wrapped in this envelope which includes metadata about those results.
  57.      required:
  58.      - pages
  59.      - page
  60.      - results
  61.      - data
  62.      properties:
  63.        data:
  64.          type: array
  65.          readOnly: true
  66.          items:
  67.            type: object
  68.        pages:
  69.          type: integer
  70.          readOnly: true
  71.          example: 1
  72.        page:
  73.          type: integer
  74.          readOnly: true
  75.          example: 1
  76.        results:
  77.          type: integer
  78.          readOnly: true
  79.          example: 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement