/AWS1/IF_SHD=>DESCRIBEPROTECTION()¶
About DescribeProtection¶
Lists the details of a Protection object.
Method Signature¶
METHODS /AWS1/IF_SHD~DESCRIBEPROTECTION
IMPORTING
!IV_PROTECTIONID TYPE /AWS1/SHDPROTECTIONID OPTIONAL
!IV_RESOURCEARN TYPE /AWS1/SHDRESOURCEARN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_shddescrprotectionrsp
RAISING
/AWS1/CX_SHDINTERNALERROREX
/AWS1/CX_SHDINVALIDPARAMETEREX
/AWS1/CX_SHDRESOURCENOTFOUNDEX
/AWS1/CX_SHDCLIENTEXC
/AWS1/CX_SHDSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_protectionid TYPE /AWS1/SHDPROTECTIONID /AWS1/SHDPROTECTIONID¶
The unique identifier (ID) for the Protection object to describe. You must provide either the
ResourceArnof the protected resource or theProtectionIDof the protection, but not both.
iv_resourcearn TYPE /AWS1/SHDRESOURCEARN /AWS1/SHDRESOURCEARN¶
The ARN (Amazon Resource Name) of the protected Amazon Web Services resource. You must provide either the
ResourceArnof the protected resource or theProtectionIDof the protection, but not both.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_shddescrprotectionrsp /AWS1/CL_SHDDESCRPROTECTIONRSP¶
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->describeprotection(
iv_protectionid = |string|
iv_resourcearn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_protection = lo_result->get_protection( ).
IF lo_protection IS NOT INITIAL.
lv_protectionid = lo_protection->get_id( ).
lv_protectionname = lo_protection->get_name( ).
lv_resourcearn = lo_protection->get_resourcearn( ).
LOOP AT lo_protection->get_healthcheckids( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_healthcheckid = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lv_resourcearn = lo_protection->get_protectionarn( ).
lo_applicationlayerautomat = lo_protection->get_applicationlayerautoma00( ).
IF lo_applicationlayerautomat IS NOT INITIAL.
lv_applicationlayerautomat_1 = lo_applicationlayerautomat->get_status( ).
lo_responseaction = lo_applicationlayerautomat->get_action( ).
IF lo_responseaction IS NOT INITIAL.
lo_blockaction = lo_responseaction->get_block( ).
IF lo_blockaction IS NOT INITIAL.
ENDIF.
lo_countaction = lo_responseaction->get_count( ).
IF lo_countaction IS NOT INITIAL.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.