/AWS1/IF_IN2=>GETCISSCANREPORT()¶
About GetCisScanReport¶
Retrieves a CIS scan report.
Method Signature¶
METHODS /AWS1/IF_IN2~GETCISSCANREPORT
IMPORTING
!IV_SCANARN TYPE /AWS1/IN2CISSCANARN OPTIONAL
!IT_TARGETACCOUNTS TYPE /AWS1/CL_IN2REPORTTGTACCTS_W=>TT_REPORTTARGETACCOUNTS OPTIONAL
!IV_REPORTFORMAT TYPE /AWS1/IN2CISREPORTFORMAT OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_in2getcisscanrptrsp
RAISING
/AWS1/CX_IN2ACCESSDENIEDEX
/AWS1/CX_IN2INTERNALSERVEREX
/AWS1/CX_IN2RESOURCENOTFOUNDEX
/AWS1/CX_IN2THROTTLINGEX
/AWS1/CX_IN2VALIDATIONEX
/AWS1/CX_IN2CLIENTEXC
/AWS1/CX_IN2SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_scanarn TYPE /AWS1/IN2CISSCANARN /AWS1/IN2CISSCANARN¶
The scan ARN.
Optional arguments:¶
it_targetaccounts TYPE /AWS1/CL_IN2REPORTTGTACCTS_W=>TT_REPORTTARGETACCOUNTS TT_REPORTTARGETACCOUNTS¶
The target accounts.
iv_reportformat TYPE /AWS1/IN2CISREPORTFORMAT /AWS1/IN2CISREPORTFORMAT¶
The format of the report. Valid values are
CSV. If no value is specified, the report format defaults to
RETURNING¶
oo_output TYPE REF TO /aws1/cl_in2getcisscanrptrsp /AWS1/CL_IN2GETCISSCANRPTRSP¶
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->getcisscanreport(
it_targetaccounts = VALUE /aws1/cl_in2reporttgtaccts_w=>tt_reporttargetaccounts(
( new /aws1/cl_in2reporttgtaccts_w( |string| ) )
)
iv_reportformat = |string|
iv_scanarn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_string = lo_result->get_url( ).
lv_cisreportstatus = lo_result->get_status( ).
ENDIF.
Sample GetCisScanReport Call¶
Sample GetCisScanReport Call
DATA(lo_result) = lo_client->getcisscanreport(
iv_reportformat = |PDF|
iv_scanarn = |arn:aws:inspector2:us-east-1:123412341234:owner/123412341234/cis-scan/624b746d-e080-44ae-8c1d-48e653365a38|
).