Red Hat Enterprise Linux 8 Autosubexclusion API

The autosubexclusion API from Red Hat Enterprise Linux 8 — 2 operation(s) for autosubexclusion.

GitHub OpenAPI

Operations 4

GET /api/insights/v1/autosubexclusion/ Autosubexclusion list #
POST /api/insights/v1/autosubexclusion/ Autosubexclusion create #
GET /api/insights/v1/autosubexclusion/{org_id}/ Autosubexclusion retrieve #
DELETE /api/insights/v1/autosubexclusion/{org_id}/ Autosubexclusion destroy #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/red-hat-enterprise-linux-8:red-hat-enterprise-linux-8-autosubexclusion-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

red-hat-enterprise-linux-8-autosubexclusion-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Insights Advisor Autosubexclusion API
  version: 1.0.1
  description: The API of the Advisor project in Insights
servers:
- url: https://console.redhat.com/
  description: The API of the Advisor project in Insights
tags:
- name: autosubexclusion
paths:
  /api/insights/v1/autosubexclusion/:
    get:
      operationId: autosubexclusion_list
      description: 'Returns all subscription exclusions for accounts


        This returns a list of all subscription exclusions.

        This contains exclusions and their account and org_id.

        These are all accounts that are excluded from the autosub

        subscription path for weekly report subscriptions.'
      parameters:
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      tags:
      - autosubexclusion
      security:
      - x-rh-identity: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedSubscriptionExcludedAccountList'
          description: ''
      summary: Autosubexclusion list
      x-summary-source: derived
    post:
      operationId: autosubexclusion_create
      description: 'Create a new subscription exclusion for an account.


        This creates a new subscription exclusion for an account.

        This should contain an org_id and account. Only org_id is required.

        Account is optional.'
      tags:
      - autosubexclusion
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriptionExcludedAccount'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SubscriptionExcludedAccount'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/SubscriptionExcludedAccount'
        required: true
      security:
      - x-rh-identity: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionExcludedAccount'
          description: ''
      summary: Autosubexclusion create
      x-summary-source: derived
  /api/insights/v1/autosubexclusion/{org_id}/:
    get:
      operationId: autosubexclusion_retrieve
      description: 'Returns an individual subscription exclusion based on org_id.


        This returns an individual subscription exclusion

        based on the org_id.'
      parameters:
      - in: path
        name: org_id
        schema:
          type: string
        required: true
      tags:
      - autosubexclusion
      security:
      - x-rh-identity: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionExcludedAccount'
          description: ''
      summary: Autosubexclusion retrieve
      x-summary-source: derived
    delete:
      operationId: autosubexclusion_destroy
      description: 'Destroy an existing subscription exclusion in the system.


        This will DELETE an existing subscription exclusion

        in the system. Existing subscription exclusions

        are identified and deleted by the "org_id" field.'
      parameters:
      - in: path
        name: org_id
        schema:
          type: string
        required: true
      tags:
      - autosubexclusion
      security:
      - x-rh-identity: []
      responses:
        '204':
          content:
            application/json:
              schema:
                type: string
          description: ''
      summary: Autosubexclusion destroy
      x-summary-source: derived
components:
  schemas:
    SubscriptionExcludedAccount:
      type: object
      properties:
        org_id:
          type: string
        account:
          type: string
      required:
      - org_id
    PaginatedSubscriptionExcludedAccountList:
      type: object
      properties:
        meta:
          type: object
          properties:
            count:
              type: integer
              example: 169
          required:
          - count
        links:
          type: object
          properties:
            first:
              type:
              - string
              - 'null'
              format: uri
            previous:
              type:
              - string
              - 'null'
              format: uri
            next:
              type:
              - string
              - 'null'
              format: uri
            last:
              type:
              - string
              - 'null'
              format: uri
        data:
          type: array
          items:
            $ref: '#/components/schemas/SubscriptionExcludedAccount'
  securitySchemes:
    x-rh-identity:
      type: apiKey
      in: header
      name: x-rh-identity