Skip to content

/AWS1/CL_SSW=>LISTSIMULATIONS()

About ListSimulations

Lists the SimSpace Weaver simulations in the Amazon Web Services account used to make the API call.

Method Signature

IMPORTING

Optional arguments:

iv_maxresults TYPE /AWS1/SSWPOSITIVEINTEGER /AWS1/SSWPOSITIVEINTEGER

The maximum number of simulations to list.

iv_nexttoken TYPE /AWS1/SSWOPTIONALSTRING /AWS1/SSWOPTIONALSTRING

If SimSpace Weaver returns nextToken, then there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, call the operation again using the returned token. Keep all other arguments unchanged. If no results remain, then nextToken is set to null. Each pagination token expires after 24 hours. If you provide a token that isn't valid, then you receive an HTTP 400 ValidationException error.

RETURNING

oo_output TYPE REF TO /aws1/cl_sswlistsimulationsout /AWS1/CL_SSWLISTSIMULATIONSOUT

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_ssw~listsimulations(
  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_simulations( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_simspaceweaverresourcen = lo_row_1->get_name( ).
      lv_simspaceweaverarn = lo_row_1->get_arn( ).
      lv_timestamp = lo_row_1->get_creationtime( ).
      lv_simulationstatus = lo_row_1->get_status( ).
      lv_simulationtargetstatus = lo_row_1->get_targetstatus( ).
    ENDIF.
  ENDLOOP.
  lv_optionalstring = lo_result->get_nexttoken( ).
ENDIF.