Skip to content

/AWS1/IF_AG2=>LISTPORTALS()

About ListPortals

Lists portals.

Method Signature

METHODS /AWS1/IF_AG2~LISTPORTALS
  IMPORTING
    !IV_MAXRESULTS TYPE /AWS1/AG2__STRING OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/AG2__STRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ag2listportalsrsp
  RAISING
    /AWS1/CX_AG2ACCESSDENIEDEX
    /AWS1/CX_AG2BADREQUESTEX
    /AWS1/CX_AG2TOOMANYREQUESTSEX
    /AWS1/CX_AG2CLIENTEXC
    /AWS1/CX_AG2SERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Optional arguments:

iv_maxresults TYPE /AWS1/AG2__STRING /AWS1/AG2__STRING

The maximum number of elements to be returned for this resource.

iv_nexttoken TYPE /AWS1/AG2__STRING /AWS1/AG2__STRING

The next page of elements from this collection. Not valid for the last element of the collection.

RETURNING

oo_output TYPE REF TO /aws1/cl_ag2listportalsrsp /AWS1/CL_AG2LISTPORTALSRSP

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->listportals(
  iv_maxresults = |string|
  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_items( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lo_authorization = lo_row_1->get_authorization( ).
      IF lo_authorization IS NOT INITIAL.
        lo_cognitoconfig = lo_authorization->get_cognitoconfig( ).
        IF lo_cognitoconfig IS NOT INITIAL.
          lv___stringmin1max256 = lo_cognitoconfig->get_appclientid( ).
          lv___stringmin20max2048 = lo_cognitoconfig->get_userpoolarn( ).
          lv___stringmin20max2048 = lo_cognitoconfig->get_userpooldomain( ).
        ENDIF.
        lo_none = lo_authorization->get_none( ).
        IF lo_none IS NOT INITIAL.
        ENDIF.
      ENDIF.
      lo_endpointconfigurationre = lo_row_1->get_endpointconfiguration( ).
      IF lo_endpointconfigurationre IS NOT INITIAL.
        lv___stringmin10max2048 = lo_endpointconfigurationre->get_certificatearn( ).
        lv___stringmin3max256 = lo_endpointconfigurationre->get_domainname( ).
        lv___stringmin3max256 = lo_endpointconfigurationre->get_portaldefaultdomainname( ).
        lv___stringmin1max64 = lo_endpointconfigurationre->get_portaldomainhostedzoneid( ).
      ENDIF.
      LOOP AT lo_row_1->get_incldportalproductarns( ) into lo_row_2.
        lo_row_3 = lo_row_2.
        IF lo_row_3 IS NOT INITIAL.
          lv___stringmin20max2048 = lo_row_3->get_value( ).
        ENDIF.
      ENDLOOP.
      lv___timestampiso8601 = lo_row_1->get_lastmodified( ).
      lv___timestampiso8601 = lo_row_1->get_lastpublished( ).
      lv___stringmin0max1024 = lo_row_1->get_lastpublisheddescription( ).
      lv___stringmin20max2048 = lo_row_1->get_portalarn( ).
      lo_portalcontent = lo_row_1->get_portalcontent( ).
      IF lo_portalcontent IS NOT INITIAL.
        lv___stringmin0max1024 = lo_portalcontent->get_description( ).
        lv___stringmin3max255 = lo_portalcontent->get_displayname( ).
        lo_portaltheme = lo_portalcontent->get_theme( ).
        IF lo_portaltheme IS NOT INITIAL.
          lo_customcolors = lo_portaltheme->get_customcolors( ).
          IF lo_customcolors IS NOT INITIAL.
            lv___stringmin1max16 = lo_customcolors->get_accentcolor( ).
            lv___stringmin1max16 = lo_customcolors->get_backgroundcolor( ).
            lv___stringmin1max16 = lo_customcolors->get_errorvalidationcolor( ).
            lv___stringmin1max16 = lo_customcolors->get_headercolor( ).
            lv___stringmin1max16 = lo_customcolors->get_navigationcolor( ).
            lv___stringmin1max16 = lo_customcolors->get_textcolor( ).
          ENDIF.
          lv___timestampiso8601 = lo_portaltheme->get_logolastuploaded( ).
        ENDIF.
      ENDIF.
      lv___stringmin10max30patte = lo_row_1->get_portalid( ).
      lo_preview = lo_row_1->get_preview( ).
      IF lo_preview IS NOT INITIAL.
        lv_previewstatus = lo_preview->get_previewstatus( ).
        lv___string = lo_preview->get_previewurl( ).
        lo_statusexception = lo_preview->get_statusexception( ).
        IF lo_statusexception IS NOT INITIAL.
          lv___stringmin1max256 = lo_statusexception->get_exception( ).
          lv___stringmin1max2048 = lo_statusexception->get_message( ).
        ENDIF.
      ENDIF.
      lv_publishstatus = lo_row_1->get_publishstatus( ).
      lv___stringmin0max255 = lo_row_1->get_rumappmonitorname( ).
      lo_statusexception = lo_row_1->get_statusexception( ).
      IF lo_statusexception IS NOT INITIAL.
        lv___stringmin1max256 = lo_statusexception->get_exception( ).
        lv___stringmin1max2048 = lo_statusexception->get_message( ).
      ENDIF.
      LOOP AT lo_row_1->get_tags( ) into ls_row_4.
        lv_key = ls_row_4-key.
        lo_value = ls_row_4-value.
        IF lo_value IS NOT INITIAL.
          lv_stringwithlengthbetween = lo_value->get_value( ).
        ENDIF.
      ENDLOOP.
    ENDIF.
  ENDLOOP.
  lv___stringmin1max2048 = lo_result->get_nexttoken( ).
ENDIF.