Red Hat Ansible Automation Platform Api: Service-Index Resources API

The Api: Service-Index Resources API from Red Hat Ansible Automation Platform — 2 operation(s) for api: service-index resources.

Operations 6

GET /api/automation-hub/service-index/resources/ List resources #
POST /api/automation-hub/service-index/resources/ Create a resource #
GET /api/automation-hub/service-index/resources/{ansible_id}/ Inspect a resource #
PUT /api/automation-hub/service-index/resources/{ansible_id}/ Update a resource #
PATCH /api/automation-hub/service-index/resources/{ansible_id}/ Update a resource #
DELETE /api/automation-hub/service-index/resources/{ansible_id}/ Delete a resource #

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-ansible-automation-platform-api-service-index-resources-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

red-hat-ansible-automation-platform-api-service-index-resources-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 'Automation Hub Api: Service-Index Resources API'
  version: v3
  description: Fetch, Upload, Organize, and Distribute Ansible Collections
  contact:
    name: Automation Hub Team
    email: ansible-galaxy-team@redhat.com
    url: https://www.ansible.com/products/automation-hub
  license:
    name: GPLv2+
    url: https://raw.githubusercontent.com/ansible/galaxy_ng/main/LICENSE
  x-logo:
    url: https://pulp.plan.io/attachments/download/517478/pulp_logo_word_rectangle.svg
  x-pulp-app-versions:
    core: 3.49.40
    galaxy: 4.12.0dev
    ansible: 0.25.1
    container: 2.19.5
    certguard: 3.49.40
    file: 3.49.40
  x-pulp-domain-enabled: false
servers:
- url: http://automation-hub-backend-cwa.automation-hub-prod.svc.cluster.local:8000/
tags:
- name: 'Api: Service-Index Resources'
paths:
  /api/automation-hub/service-index/resources/:
    get:
      operationId: api_automation_hub_service_index_resources_list
      description: Index of all the resources in the system.
      summary: List resources
      parameters:
      - name: page
        required: false
        in: query
        description: A page number within the paginated result set.
        schema:
          type: integer
      - in: query
        name: fields
        schema:
          type: array
          items:
            type: string
        description: A list of fields to include in the response.
      - in: query
        name: exclude_fields
        schema:
          type: array
          items:
            type: string
        description: A list of fields to exclude from the response.
      tags:
      - 'Api: Service-Index Resources'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResourceListResponseList'
          description: ''
    post:
      operationId: api_automation_hub_service_index_resources_create
      description: Index of all the resources in the system.
      summary: Create a resource
      tags:
      - 'Api: Service-Index Resources'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Resource'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Resource'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Resource'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceResponse'
          description: ''
  /api/automation-hub/service-index/resources/{ansible_id}/:
    get:
      operationId: api_automation_hub_service_index_resources_read
      description: Index of all the resources in the system.
      summary: Inspect a resource
      parameters:
      - in: path
        name: ansible_id
        schema:
          type: string
          format: uuid
          description: A unique ID identifying this resource by the resource server.
        required: true
      - in: query
        name: fields
        schema:
          type: array
          items:
            type: string
        description: A list of fields to include in the response.
      - in: query
        name: exclude_fields
        schema:
          type: array
          items:
            type: string
        description: A list of fields to exclude from the response.
      tags:
      - 'Api: Service-Index Resources'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceResponse'
          description: ''
    put:
      operationId: api_automation_hub_service_index_resources_update
      description: Index of all the resources in the system.
      summary: Update a resource
      parameters:
      - in: path
        name: ansible_id
        schema:
          type: string
          format: uuid
          description: A unique ID identifying this resource by the resource server.
        required: true
      tags:
      - 'Api: Service-Index Resources'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Resource'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Resource'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Resource'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceResponse'
          description: ''
    patch:
      operationId: api_automation_hub_service_index_resources_partial_update
      description: Index of all the resources in the system.
      summary: Update a resource
      parameters:
      - in: path
        name: ansible_id
        schema:
          type: string
          format: uuid
          description: A unique ID identifying this resource by the resource server.
        required: true
      tags:
      - 'Api: Service-Index Resources'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedResource'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedResource'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedResource'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceResponse'
          description: ''
    delete:
      operationId: api_automation_hub_service_index_resources_delete
      description: Index of all the resources in the system.
      summary: Delete a resource
      parameters:
      - in: path
        name: ansible_id
        schema:
          type: string
          format: uuid
          description: A unique ID identifying this resource by the resource server.
        required: true
      tags:
      - 'Api: Service-Index Resources'
      responses:
        '204':
          description: No response body
components:
  schemas:
    PatchedResource:
      type: object
      properties:
        ansible_id:
          type: string
          format: uuid
          description: A unique ID identifying this resource by the resource server.
        service_id:
          type: string
          format: uuid
          description: ID of the service responsible for managing this resource.
        is_partially_migrated:
          type: boolean
          description: A flag indicating that the resource has been copied into the resource server, but the service_id hasn't been updated yet.
        resource_type:
          type: string
          minLength: 1
        resource_data:
          type: object
    ResourceResponse:
      type: object
      properties:
        object_id:
          type: string
          readOnly: true
          description: The object id for this resource.
        name:
          type:
          - string
          - 'null'
          readOnly: true
          description: The name of this resource.
        ansible_id:
          type: string
          format: uuid
          description: A unique ID identifying this resource by the resource server.
        service_id:
          type: string
          format: uuid
          description: ID of the service responsible for managing this resource.
        is_partially_migrated:
          type: boolean
          description: A flag indicating that the resource has been copied into the resource server, but the service_id hasn't been updated yet.
        resource_type:
          type: string
        has_serializer:
          type: boolean
          readOnly: true
        resource_data:
          type: object
        url:
          type: string
          readOnly: true
        additional_data:
          type: string
          readOnly: true
      required:
      - resource_data
    PaginatedResourceListResponseList:
      type: object
      required:
      - count
      - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type:
          - string
          - 'null'
          format: uri
          example: http://api.example.org/accounts/?page=4
        previous:
          type:
          - string
          - 'null'
          format: uri
          example: http://api.example.org/accounts/?page=2
        results:
          type: array
          items:
            $ref: '#/components/schemas/ResourceListResponse'
    Resource:
      type: object
      properties:
        ansible_id:
          type: string
          format: uuid
          description: A unique ID identifying this resource by the resource server.
        service_id:
          type: string
          format: uuid
          description: ID of the service responsible for managing this resource.
        is_partially_migrated:
          type: boolean
          description: A flag indicating that the resource has been copied into the resource server, but the service_id hasn't been updated yet.
        resource_type:
          type: string
          minLength: 1
        resource_data:
          type: object
      required:
      - resource_data
    ResourceListResponse:
      type: object
      properties:
        object_id:
          type: string
          readOnly: true
          description: The object id for this resource.
        name:
          type:
          - string
          - 'null'
          readOnly: true
          description: The name of this resource.
        ansible_id:
          type: string
          format: uuid
          description: A unique ID identifying this resource by the resource server.
        service_id:
          type: string
          format: uuid
          description: ID of the service responsible for managing this resource.
        is_partially_migrated:
          type: boolean
          description: A flag indicating that the resource has been copied into the resource server, but the service_id hasn't been updated yet.
        resource_type:
          type: string
        has_serializer:
          type: boolean
          readOnly: true
        url:
          type: string
          readOnly: true