/AWS1/CL_INS=>DESCRIBEEXCLUSIONS()
¶
About DescribeExclusions¶
Describes the exclusions that are specified by the exclusions' ARNs.
Method Signature¶
IMPORTING¶
Required arguments:¶
it_exclusionarns
TYPE /AWS1/CL_INSBTCDSCEXCLUSIONS00=>TT_BATCHDESCREXCLUSIONSARNLIST
TT_BATCHDESCREXCLUSIONSARNLIST
¶
The list of ARNs that specify the exclusions that you want to describe.
Optional arguments:¶
iv_locale
TYPE /AWS1/INSLOCALE
/AWS1/INSLOCALE
¶
The locale into which you want to translate the exclusion's title, description, and recommendation.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_insdescrexclusionsrsp
/AWS1/CL_INSDESCREXCLUSIONSRSP
¶
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_ins~describeexclusions(
it_exclusionarns = VALUE /aws1/cl_insbtcdscexclusions00=>tt_batchdescrexclusionsarnlist(
( new /aws1/cl_insbtcdscexclusions00( |string| ) )
)
iv_locale = |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_exclusions( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv_arn = lo_value->get_arn( ).
lv_text = lo_value->get_title( ).
lv_text = lo_value->get_description( ).
lv_text = lo_value->get_recommendation( ).
LOOP AT lo_value->get_scopes( ) into lo_row_1.
lo_row_2 = lo_row_1.
IF lo_row_2 IS NOT INITIAL.
lv_scopetype = lo_row_2->get_key( ).
lv_scopevalue = lo_row_2->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_value->get_attributes( ) into lo_row_3.
lo_row_4 = lo_row_3.
IF lo_row_4 IS NOT INITIAL.
lv_attributekey = lo_row_4->get_key( ).
lv_attributevalue = lo_row_4->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_faileditems( ) into ls_row_5.
lv_key = ls_row_5-key.
lo_value_1 = ls_row_5-value.
IF lo_value_1 IS NOT INITIAL.
lv_faileditemerrorcode = lo_value_1->get_failurecode( ).
lv_bool = lo_value_1->get_retryable( ).
ENDIF.
ENDLOOP.
ENDIF.