Skip to content

/AWS1/IF_OUT=>LISTOUTPOSTS()

About ListOutposts

Lists the Outposts for your Amazon Web Services account.

Use filters to return specific results. If you specify multiple filters, the results include only the resources that match all of the specified filters. For a filter where you can specify multiple values, the results include items that match any of the values that you specify for the filter.

Method Signature

IMPORTING

Optional arguments:

iv_nexttoken TYPE /AWS1/OUTTOKEN /AWS1/OUTTOKEN

NextToken

iv_maxresults TYPE /AWS1/OUTMAXRESULTS1000 /AWS1/OUTMAXRESULTS1000

MaxResults

it_lifecyclestatusfilter TYPE /AWS1/CL_OUTLCSTATUSLIST_W=>TT_LIFECYCLESTATUSLIST TT_LIFECYCLESTATUSLIST

Filters the results by the lifecycle status.

it_availabilityzonefilter TYPE /AWS1/CL_OUTAZLIST_W=>TT_AVAILABILITYZONELIST TT_AVAILABILITYZONELIST

Filters the results by Availability Zone (for example, us-east-1a).

it_availabilityzoneidfilter TYPE /AWS1/CL_OUTAZIDLIST_W=>TT_AVAILABILITYZONEIDLIST TT_AVAILABILITYZONEIDLIST

Filters the results by AZ ID (for example, use1-az1).

RETURNING

oo_output TYPE REF TO /aws1/cl_outlistoutpostsoutput /AWS1/CL_OUTLISTOUTPOSTSOUTPUT

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_out~listoutposts(
  it_availabilityzonefilter = VALUE /aws1/cl_outazlist_w=>tt_availabilityzonelist(
    ( new /aws1/cl_outazlist_w( |string| ) )
  )
  it_availabilityzoneidfilter = VALUE /aws1/cl_outazidlist_w=>tt_availabilityzoneidlist(
    ( new /aws1/cl_outazidlist_w( |string| ) )
  )
  it_lifecyclestatusfilter = VALUE /aws1/cl_outlcstatuslist_w=>tt_lifecyclestatuslist(
    ( new /aws1/cl_outlcstatuslist_w( |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_outposts( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_outpostid = lo_row_1->get_outpostid( ).
      lv_ownerid = lo_row_1->get_ownerid( ).
      lv_outpostarn = lo_row_1->get_outpostarn( ).
      lv_siteid = lo_row_1->get_siteid( ).
      lv_outpostname = lo_row_1->get_name( ).
      lv_outpostdescription = lo_row_1->get_description( ).
      lv_lifecyclestatus = lo_row_1->get_lifecyclestatus( ).
      lv_availabilityzone = lo_row_1->get_availabilityzone( ).
      lv_availabilityzoneid = lo_row_1->get_availabilityzoneid( ).
      LOOP AT lo_row_1->get_tags( ) into ls_row_2.
        lv_key = ls_row_2-key.
        lo_value = ls_row_2-value.
        IF lo_value IS NOT INITIAL.
          lv_tagvalue = lo_value->get_value( ).
        ENDIF.
      ENDLOOP.
      lv_sitearn = lo_row_1->get_sitearn( ).
      lv_supportedhardwaretype = lo_row_1->get_supportedhardwaretype( ).
    ENDIF.
  ENDLOOP.
  lv_token = lo_result->get_nexttoken( ).
ENDIF.