/AWS1/CL_SHB=>GETAUTOMATIONRULEV2()
¶
About GetAutomationRuleV2¶
Returns an automation rule for the V2 service. This API is in private preview and subject to change.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_identifier
TYPE /AWS1/SHBNONEMPTYSTRING
/AWS1/SHBNONEMPTYSTRING
¶
The ARN of the V2 automation rule.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_shbgetautomationrlv01
/AWS1/CL_SHBGETAUTOMATIONRLV01
¶
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_shb~getautomationrulev2( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_nonemptystring = lo_result->get_rulearn( ).
lv_nonemptystring = lo_result->get_ruleid( ).
lv_ruleordervaluev2 = lo_result->get_ruleorder( ).
lv_nonemptystring = lo_result->get_rulename( ).
lv_rulestatusv2 = lo_result->get_rulestatus( ).
lv_nonemptystring = lo_result->get_description( ).
lo_criteria = lo_result->get_criteria( ).
IF lo_criteria IS NOT INITIAL.
lo_ocsffindingfilters = lo_criteria->get_ocsffindingcriteria( ).
IF lo_ocsffindingfilters IS NOT INITIAL.
LOOP AT lo_ocsffindingfilters->get_compositefilters( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
LOOP AT lo_row_1->get_stringfilters( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_ocsfstringfield = lo_row_3->get_fieldname( ).
lo_stringfilter = lo_row_3->get_filter( ).
IF lo_stringfilter IS NOT INITIAL.
lv_nonemptystring = lo_stringfilter->get_value( ).
lv_stringfiltercomparison = lo_stringfilter->get_comparison( ).
ENDIF.
ENDIF.
ENDLOOP.
LOOP AT lo_row_1->get_datefilters( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_ocsfdatefield = lo_row_5->get_fieldname( ).
lo_datefilter = lo_row_5->get_filter( ).
IF lo_datefilter IS NOT INITIAL.
lv_nonemptystring = lo_datefilter->get_start( ).
lv_nonemptystring = lo_datefilter->get_end( ).
lo_daterange = lo_datefilter->get_daterange( ).
IF lo_daterange IS NOT INITIAL.
lv_integer = lo_daterange->get_value( ).
lv_daterangeunit = lo_daterange->get_unit( ).
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
LOOP AT lo_row_1->get_booleanfilters( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_ocsfbooleanfield = lo_row_7->get_fieldname( ).
lo_booleanfilter = lo_row_7->get_filter( ).
IF lo_booleanfilter IS NOT INITIAL.
lv_boolean = lo_booleanfilter->get_value( ).
ENDIF.
ENDIF.
ENDLOOP.
LOOP AT lo_row_1->get_numberfilters( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lv_ocsfnumberfield = lo_row_9->get_fieldname( ).
lo_numberfilter = lo_row_9->get_filter( ).
IF lo_numberfilter IS NOT INITIAL.
lv_double = lo_numberfilter->get_gte( ).
lv_double = lo_numberfilter->get_lte( ).
lv_double = lo_numberfilter->get_eq( ).
lv_double = lo_numberfilter->get_gt( ).
lv_double = lo_numberfilter->get_lt( ).
ENDIF.
ENDIF.
ENDLOOP.
LOOP AT lo_row_1->get_mapfilters( ) into lo_row_10.
lo_row_11 = lo_row_10.
IF lo_row_11 IS NOT INITIAL.
lv_ocsfmapfield = lo_row_11->get_fieldname( ).
lo_mapfilter = lo_row_11->get_filter( ).
IF lo_mapfilter IS NOT INITIAL.
lv_nonemptystring = lo_mapfilter->get_key( ).
lv_nonemptystring = lo_mapfilter->get_value( ).
lv_mapfiltercomparison = lo_mapfilter->get_comparison( ).
ENDIF.
ENDIF.
ENDLOOP.
lv_allowedoperators = lo_row_1->get_operator( ).
ENDIF.
ENDLOOP.
lv_allowedoperators = lo_ocsffindingfilters->get_compositeoperator( ).
ENDIF.
ENDIF.
LOOP AT lo_result->get_actions( ) into lo_row_12.
lo_row_13 = lo_row_12.
IF lo_row_13 IS NOT INITIAL.
lv_automationrulesactionty = lo_row_13->get_type( ).
lo_automationrulesfindingf = lo_row_13->get_findingfieldsupdate( ).
IF lo_automationrulesfindingf IS NOT INITIAL.
lv_integer = lo_automationrulesfindingf->get_severityid( ).
lv_nonemptystring = lo_automationrulesfindingf->get_comment( ).
lv_integer = lo_automationrulesfindingf->get_statusid( ).
ENDIF.
lo_externalintegrationconf = lo_row_13->get_externalintegrationconf( ).
IF lo_externalintegrationconf IS NOT INITIAL.
lv_nonemptystring = lo_externalintegrationconf->get_connectorarn( ).
ENDIF.
ENDIF.
ENDLOOP.
lv_timestamp = lo_result->get_createdat( ).
lv_timestamp = lo_result->get_updatedat( ).
ENDIF.