Skip to content

/AWS1/CL_BDC=>GETBROWSERSESSION()

About GetBrowserSession

Retrieves detailed information about a specific browser session in Amazon Bedrock. This operation returns the session's configuration, current status, associated streams, and metadata.

To get a browser session, you must specify both the browser identifier and the session ID. The response includes information about the session's viewport configuration, timeout settings, and stream endpoints.

The following operations are related to GetBrowserSession:

Method Signature

IMPORTING

Required arguments:

iv_browseridentifier TYPE /AWS1/BDCSTRING /AWS1/BDCSTRING

The unique identifier of the browser associated with the session.

iv_sessionid TYPE /AWS1/BDCBROWSERSESSIONID /AWS1/BDCBROWSERSESSIONID

The unique identifier of the browser session to retrieve.

RETURNING

oo_output TYPE REF TO /aws1/cl_bdcgetbrowsersessrsp /AWS1/CL_BDCGETBROWSERSESSRSP

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_bdc~getbrowsersession(
  iv_browseridentifier = |string|
  iv_sessionid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_string = lo_result->get_browseridentifier( ).
  lv_browsersessionid = lo_result->get_sessionid( ).
  lv_name = lo_result->get_name( ).
  lv_datetimestamp = lo_result->get_createdat( ).
  lo_viewport = lo_result->get_viewport( ).
  IF lo_viewport IS NOT INITIAL.
    lv_viewportwidth = lo_viewport->get_width( ).
    lv_viewportheight = lo_viewport->get_height( ).
  ENDIF.
  lv_browsersessiontimeout = lo_result->get_sessiontimeoutseconds( ).
  lv_browsersessionstatus = lo_result->get_status( ).
  lo_browsersessionstream = lo_result->get_streams( ).
  IF lo_browsersessionstream IS NOT INITIAL.
    lo_automationstream = lo_browsersessionstream->get_automationstream( ).
    IF lo_automationstream IS NOT INITIAL.
      lv_browserstreamendpoint = lo_automationstream->get_streamendpoint( ).
      lv_automationstreamstatus = lo_automationstream->get_streamstatus( ).
    ENDIF.
    lo_liveviewstream = lo_browsersessionstream->get_liveviewstream( ).
    IF lo_liveviewstream IS NOT INITIAL.
      lv_browserstreamendpoint = lo_liveviewstream->get_streamendpoint( ).
    ENDIF.
  ENDIF.
  lv_string = lo_result->get_sessionreplayartifact( ).
  lv_datetimestamp = lo_result->get_lastupdatedat( ).
ENDIF.