/AWS1/IF_EKS=>LISTINSIGHTS()¶
About 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. The default filter lists all categories and every status.
The following lists the available categories:
-
UPGRADE_READINESS: Amazon EKS identifies issues that could impact your ability to upgrade to new versions of Kubernetes. These are called upgrade insights. -
MISCONFIGURATION: Amazon EKS identifies misconfiguration in your EKS Hybrid Nodes setup that could impair functionality of your cluster or workloads. These are called configuration insights.
Method Signature¶
METHODS /AWS1/IF_EKS~LISTINSIGHTS
IMPORTING
!IV_CLUSTERNAME TYPE /AWS1/EKSSTRING OPTIONAL
!IO_FILTER TYPE REF TO /AWS1/CL_EKSINSIGHTSFILTER OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/EKSLISTINSIGHTSMAXRSLTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/EKSSTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ekslistinsightsrsp
RAISING
/AWS1/CX_EKSINVALIDPARAMETEREX
/AWS1/CX_EKSINVALIDREQUESTEX
/AWS1/CX_EKSRESOURCENOTFOUNDEX
/AWS1/CX_EKSSERVEREXCEPTION
/AWS1/CX_EKSCLIENTEXC
/AWS1/CX_EKSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_clustername TYPE /AWS1/EKSSTRING /AWS1/EKSSTRING¶
The name of the Amazon EKS cluster associated with the insights.
Optional arguments:¶
io_filter TYPE REF TO /AWS1/CL_EKSINSIGHTSFILTER /AWS1/CL_EKSINSIGHTSFILTER¶
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.
iv_maxresults TYPE /AWS1/EKSLISTINSIGHTSMAXRSLTS /AWS1/EKSLISTINSIGHTSMAXRSLTS¶
The maximum number of identity provider configurations returned by
ListInsightsin paginated output. When you use this parameter,ListInsightsreturns onlymaxResultsresults in a single page along with anextTokenresponse element. You can see the remaining results of the initial request by sending anotherListInsightsrequest with the returnednextTokenvalue. This value can be between 1 and 100. If you don't use this parameter,ListInsightsreturns up to 100 results and anextTokenvalue, if applicable.
iv_nexttoken TYPE /AWS1/EKSSTRING /AWS1/EKSSTRING¶
The
nextTokenvalue returned from a previous paginatedListInsightsrequest. When the results of aListInsightsrequest exceedmaxResults, you can use this value to retrieve the next page of results. This value isnullwhen there are no more results to return.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ekslistinsightsrsp /AWS1/CL_EKSLISTINSIGHTSRSP¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->listinsights(
io_filter = new /aws1/cl_eksinsightsfilter(
it_categories = VALUE /aws1/cl_ekscategorylist_w=>tt_categorylist(
( new /aws1/cl_ekscategorylist_w( |string| ) )
)
it_kubernetesversions = VALUE /aws1/cl_eksstringlist_w=>tt_stringlist(
( new /aws1/cl_eksstringlist_w( |string| ) )
)
it_statuses = VALUE /aws1/cl_eksinsightstatvalls00=>tt_insightstatusvaluelist(
( new /aws1/cl_eksinsightstatvalls00( |string| ) )
)
)
iv_clustername = |string|
iv_maxresults = 123
iv_nexttoken = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_insights( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_id( ).
lv_string = lo_row_1->get_name( ).
lv_category = lo_row_1->get_category( ).
lv_string = lo_row_1->get_kubernetesversion( ).
lv_timestamp = lo_row_1->get_lastrefreshtime( ).
lv_timestamp = lo_row_1->get_lasttransitiontime( ).
lv_string = lo_row_1->get_description( ).
lo_insightstatus = lo_row_1->get_insightstatus( ).
IF lo_insightstatus IS NOT INITIAL.
lv_insightstatusvalue = lo_insightstatus->get_status( ).
lv_string = lo_insightstatus->get_reason( ).
ENDIF.
ENDIF.
ENDLOOP.
lv_string = lo_result->get_nexttoken( ).
ENDIF.