ListLinuxSubscriptions - License Manager Linux Subscriptions

ListLinuxSubscriptions

Lists the Linux subscriptions that have been discovered. If you have linked your organization, the returned results will include data aggregated across your accounts in AWS Organizations.

Request Syntax

POST /subscription/ListLinuxSubscriptions 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.

Filters

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 Subscription with an optional operator to see subscriptions that match, partially match, or don't match a certain subscription's name.

The valid names for this filter are:

  • Subscription

The valid Operators for this filter are:

  • contains

  • equals

  • Notequal

Type: Array of Filter objects

Required: No

MaxResults

Maximum number of results to return in a single call.

Type: Integer

Required: No

NextToken

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 { "NextToken": "string", "Subscriptions": [ { "InstanceCount": number, "Name": "string", "Type": "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.

NextToken

Token for the next set of results.

Type: String

Subscriptions

An array that contains subscription objects.

Type: Array of Subscription objects

Errors

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

InternalServerException

An exception occurred with the service.

HTTP Status Code: 500

ThrottlingException

The request was denied due to request throttling.

HTTP Status Code: 400

ValidationException

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: