---
title: "POST /instance/ListInstances"
method: POST
path: "/instance/ListInstances"
---

# POST /instance/ListInstances

`POST /instance/ListInstances`

Lists the EC2 instances providing user-based subscriptions.

## Request body

- object
  - `MaxResults` integer — The maximum number of results to return from a single request.
  - `NextToken` string — A token to specify where to start paginating. This is the nextToken from a previously truncated response.
  - `Filters` Filter[] — <p>You can use the following filters to streamline results:</p> <ul> <li> <p>Status</p> </li> <li> <p>InstanceId</p> </li> </ul>
    - `Attribute` string — The name of an attribute to use as a filter.
    - `Operation` string — The type of search (For example, eq, geq, leq)
    - `Value` string — Value of the filter.

## Response `200`

Success

- ListInstancesResponse
  - `InstanceSummaries` InstanceSummary[] — An array of <code>InstanceSummary</code> resources that contain details about the instances that provide user-based subscriptions and also meet the request criteria.
    - `InstanceId` string, required — The ID of the EC2 instance, which provides user-based subscriptions.
    - `Status` string, required — The status of an EC2 instance resource.
    - `Products` String[], required — A list of provided user-based subscription products.
    - `LastStatusCheckDate` string — The date of the last status check.
    - `StatusMessage` string — The status message for an EC2 instance.
    - `OwnerAccountId` string — The AWS Account ID of the owner of this resource.
    - `IdentityProvider` object — The <code>IdentityProvider</code> resource specifies details about the identity provider.
      - `ActiveDirectoryIdentityProvider` object — The <code>ActiveDirectoryIdentityProvider</code> resource contains settings and other details about a specific Active Directory identity provider.
        - `DirectoryId` string — The directory ID for an Active Directory identity provider.
        - `ActiveDirectorySettings` object — The <code>ActiveDirectorySettings</code> resource contains details about the Active Directory, including network access details such as domain name and IP addresses, and the credential provider for user administration.
          - `DomainName` string — The domain name for the Active Directory.
          - `DomainIpv4List` IpV4[] — A list of domain IPv4 addresses that are used for the Active Directory.
          - `DomainIpv6List` IpV6[] — A list of domain IPv6 addresses that are used for the Active Directory.
          - `DomainCredentialsProvider` object — Points to the <code>CredentialsProvider</code> resource that contains information about the credential provider for user administration.
            - `SecretsManagerCredentialsProvider` object — Identifies the Secrets Manager secret that contains credentials needed for user administration in the Active Directory.
              - …
          - `DomainNetworkSettings` object — The <code>DomainNetworkSettings</code> resource contains an array of subnets that apply for the Active Directory.
            - `Subnets` Subnet[], required — Contains a list of subnets that apply for the Active Directory domain.
        - `ActiveDirectoryType` 'SELF_MANAGED' | 'AWS_MANAGED' — The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory.
        - `IsSharedActiveDirectory` boolean — Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false.
  - `NextToken` string — The next token used for paginated responses. When this field isn't empty, there are additional elements that the service hasn't included in this request. Use this token with the next request to retrieve additional objects.

## Other responses

- `480` — ServiceQuotaExceededException
- `481` — ValidationException
- `482` — ConflictException
- `483` — ThrottlingException
- `484` — InternalServerException
- `485` — ResourceNotFoundException
- `486` — AccessDeniedException

---

[API](https://skmtc.net/aws/apis/license-manager-user-subscriptions.md) · [All operations](https://skmtc.net/aws/apis/license-manager-user-subscriptions/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/license-manager-user-subscriptions/versions/3f333914dcdb/schema)
