/AWS1/IF_PAN=>DESCRIBENODE()¶
About DescribeNode¶
Returns information about a node.
Method Signature¶
METHODS /AWS1/IF_PAN~DESCRIBENODE
IMPORTING
!IV_NODEID TYPE /AWS1/PANNODEID OPTIONAL
!IV_OWNERACCOUNT TYPE /AWS1/PANPACKAGEOWNERACCOUNT OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_pandescrnoderesponse
RAISING
/AWS1/CX_PANACCESSDENIEDEX
/AWS1/CX_PANCONFLICTEXCEPTION
/AWS1/CX_PANINTERNALSERVEREX
/AWS1/CX_PANRESOURCENOTFOUNDEX
/AWS1/CX_PANVALIDATIONEX
/AWS1/CX_PANCLIENTEXC
/AWS1/CX_PANSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_nodeid TYPE /AWS1/PANNODEID /AWS1/PANNODEID¶
The node's ID.
Optional arguments:¶
iv_owneraccount TYPE /AWS1/PANPACKAGEOWNERACCOUNT /AWS1/PANPACKAGEOWNERACCOUNT¶
The account ID of the node's owner.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_pandescrnoderesponse /AWS1/CL_PANDESCRNODERESPONSE¶
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->describenode(
iv_nodeid = |string|
iv_owneraccount = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_nodeid = lo_result->get_nodeid( ).
lv_nodename = lo_result->get_name( ).
lv_nodecategory = lo_result->get_category( ).
lv_packageowneraccount = lo_result->get_owneraccount( ).
lv_nodepackagename = lo_result->get_packagename( ).
lv_nodepackageid = lo_result->get_packageid( ).
lv_nodepackagearn = lo_result->get_packagearn( ).
lv_nodepackageversion = lo_result->get_packageversion( ).
lv_nodepackagepatchversion = lo_result->get_patchversion( ).
lo_nodeinterface = lo_result->get_nodeinterface( ).
IF lo_nodeinterface IS NOT INITIAL.
LOOP AT lo_nodeinterface->get_inputs( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_portname = lo_row_1->get_name( ).
lv_description = lo_row_1->get_description( ).
lv_porttype = lo_row_1->get_type( ).
lv_portdefaultvalue = lo_row_1->get_defaultvalue( ).
lv_maxconnections = lo_row_1->get_maxconnections( ).
ENDIF.
ENDLOOP.
LOOP AT lo_nodeinterface->get_outputs( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_portname = lo_row_3->get_name( ).
lv_description = lo_row_3->get_description( ).
lv_porttype = lo_row_3->get_type( ).
ENDIF.
ENDLOOP.
ENDIF.
lv_nodeassetname = lo_result->get_assetname( ).
lv_description = lo_result->get_description( ).
lv_timestamp = lo_result->get_createdtime( ).
lv_timestamp = lo_result->get_lastupdatedtime( ).
ENDIF.