/AWS1/IF_PAN=>LISTNODES()¶
About ListNodes¶
Returns a list of nodes.
Method Signature¶
METHODS /AWS1/IF_PAN~LISTNODES
IMPORTING
!IV_CATEGORY TYPE /AWS1/PANNODECATEGORY OPTIONAL
!IV_OWNERACCOUNT TYPE /AWS1/PANPACKAGEOWNERACCOUNT OPTIONAL
!IV_PACKAGENAME TYPE /AWS1/PANNODEPACKAGENAME OPTIONAL
!IV_PACKAGEVERSION TYPE /AWS1/PANNODEPACKAGEVERSION OPTIONAL
!IV_PATCHVERSION TYPE /AWS1/PANNODEPACKAGEPATCHVRS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/PANTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/PANMAXSIZE25 OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_panlistnodesresponse
RAISING
/AWS1/CX_PANCONFLICTEXCEPTION
/AWS1/CX_PANINTERNALSERVEREX
/AWS1/CX_PANVALIDATIONEX
/AWS1/CX_PANCLIENTEXC
/AWS1/CX_PANSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_category TYPE /AWS1/PANNODECATEGORY /AWS1/PANNODECATEGORY¶
Search for nodes by category.
iv_owneraccount TYPE /AWS1/PANPACKAGEOWNERACCOUNT /AWS1/PANPACKAGEOWNERACCOUNT¶
Search for nodes by the account ID of the nodes' owner.
iv_packagename TYPE /AWS1/PANNODEPACKAGENAME /AWS1/PANNODEPACKAGENAME¶
Search for nodes by name.
iv_packageversion TYPE /AWS1/PANNODEPACKAGEVERSION /AWS1/PANNODEPACKAGEVERSION¶
Search for nodes by version.
iv_patchversion TYPE /AWS1/PANNODEPACKAGEPATCHVRS /AWS1/PANNODEPACKAGEPATCHVRS¶
Search for nodes by patch version.
iv_nexttoken TYPE /AWS1/PANTOKEN /AWS1/PANTOKEN¶
Specify the pagination token from a previous request to retrieve the next page of results.
iv_maxresults TYPE /AWS1/PANMAXSIZE25 /AWS1/PANMAXSIZE25¶
The maximum number of nodes to return in one page of results.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_panlistnodesresponse /AWS1/CL_PANLISTNODESRESPONSE¶
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->listnodes(
iv_category = |string|
iv_maxresults = 123
iv_nexttoken = |string|
iv_owneraccount = |string|
iv_packagename = |string|
iv_packageversion = |string|
iv_patchversion = |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_nodes( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_nodeid = lo_row_1->get_nodeid( ).
lv_nodename = lo_row_1->get_name( ).
lv_nodecategory = lo_row_1->get_category( ).
lv_packageowneraccount = lo_row_1->get_owneraccount( ).
lv_nodepackagename = lo_row_1->get_packagename( ).
lv_nodepackageid = lo_row_1->get_packageid( ).
lv_nodepackagearn = lo_row_1->get_packagearn( ).
lv_nodepackageversion = lo_row_1->get_packageversion( ).
lv_nodepackagepatchversion = lo_row_1->get_patchversion( ).
lv_description = lo_row_1->get_description( ).
lv_timestamp = lo_row_1->get_createdtime( ).
ENDIF.
ENDLOOP.
lv_token = lo_result->get_nexttoken( ).
ENDIF.