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 to those that match one or more sets of key-value pairs that you specify. For example, you can filter by the name of AmiID with an optional operator to see subscriptions that match, partially match, or don't match a certain Amazon Machine Image (AMI) ID.

The valid names for this filter are:

  • AmiID

  • InstanceID

  • AccountID

  • Status

  • Region

  • UsageOperation

  • ProductCode

  • InstanceType

The valid Operators for this filter are:

  • contains

  • equals

  • Notequal

Type: Array of Filter objects

Required: No


Maximum number of results to return in a single call.

Type: Integer

Required: No


Token for the next set of results.

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", "InstanceID": "string", "InstanceType": "string", "LastUpdatedTime": "string", "ProductCode": [ "string" ], "Region": "string", "Status": "string", "SubscriptionName": "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


Token for the next set of results.

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: