Amazon OpenSearch Service API Domain API

The Domain API from Amazon OpenSearch Service API — 2 operation(s) for domain.

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 6

GET /2021-01-01/domain List Domain Names #
GET /2021-01-01/packages/{PackageID}/domains List Domains For Package #
GET /2015-01-01/domain List Domain Names #
GET /2015-01-01/packages/{PackageID}/domains List Domains For Package #
GET /2021-01-01/domain/{DomainName}/packages List Packages For Domain #
GET /2015-01-01/domain/{DomainName}/packages List Packages For Domain #

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/amazon-opensearch:amazon-opensearch-domain-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

amazon-opensearch-domain-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon OpenSearch Service Domain API
  version: '2021-01-01'
  description: Generated from AWS's published Smithy model for Amazon OpenSearch Service. 6 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://es.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /2021-01-01/domain:
    get:
      operationId: ListDomainNames
      summary: List Domain Names
      description: Returns the names of all Amazon OpenSearch Service domains owned by the current user in the active Region.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListDomainNamesResponse'
        '400':
          description: BaseException; ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BaseException'
      parameters:
      - name: engineType
        in: query
        schema:
          type: string
          enum:
          - OpenSearch
          - Elasticsearch
        description: Filters the output by domain engine type.
      tags:
      - Domain
  /2021-01-01/packages/{PackageID}/domains:
    get:
      operationId: ListDomainsForPackage
      summary: List Domains For Package
      description: Lists all Amazon OpenSearch Service domains associated with a given package. For more information, see
        Custom packages for Amazon OpenSearch Service.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListDomainsForPackageResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '400':
          description: BaseException; ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BaseException'
        '500':
          description: InternalException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalException'
        '409':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      parameters:
      - name: PackageID
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the package for which to list associated domains.
      - name: maxResults
        in: query
        schema:
          type: integer
        description: An optional parameter that specifies the maximum number of results to return. You can use nextToken to
          get the next page of results.
      - name: nextToken
        in: query
        schema:
          type: string
        description: If your initial ListDomainsForPackage operation returns a nextToken, you can include the returned nextToken
          in subsequent ListDomainsForPackage operations, which returns results in the next page.
      tags:
      - Domain
  /2015-01-01/domain:
    get:
      operationId: ListDomainNames
      summary: List Domain Names
      description: Returns the name of all Elasticsearch domains owned by the current user's account.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EsListDomainNamesResponse'
        '400':
          description: BaseException; ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BaseException'
      parameters:
      - name: engineType
        in: query
        schema:
          type: string
          enum:
          - OpenSearch
          - Elasticsearch
        description: Optional parameter to filter the output by domain engine type. Acceptable values are 'Elasticsearch'
          and 'OpenSearch'.
      tags:
      - Domain
      servers:
      - url: https://es.{region}.amazonaws.com
        variables:
          region:
            default: us-east-1
  /2015-01-01/packages/{PackageID}/domains:
    get:
      operationId: ListDomainsForPackage
      summary: List Domains For Package
      description: Lists all Amazon ES domains associated with the package.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EsListDomainsForPackageResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '400':
          description: BaseException; ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BaseException'
        '500':
          description: InternalException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalException'
        '409':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      parameters:
      - name: PackageID
        in: path
        required: true
        schema:
          type: string
        description: The package for which to list domains.
      - name: maxResults
        in: query
        schema:
          type: integer
        description: Limits results to a maximum number of domains.
      - name: nextToken
        in: query
        schema:
          type: string
        description: Used for pagination. Only necessary if a previous API call includes a non-null NextToken value. If provided,
          returns results for the next page.
      tags:
      - Domain
      servers:
      - url: https://es.{region}.amazonaws.com
        variables:
          region:
            default: us-east-1
  /2021-01-01/domain/{DomainName}/packages:
    get:
      operationId: ListPackagesForDomain
      summary: List Packages For Domain
      description: Lists all packages associated with an Amazon OpenSearch Service domain. For more information, see Custom
        packages for Amazon OpenSearch Service.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListPackagesForDomainResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '400':
          description: BaseException; ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BaseException'
        '500':
          description: InternalException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalException'
        '409':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      parameters:
      - name: DomainName
        in: path
        required: true
        schema:
          type: string
        description: The name of the domain for which you want to list associated packages.
      - name: maxResults
        in: query
        schema:
          type: integer
        description: An optional parameter that specifies the maximum number of results to return. You can use nextToken to
          get the next page of results.
      - name: nextToken
        in: query
        schema:
          type: string
        description: If your initial ListPackagesForDomain operation returns a nextToken, you can include the returned nextToken
          in subsequent ListPackagesForDomain operations, which returns results in the next page.
      tags:
      - Domain
  /2015-01-01/domain/{DomainName}/packages:
    get:
      operationId: ListPackagesForDomain
      summary: List Packages For Domain
      description: Lists all packages associated with the Amazon ES domain.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EsListPackagesForDomainResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '400':
          description: BaseException; ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BaseException'
        '500':
          description: InternalException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalException'
        '409':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      parameters:
      - name: DomainName
        in: path
        required: true
        schema:
          type: string
        description: The name of the domain for which you want to list associated packages.
      - name: maxResults
        in: query
        schema:
          type: integer
        description: Limits results to a maximum number of packages.
      - name: nextToken
        in: query
        schema:
          type: string
        description: Used for pagination. Only necessary if a previous API call includes a non-null NextToken value. If provided,
          returns results for the next page.
      tags:
      - Domain
      servers:
      - url: https://es.{region}.amazonaws.com
        variables:
          region:
            default: us-east-1
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: es
  schemas:
    AccessDeniedException:
      type: object
      properties:
        message:
          type: string
          description: A description of the error.
    BaseException:
      type: object
      properties:
        message:
          type: string
          description: A description of the error.
    DomainInfo:
      type: object
      properties:
        DomainName:
          type: string
          description: Name of the domain.
        EngineType:
          type: string
          enum:
          - OpenSearch
          - Elasticsearch
          description: The type of search engine that the domain is running.OpenSearch for an OpenSearch engine, or Elasticsearch
            for a legacy Elasticsearch OSS engine.
    DomainPackageDetails:
      type: object
      properties:
        PackageID:
          type: string
          description: Internal ID of the package.
        PackageName:
          type: string
          description: User-specified name of the package.
        PackageType:
          type: string
          enum:
          - TXT-DICTIONARY
          - ZIP-PLUGIN
          - PACKAGE-LICENSE
          - PACKAGE-CONFIG
          description: The type of package.
        LastUpdated:
          type: string
          format: date-time
          description: Timestamp of the most recent update to the package association status.
        DomainName:
          type: string
          description: Name of the domain that the package is associated with.
        DomainPackageStatus:
          type: string
          enum:
          - ASSOCIATING
          - ASSOCIATION_FAILED
          - ACTIVE
          - DISSOCIATING
          - DISSOCIATION_FAILED
          description: State of the association.
        PackageVersion:
          type: string
          description: The current version of the package.
        PrerequisitePackageIDList:
          type: array
          items:
            type: string
          description: A list of package IDs that must be associated with the domain before or with the package can be associated.
        ReferencePath:
          type: string
          description: The relative path of the package on the OpenSearch Service cluster nodes. This is synonym_path when
            the package is for synonym files.
        ErrorDetails:
          $ref: '#/components/schemas/ErrorDetails'
        AssociationConfiguration:
          $ref: '#/components/schemas/PackageAssociationConfiguration'
    ErrorDetails:
      type: object
      properties:
        ErrorType:
          type: string
          description: The type of error that occurred.
        ErrorMessage:
          type: string
          description: A message describing the error.
    EsDomainInfo:
      type: object
      properties:
        DomainName:
          type: string
          description: Specifies the DomainName.
        EngineType:
          type: string
          enum:
          - OpenSearch
          - Elasticsearch
          description: Specifies the EngineType of the domain.
    EsDomainPackageDetails:
      type: object
      properties:
        PackageID:
          type: string
          description: Internal ID of the package.
        PackageName:
          type: string
          description: User specified name of the package.
        PackageType:
          type: string
          enum:
          - TXT-DICTIONARY
          description: Currently supports only TXT-DICTIONARY.
        LastUpdated:
          type: string
          format: date-time
          description: Timestamp of the most-recent update to the association status.
        DomainName:
          type: string
          description: Name of the domain you've associated a package with.
        DomainPackageStatus:
          type: string
          enum:
          - ASSOCIATING
          - ASSOCIATION_FAILED
          - ACTIVE
          - DISSOCIATING
          - DISSOCIATION_FAILED
          description: State of the association. Values are ASSOCIATING/ASSOCIATION_FAILED/ACTIVE/DISSOCIATING/DISSOCIATION_FAILED.
        PackageVersion:
          type: string
        ReferencePath:
          type: string
          description: The relative path on Amazon ES nodes, which can be used as synonym_path when the package is synonym
            file.
        ErrorDetails:
          $ref: '#/components/schemas/EsErrorDetails'
    EsErrorDetails:
      type: object
      properties:
        ErrorType:
          type: string
        ErrorMessage:
          type: string
    EsListDomainNamesResponse:
      type: object
      properties:
        DomainNames:
          type: array
          items:
            $ref: '#/components/schemas/EsDomainInfo'
          description: List of domain names and respective engine types.
    EsListDomainsForPackageResponse:
      type: object
      properties:
        DomainPackageDetailsList:
          type: array
          items:
            $ref: '#/components/schemas/EsDomainPackageDetails'
          description: List of DomainPackageDetails objects.
        NextToken:
          type: string
    EsListPackagesForDomainResponse:
      type: object
      properties:
        DomainPackageDetailsList:
          type: array
          items:
            $ref: '#/components/schemas/EsDomainPackageDetails'
          description: List of DomainPackageDetails objects.
        NextToken:
          type: string
          description: Pagination token that needs to be supplied to the next call to get the next page of results.
    InternalException:
      type: object
      properties:
        message:
          type: string
          description: A description of the error.
    KeyStoreAccessOption:
      type: object
      properties:
        KeyAccessRoleArn:
          type: string
          description: Role ARN to access the KeyStore Key
        KeyStoreAccessEnabled:
          type: boolean
          description: This indicates whether Key Store access is enabled
      required:
      - KeyStoreAccessEnabled
    ListDomainNamesResponse:
      type: object
      properties:
        DomainNames:
          type: array
          items:
            $ref: '#/components/schemas/DomainInfo'
          description: The names of all OpenSearch Service domains owned by the current user and their respective engine types.
    ListDomainsForPackageResponse:
      type: object
      properties:
        DomainPackageDetailsList:
          type: array
          items:
            $ref: '#/components/schemas/DomainPackageDetails'
          description: Information about all domains associated with a package.
        NextToken:
          type: string
          description: When nextToken is returned, there are more results available. The value of nextToken is a unique pagination
            token for each page. Send the request again using the returned token to retrieve the next page.
    ListPackagesForDomainResponse:
      type: object
      properties:
        DomainPackageDetailsList:
          type: array
          items:
            $ref: '#/components/schemas/DomainPackageDetails'
          description: List of all packages associated with a domain.
        NextToken:
          type: string
          description: When nextToken is returned, there are more results available. The value of nextToken is a unique pagination
            token for each page. Send the request again using the returned token to retrieve the next page.
    PackageAssociationConfiguration:
      type: object
      properties:
        KeyStoreAccessOption:
          $ref: '#/components/schemas/KeyStoreAccessOption'
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
          description: A description of the error.
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/opensearch/service/2021-01-01/opensearch-2021-01-01.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)
  sources:
  - https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/opensearch/service/2021-01-01/opensearch-2021-01-01.json
  - https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/elasticsearch-service/service/2015-01-01/elasticsearch-service-2015-01-01.json