ListLinuxSubscriptionInstances - License Manager Linux Subscriptions


Lists the running Amazon EC2 instances that were discovered with commercial Linux subscriptions.

Request Syntax

POST /subscription/ListLinuxSubscriptionInstances HTTP/1.1 Content-type: application/json { "Filters": [ { "Name": "string", "Operator": "string", "Values": [ "string" ] } ], "MaxResults": number, "NextToken": "string" }

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.


An array of structures that you can use to filter the results by your specified criteria. For example, you can specify Region in the Name, with the contains operator to list all subscriptions that match a partial string in the Value, such as us-west.

For each filter, you can specify one of the following values for the Name key to streamline results:

  • AccountID

  • AmiID

  • DualSubscription

  • InstanceID

  • InstanceType

  • ProductCode

  • Region

  • Status

  • UsageOperation

For each filter, you can use one of the following Operator values to define the behavior of the filter:

  • contains

  • equals

  • Notequal

Type: Array of Filter objects

Required: No


The maximum items to return in a request.

Type: Integer

Required: No


A token to specify where to start paginating. This is the nextToken from a previously truncated response.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 16384.

Required: No

Response Syntax

HTTP/1.1 200 Content-type: application/json { "Instances": [ { "AccountID": "string", "AmiId": "string", "DualSubscription": "string", "InstanceID": "string", "InstanceType": "string", "LastUpdatedTime": "string", "OsVersion": "string", "ProductCode": [ "string" ], "Region": "string", "RegisteredWithSubscriptionProvider": "string", "Status": "string", "SubscriptionName": "string", "SubscriptionProviderCreateTime": "string", "SubscriptionProviderUpdateTime": "string", "UsageOperation": "string" } ], "NextToken": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.


An array that contains instance objects.

Type: Array of Instance objects


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.

Type: String


For information about the errors that are common to all actions, see Common Errors.


An exception occurred with the service.

HTTP Status Code: 500


The request was denied due to request throttling.

HTTP Status Code: 400


The provided input is not valid. Try your request again.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: