ListInsights
Returns a list of all insights checked for against the specified cluster. You can filter which insights are returned by category, associated Kubernetes version, and status.
Request Syntax
POST /clusters/name
/insights HTTP/1.1
Content-type: application/json
{
"filter": {
"categories": [ "string
" ],
"kubernetesVersions": [ "string
" ],
"statuses": [ "string
" ]
},
"maxResults": number
,
"nextToken": "string
"
}
URI Request Parameters
The request uses the following URI parameters.
- name
-
The name of the Amazon EKS cluster associated with the insights.
Required: Yes
Request Body
The request accepts the following data in JSON format.
- filter
-
The criteria to filter your list of insights for your cluster. You can filter which insights are returned by category, associated Kubernetes version, and status.
Type: InsightsFilter object
Required: No
- maxResults
-
The maximum number of identity provider configurations returned by
ListInsights
in paginated output. When you use this parameter,ListInsights
returns onlymaxResults
results in a single page along with anextToken
response element. You can see the remaining results of the initial request by sending anotherListInsights
request with the returnednextToken
value. This value can be between 1 and 100. If you don't use this parameter,ListInsights
returns up to 100 results and anextToken
value, if applicable.Type: Integer
Valid Range: Minimum value of 1. Maximum value of 100.
Required: No
- nextToken
-
The
nextToken
value returned from a previous paginatedListInsights
request. When the results of aListInsights
request exceedmaxResults
, you can use this value to retrieve the next page of results. This value isnull
when there are no more results to return.Type: String
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"insights": [
{
"category": "string",
"description": "string",
"id": "string",
"insightStatus": {
"reason": "string",
"status": "string"
},
"kubernetesVersion": "string",
"lastRefreshTime": number,
"lastTransitionTime": number,
"name": "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.
- insights
-
The returned list of insights.
Type: Array of InsightSummary objects
- nextToken
-
The
nextToken
value to include in a futureListInsights
request. When the results of aListInsights
request exceedmaxResults
, you can use this value to retrieve the next page of results. This value isnull
when there are no more results to return.Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
- InvalidParameterException
-
The specified parameter is invalid. Review the available parameters for the API request.
HTTP Status Code: 400
- InvalidRequestException
-
The request is invalid given the state of the cluster. Check the state of the cluster and the associated operations.
HTTP Status Code: 400
- ResourceNotFoundException
-
The specified resource could not be found. You can view your available clusters with
ListClusters
. You can view your available managed node groups withListNodegroups
. Amazon EKS clusters and node groups are AWS Region specific.HTTP Status Code: 404
- ServerException
-
These errors are usually caused by a server-side issue.
HTTP Status Code: 500
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: