---
title: "GET /2021-01-01/domain"
method: GET
path: "/2021-01-01/domain"
---

# GET /2021-01-01/domain

`GET /2021-01-01/domain`

Returns the names of all Amazon OpenSearch Service domains owned by the current user in the active Region.

## Query parameters

- `engineType` 'OpenSearch' | 'Elasticsearch'

## Response `200`

Success

- ListDomainNamesResponse — The results of a <code>ListDomainNames</code> operation. Contains the names of all domains owned by this account and their respective engine types.
  - `DomainNames` DomainInfo[] — The names of all OpenSearch Service domains owned by the current user and their respective engine types.
    - `DomainName` string — Name of the domain.
    - `EngineType` 'OpenSearch' | 'Elasticsearch' — The type of search engine that the domain is running.<code>OpenSearch</code> for an OpenSearch engine, or <code>Elasticsearch</code> for a legacy Elasticsearch OSS engine.

## Other responses

- `480` — BaseException
- `481` — ValidationException

---

[API](https://skmtc.net/aws/apis/opensearch.md) · [All operations](https://skmtc.net/aws/apis/opensearch/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/opensearch/revisions/e747e56ee8c6/schema)
