/AWS1/IF_MBC=>LISTNETWORKS()¶
About ListNetworks¶
Returns information about the networks in which the current Amazon Web Services account participates.
Applies to Hyperledger Fabric and Ethereum.
Method Signature¶
METHODS /AWS1/IF_MBC~LISTNETWORKS
IMPORTING
!IV_NAME TYPE /AWS1/MBCSTRING OPTIONAL
!IV_FRAMEWORK TYPE /AWS1/MBCFRAMEWORK OPTIONAL
!IV_STATUS TYPE /AWS1/MBCNETWORKSTATUS OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/MBCNETWORKLISTMAXRESULTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/MBCPAGINATIONTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mbclistnetworksoutput
RAISING
/AWS1/CX_MBCACCESSDENIEDEX
/AWS1/CX_MBCINTERNALSVCERROREX
/AWS1/CX_MBCINVALIDREQUESTEX
/AWS1/CX_MBCTHROTTLINGEX
/AWS1/CX_MBCCLIENTEXC
/AWS1/CX_MBCSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_name TYPE /AWS1/MBCSTRING /AWS1/MBCSTRING¶
The name of the network.
iv_framework TYPE /AWS1/MBCFRAMEWORK /AWS1/MBCFRAMEWORK¶
An optional framework specifier. If provided, only networks of this framework type are listed.
iv_status TYPE /AWS1/MBCNETWORKSTATUS /AWS1/MBCNETWORKSTATUS¶
An optional status specifier. If provided, only networks currently in this status are listed.
Applies only to Hyperledger Fabric.
iv_maxresults TYPE /AWS1/MBCNETWORKLISTMAXRESULTS /AWS1/MBCNETWORKLISTMAXRESULTS¶
The maximum number of networks to list.
iv_nexttoken TYPE /AWS1/MBCPAGINATIONTOKEN /AWS1/MBCPAGINATIONTOKEN¶
The pagination token that indicates the next set of results to retrieve.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mbclistnetworksoutput /AWS1/CL_MBCLISTNETWORKSOUTPUT¶
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->listnetworks(
iv_framework = |string|
iv_maxresults = 123
iv_name = |string|
iv_nexttoken = |string|
iv_status = |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_networks( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_resourceidstring = lo_row_1->get_id( ).
lv_namestring = lo_row_1->get_name( ).
lv_descriptionstring = lo_row_1->get_description( ).
lv_framework = lo_row_1->get_framework( ).
lv_frameworkversionstring = lo_row_1->get_frameworkversion( ).
lv_networkstatus = lo_row_1->get_status( ).
lv_timestamp = lo_row_1->get_creationdate( ).
lv_arnstring = lo_row_1->get_arn( ).
ENDIF.
ENDLOOP.
lv_paginationtoken = lo_result->get_nexttoken( ).
ENDIF.