/AWS1/CL_IN2=>GETCODESECURITYSCAN()
¶
About GetCodeSecurityScan¶
Retrieves information about a specific code security scan.
Method Signature¶
IMPORTING¶
Required arguments:¶
io_resource
TYPE REF TO /AWS1/CL_IN2CODESECURITYRES
/AWS1/CL_IN2CODESECURITYRES
¶
The resource identifier for the code repository that was scanned.
iv_scanid
TYPE /AWS1/IN2CODESECURITYUUID
/AWS1/IN2CODESECURITYUUID
¶
The unique identifier of the scan to retrieve.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_in2getcodesecscanrsp
/AWS1/CL_IN2GETCODESECSCANRSP
¶
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_in2~getcodesecurityscan(
io_resource = new /aws1/cl_in2codesecurityres( |string| )
iv_scanid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_codesecurityuuid = lo_result->get_scanid( ).
lo_codesecurityresource = lo_result->get_resource( ).
IF lo_codesecurityresource IS NOT INITIAL.
lv_projectid = lo_codesecurityresource->get_projectid( ).
ENDIF.
lv_string = lo_result->get_accountid( ).
lv_codescanstatus = lo_result->get_status( ).
lv_string = lo_result->get_statusreason( ).
lv_timestamp = lo_result->get_createdat( ).
lv_timestamp = lo_result->get_updatedat( ).
lv_string = lo_result->get_lastcommitid( ).
ENDIF.