---
title: "GET /2015-01-01/packages/{PackageID}/domains"
method: GET
path: "/2015-01-01/packages/{PackageID}/domains"
---

# GET /2015-01-01/packages/{PackageID}/domains

`GET /2015-01-01/packages/{PackageID}/domains`

Lists all Amazon ES domains associated with the package.

## Path parameters

- `PackageID` string, required

## Query parameters

- `maxResults` integer — Set this value to limit the number of results returned.
- `nextToken` string — Paginated APIs accepts NextToken input to returns next page results and provides a NextToken output in the response which can be used by the client to retrieve more results.
- `MaxResults` string
- `NextToken` string

## Response `200`

Success

- ListDomainsForPackageResponse — Container for response parameters to <code> <a>ListDomainsForPackage</a> </code> operation.
  - `DomainPackageDetailsList` DomainPackageDetails[] — List of <code>DomainPackageDetails</code> objects.
    - `PackageID` string — Internal ID of the package.
    - `PackageName` string — User specified name of the package.
    - `PackageType` 'TXT-DICTIONARY' — Currently supports only TXT-DICTIONARY.
    - `LastUpdated` string, date-time — Timestamp of the most-recent update to the association status.
    - `DomainName` string — Name of the domain you've associated a package with.
    - `DomainPackageStatus` 'ASSOCIATING' | 'ASSOCIATION_FAILED' | 'ACTIVE' | 'DISSOCIATING' | 'DISSOCIATION_FAILED' — State of the association. Values are ASSOCIATING/ASSOCIATION_FAILED/ACTIVE/DISSOCIATING/DISSOCIATION_FAILED.
    - `PackageVersion` string
    - `ReferencePath` string — The relative path on Amazon ES nodes, which can be used as synonym_path when the package is synonym file.
    - `ErrorDetails` object — Additional information if the package is in an error state. Null otherwise.
      - `ErrorType` string
      - `ErrorMessage` string
  - `NextToken` string

## Other responses

- `480` — BaseException
- `481` — InternalException
- `482` — ResourceNotFoundException
- `483` — AccessDeniedException
- `484` — ValidationException

---

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