Aptible Intrusion Detection Reports API

The IntrusionDetectionReports API from Aptible — 4 operation(s) for intrusiondetectionreports.

OpenAPI Specification

aptible-intrusiondetectionreports-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: support@aptible.com
  description: REST API for the core Aptible platform.
  title: Aptible API v1 Intrusion Detection Reports API
  version: v1
servers:
- url: '{baseUrl}'
  variables:
    baseUrl:
      default: https://api.aptible.com
      description: Override for local or test environments
security:
- token: []
tags:
- name: IntrusionDetectionReports
paths:
  /stacks/{stack_id}/intrusion_detection_reports:
    get:
      description: Returns a paginated list of intrusion detection reports for the specified stack.
      operationId: ListIntrustionDetectionReportsForStack
      parameters:
      - description: stack_id
        explode: false
        in: path
        name: stack_id
        required: true
        schema:
          type: integer
        style: simple
      - description: Current page of paginated results
        explode: true
        in: query
        name: page
        required: false
        schema:
          type: integer
        style: form
      - description: Number of results to return per page
        explode: true
        in: query
        name: per_page
        required: false
        schema:
          type: integer
        style: form
      - description: 'When true, omits embedded resources from the response. Also triggered when the Prefer: no_sensitive_extras=true header is present.'
        explode: true
        in: query
        name: no_embed
        required: false
        schema:
          type: boolean
        style: form
      - description: When set to no_sensitive_extras=true, omits sensitive fields and embedded resources from the response.
        explode: false
        in: header
        name: Prefer
        required: false
        schema:
          enum:
          - no_sensitive_extras=true
          type: string
        style: simple
      responses:
        '200':
          content:
            application/hal+json:
              schema:
                $ref: '#/components/schemas/ListIntrustionDetectionReportsForStack_200_response'
          description: successful
        default:
          content:
            application/hal+json:
              schema:
                $ref: '#/components/schemas/error'
          description: Error response. Often a 4xx or 5xx status code
      summary: list intrusion_detection_reports
      tags:
      - IntrusionDetectionReports
  /intrusion_detection_reports/{intrusion_report_id}/download_csv:
    get:
      description: Returns a presigned URL to download the intrusion detection report as CSV.
      operationId: GetIntrustionDetectionReportCsvDownload
      parameters:
      - description: intrusion_report_id
        explode: false
        in: path
        name: intrusion_report_id
        required: true
        schema:
          type: integer
        style: simple
      - description: 'When true, omits embedded resources from the response. Also triggered when the Prefer: no_sensitive_extras=true header is present.'
        explode: true
        in: query
        name: no_embed
        required: false
        schema:
          type: boolean
        style: form
      - description: When set to no_sensitive_extras=true, omits sensitive fields and embedded resources from the response.
        explode: false
        in: header
        name: Prefer
        required: false
        schema:
          enum:
          - no_sensitive_extras=true
          type: string
        style: simple
      responses:
        '200':
          description: Presigned URL
        default:
          content:
            application/hal+json:
              schema:
                $ref: '#/components/schemas/error'
          description: Error response. Often a 4xx or 5xx status code
      summary: download_csv intrusion_detection_report
      tags:
      - IntrusionDetectionReports
  /intrusion_detection_reports/{intrusion_report_id}/download_pdf:
    get:
      description: Returns a presigned URL to download the intrusion detection report as PDF.
      operationId: GetIntrustionDetectionReportPdfDownload
      parameters:
      - description: intrusion_report_id
        explode: false
        in: path
        name: intrusion_report_id
        required: true
        schema:
          type: integer
        style: simple
      - description: 'When true, omits embedded resources from the response. Also triggered when the Prefer: no_sensitive_extras=true header is present.'
        explode: true
        in: query
        name: no_embed
        required: false
        schema:
          type: boolean
        style: form
      - description: When set to no_sensitive_extras=true, omits sensitive fields and embedded resources from the response.
        explode: false
        in: header
        name: Prefer
        required: false
        schema:
          enum:
          - no_sensitive_extras=true
          type: string
        style: simple
      responses:
        '200':
          description: Presigned URL
        default:
          content:
            application/hal+json:
              schema:
                $ref: '#/components/schemas/error'
          description: Error response. Often a 4xx or 5xx status code
      summary: download_pdf intrusion_detection_report
      tags:
      - IntrusionDetectionReports
  /intrusion_detection_reports/{id}:
    get:
      description: Returns the details of a specific intrusion detection report by ID.
      operationId: GetIntrustionDetectionReport
      parameters:
      - description: id
        explode: false
        in: path
        name: id
        required: true
        schema:
          type: integer
        style: simple
      - description: 'When true, omits embedded resources from the response. Also triggered when the Prefer: no_sensitive_extras=true header is present.'
        explode: true
        in: query
        name: no_embed
        required: false
        schema:
          type: boolean
        style: form
      - description: When set to no_sensitive_extras=true, omits sensitive fields and embedded resources from the response.
        explode: false
        in: header
        name: Prefer
        required: false
        schema:
          enum:
          - no_sensitive_extras=true
          type: string
        style: simple
      responses:
        '200':
          content:
            application/hal+json:
              schema:
                $ref: '#/components/schemas/intrusion_detection_report'
          description: successful
        default:
          content:
            application/hal+json:
              schema:
                $ref: '#/components/schemas/error'
          description: Error response. Often a 4xx or 5xx status code
      summary: show intrusion_detection_report
      tags:
      - IntrusionDetectionReports
components:
  schemas:
    ListIntrustionDetectionReportsForStack_200_response:
      properties:
        _embedded:
          $ref: '#/components/schemas/ListIntrustionDetectionReportsForStack_200_response__embedded'
        total_count:
          type: integer
        per_page:
          type: integer
        current_page:
          type: integer
        _links:
          $ref: '#/components/schemas/ListAccountsForStack_200_response__links'
      required:
      - _embedded
      - _links
      - current_page
      - per_page
      - total_count
      type: object
    error:
      properties:
        code:
          type: integer
        error:
          type: string
        message:
          type: string
      required:
      - code
      - error
      - message
      type: object
    intrusion_detection_report__links:
      properties:
        stack:
          $ref: '#/components/schemas/ListAccountsForStack_200_response__links_stack'
        download_csv:
          $ref: '#/components/schemas/ListAccountsForStack_200_response__links_stack'
        download_pdf:
          $ref: '#/components/schemas/ListAccountsForStack_200_response__links_stack'
        self:
          $ref: '#/components/schemas/ListAccountsForStack_200_response__links_stack'
      type: object
    ListAccountsForStack_200_response__links:
      properties:
        stack:
          $ref: '#/components/schemas/ListAccountsForStack_200_response__links_stack'
        next:
          $ref: '#/components/schemas/ListAccountsForStack_200_response__links_stack'
        prev:
          $ref: '#/components/schemas/ListAccountsForStack_200_response__links_stack'
        self:
          $ref: '#/components/schemas/ListAccountsForStack_200_response__links_stack'
      type: object
    intrusion_detection_report:
      properties:
        id:
          type: integer
        _type:
          type: string
        created_at:
          format: dateTime
          type: string
        updated_at:
          format: dateTime
          type: string
        starts_at:
          format: dateTime
          type: string
        ends_at:
          format: dateTime
          type: string
        _links:
          $ref: '#/components/schemas/intrusion_detection_report__links'
      required:
      - _type
      - created_at
      - ends_at
      - id
      - starts_at
      - updated_at
    ListAccountsForStack_200_response__links_stack:
      properties:
        href:
          format: uri
          type: string
      type: object
    ListIntrustionDetectionReportsForStack_200_response__embedded:
      properties:
        intrusion_detection_reports:
          items:
            $ref: '#/components/schemas/intrusion_detection_report'
          type: array
      type: object
  securitySchemes:
    token:
      in: header
      name: Authorization
      type: apiKey