Skip to content

/AWS1/CL_EKS=>LISTEKSANYWHERESUBSCRIPTIONS()

About ListEksAnywhereSubscriptions

Displays the full description of the subscription.

Method Signature

IMPORTING

Optional arguments:

iv_maxresults TYPE /AWS1/EKSLSTEKSANYWHERESUBSC00 /AWS1/EKSLSTEKSANYWHERESUBSC00

The maximum number of cluster results returned by ListEksAnywhereSubscriptions in paginated output. When you use this parameter, ListEksAnywhereSubscriptions returns only maxResults results in a single page along with a nextToken response element. You can see the remaining results of the initial request by sending another ListEksAnywhereSubscriptions request with the returned nextToken value. This value can be between 1 and 100. If you don't use this parameter, ListEksAnywhereSubscriptions returns up to 10 results and a nextToken value if applicable.

iv_nexttoken TYPE /AWS1/EKSSTRING /AWS1/EKSSTRING

The nextToken value returned from a previous paginated ListEksAnywhereSubscriptions request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value.

it_includestatus TYPE /AWS1/CL_EKSEKSANYWHERESUBSC02=>TT_EKSANYWHERESUBSCRIPTIONST00 TT_EKSANYWHERESUBSCRIPTIONST00

An array of subscription statuses to filter on.

RETURNING

oo_output TYPE REF TO /aws1/cl_ekslsteksanywheresu01 /AWS1/CL_EKSLSTEKSANYWHERESU01

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->/aws1/if_eks~listeksanywheresubscriptions(
  it_includestatus = VALUE /aws1/cl_ekseksanywheresubsc02=>tt_eksanywheresubscriptionst00(
    ( new /aws1/cl_ekseksanywheresubsc02( |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_subscriptions( ) 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_arn( ).
      lv_timestamp = lo_row_1->get_createdat( ).
      lv_timestamp = lo_row_1->get_effectivedate( ).
      lv_timestamp = lo_row_1->get_expirationdate( ).
      lv_integer = lo_row_1->get_licensequantity( ).
      lv_eksanywheresubscription = lo_row_1->get_licensetype( ).
      lo_eksanywheresubscription_1 = lo_row_1->get_term( ).
      IF lo_eksanywheresubscription_1 IS NOT INITIAL.
        lv_integer = lo_eksanywheresubscription_1->get_duration( ).
        lv_eksanywheresubscription_2 = lo_eksanywheresubscription_1->get_unit( ).
      ENDIF.
      lv_string = lo_row_1->get_status( ).
      lv_boolean = lo_row_1->get_autorenew( ).
      LOOP AT lo_row_1->get_licensearns( ) into lo_row_2.
        lo_row_3 = lo_row_2.
        IF lo_row_3 IS NOT INITIAL.
          lv_string = lo_row_3->get_value( ).
        ENDIF.
      ENDLOOP.
      LOOP AT lo_row_1->get_licenses( ) into lo_row_4.
        lo_row_5 = lo_row_4.
        IF lo_row_5 IS NOT INITIAL.
          lv_string = lo_row_5->get_id( ).
          lv_string = lo_row_5->get_token( ).
        ENDIF.
      ENDLOOP.
      LOOP AT lo_row_1->get_tags( ) into ls_row_6.
        lv_key = ls_row_6-key.
        lo_value = ls_row_6-value.
        IF lo_value IS NOT INITIAL.
          lv_tagvalue = lo_value->get_value( ).
        ENDIF.
      ENDLOOP.
    ENDIF.
  ENDLOOP.
  lv_string = lo_result->get_nexttoken( ).
ENDIF.