Red Hat Enterprise Linux 8 Accounts Staleness API

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

GitHub OpenAPI

Operations 5

DELETE /account/staleness Delete an account staleness #
GET /account/staleness Read the entire list of account staleness #
PATCH /account/staleness Update account staleness record #
POST /account/staleness Create account staleness record #
GET /account/staleness/defaults Read the entire list of account staleness #

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-accounts-staleness-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-accounts-staleness-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: REST interface for the Insights Platform Host Inventory application.
  title: Insights Host Inventory REST Interface Accounts Staleness…
  version: 1.0.0
servers:
- description: API server
  url: /api/inventory/v1
tags:
- name: accounts_staleness
paths:
  /account/staleness:
    delete:
      description: 'Delete an account staleness


        Required permissions: staleness:staleness:write'
      operationId: api.staleness.delete_staleness
      responses:
        '204':
          description: Successfully deleted account staleness.
        '400':
          description: Invalid request.
        '404':
          description: Account Staleness not found.
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
      summary: Delete an account staleness
      tags:
      - accounts_staleness
    get:
      description: 'Read the entire list of all accounts staleness available. Required permissions: staleness:staleness:read'
      operationId: api.staleness.get_staleness
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StalenessOutput'
          description: Successfully read the staleness account.
        '400':
          description: Invalid request.
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
      summary: Read the entire list of account staleness
      tags:
      - accounts_staleness
    patch:
      description: 'Update account staleness record. Required permissions: staleness:staleness:write'
      operationId: api.staleness.update_staleness
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StalenessIn'
        description: Data required to update a record for a account staleness.
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StalenessOutput'
          description: Successfully account staleness updated.
        '400':
          description: Invalid request.
        '404':
          description: Staleness record not found.
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
      summary: Update account staleness record
      tags:
      - accounts_staleness
    post:
      description: 'Create account staleness record. Required permissions: staleness:staleness:write'
      operationId: api.staleness.create_staleness
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StalenessIn'
        description: Data required to create a record for a account staleness.
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StalenessOutput'
          description: Successfully account staleness created.
        '400':
          description: Invalid request.
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
      summary: Create account staleness record
      tags:
      - accounts_staleness
  /account/staleness/defaults:
    get:
      description: 'Read the entire list of all accounts staleness available. Required permissions: staleness:staleness:read'
      operationId: api.staleness.get_default_staleness
      responses:
        '200':
          content:
            application/json:
              example:
                conventional_time_to_delete: 2592000
                conventional_time_to_stale: 104400
                conventional_time_to_stale_warning: 604800
                created: null
                id: system_default
                immutable_time_to_delete: 2592000
                immutable_time_to_stale: 104400
                immutable_time_to_stale_warning: 604800
                org_id: '000102'
                updated: null
              schema:
                $ref: '#/components/schemas/StalenessOutput'
          description: Successfully read the staleness account.
        '400':
          description: Invalid request.
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
      summary: Read the entire list of account staleness
      tags:
      - accounts_staleness
components:
  schemas:
    StalenessId:
      description: Account Staleness UID
      oneOf:
      - $ref: '#/components/schemas/NonStrictUUID'
      - $ref: '#/components/schemas/SystemDefaultId'
    StalenessIn:
      description: Data of a single account staleness.
      properties:
        conventional_time_to_delete:
          $ref: '#/components/schemas/StalenessTimeout'
        conventional_time_to_stale:
          $ref: '#/components/schemas/StalenessTimeout'
        conventional_time_to_stale_warning:
          $ref: '#/components/schemas/StalenessTimeout'
        immutable_time_to_delete:
          $ref: '#/components/schemas/StalenessTimeout'
        immutable_time_to_stale:
          $ref: '#/components/schemas/StalenessTimeout'
        immutable_time_to_stale_warning:
          $ref: '#/components/schemas/StalenessTimeout'
      title: Account Staleness In
      type: object
    SystemDefaultId:
      enum:
      - system_default
      example: system_default
      type: string
    NonStrictUUID:
      example: ba6decfc-1956-4430-ab81-4bf8f70e8cef
      format: uuid
      pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$|^[0-9a-fA-F]{8}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{12}$
      type: string
    StalenessTimeout:
      minimum: 1
      type: integer
    StalenessOutput:
      allOf:
      - $ref: '#/components/schemas/StalenessIn'
      - required:
        - conventional_time_to_stale
        - conventional_time_to_stale_warning
        - conventional_time_to_delete
        - immutable_time_to_stale
        - immutable_time_to_stale_warning
        - immutable_time_to_delete
      - properties:
          created:
            description: A timestamp when the entry was created.
            format: date-time
            type:
            - string
            - 'null'
          id:
            $ref: '#/components/schemas/StalenessId'
          org_id:
            $ref: '#/components/schemas/OrgId'
          updated:
            description: A timestamp when the entry was last updated.
            format: date-time
            type:
            - string
            - 'null'
        required:
        - id
        - org_id
        - created
        - updated
      description: Data of a account staleness.
      example:
        conventional_time_to_delete: 5184000
        conventional_time_to_stale: 172800
        conventional_time_to_stale_warning: 1209600
        created: '2023-03-01T16:04:02.588Z'
        id: ba6decfc-1956-4430-ab81-4bf8f70e8cef
        immutable_time_to_delete: 5184000
        immutable_time_to_stale: 172800
        immutable_time_to_stale_warning: 1209600
        org_id: '000102'
        updated: '2023-03-01T16:04:02.588Z'
      title: Account Staleness Out
      type: object
    OrgId:
      description: The Org ID of the tenant that owns the host.
      example: '000102'
      type: string
  securitySchemes:
    ApiKeyAuth:
      description: 'Base64-encoded JSON identity header provided by 3Scale. Contains an org_id of the user issuing the request. Format of the JSON: {"identity": {"org_id": "12345678"}}'
      in: header
      name: x-rh-identity
      type: apiKey
      x-apikeyInfoFunc: app.auth.authentication_header_handler
    BearerAuth:
      scheme: bearer
      type: http
      x-bearerInfoFunc: app.auth.bearer_token_handler
externalDocs:
  description: Using APIs to configure Red Hat Lightspeed services
  url: https://docs.redhat.com/en/documentation/red_hat_lightspeed/1-latest/html-single/using_apis_to_configure_red_hat_lightspeed_services/index