/AWS1/CL_IN2=>SEARCHVULNERABILITIES()
¶
About SearchVulnerabilities¶
Lists Amazon Inspector coverage details for a specific vulnerability.
Method Signature¶
IMPORTING¶
Required arguments:¶
io_filtercriteria
TYPE REF TO /AWS1/CL_IN2SRCHVULNERABILIT01
/AWS1/CL_IN2SRCHVULNERABILIT01
¶
The criteria used to filter the results of a vulnerability search.
Optional arguments:¶
iv_nexttoken
TYPE /AWS1/IN2NEXTTOKEN
/AWS1/IN2NEXTTOKEN
¶
A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the
NextToken
value returned from the previous request to continue listing results after the first page.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_in2srchvulnerabilit02
/AWS1/CL_IN2SRCHVULNERABILIT02
¶
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~searchvulnerabilities(
io_filtercriteria = new /aws1/cl_in2srchvulnerabilit01(
it_vulnerabilityids = VALUE /aws1/cl_in2vulnidlist_w=>tt_vulnidlist(
( new /aws1/cl_in2vulnidlist_w( |string| ) )
)
)
iv_nexttoken = |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_vulnerabilities( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_nonemptystring = lo_row_1->get_id( ).
LOOP AT lo_row_1->get_cwes( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_cwe = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lo_cisadata = lo_row_1->get_cisadata( ).
IF lo_cisadata IS NOT INITIAL.
lv_cisadateadded = lo_cisadata->get_dateadded( ).
lv_cisadatedue = lo_cisadata->get_datedue( ).
lv_cisaaction = lo_cisadata->get_action( ).
ENDIF.
lv_vulnerabilitysource = lo_row_1->get_source( ).
lv_vulnerabilitydescriptio = lo_row_1->get_description( ).
lo_atigdata = lo_row_1->get_atigdata( ).
IF lo_atigdata IS NOT INITIAL.
lv_firstseen = lo_atigdata->get_firstseen( ).
lv_lastseen = lo_atigdata->get_lastseen( ).
LOOP AT lo_atigdata->get_targets( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_target = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_atigdata->get_ttps( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_ttp = lo_row_7->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lv_vendorseverity = lo_row_1->get_vendorseverity( ).
lo_cvss3 = lo_row_1->get_cvss3( ).
IF lo_cvss3 IS NOT INITIAL.
lv_cvss3basescore = lo_cvss3->get_basescore( ).
lv_cvss3scoringvector = lo_cvss3->get_scoringvector( ).
ENDIF.
LOOP AT lo_row_1->get_relatedvulnerabilities( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lv_relatedvulnerability = lo_row_9->get_value( ).
ENDIF.
ENDLOOP.
lo_cvss2 = lo_row_1->get_cvss2( ).
IF lo_cvss2 IS NOT INITIAL.
lv_cvss2basescore = lo_cvss2->get_basescore( ).
lv_cvss2scoringvector = lo_cvss2->get_scoringvector( ).
ENDIF.
lv_vendorcreatedat = lo_row_1->get_vendorcreatedat( ).
lv_vendorupdatedat = lo_row_1->get_vendorupdatedat( ).
lv_vulnerabilitysourceurl = lo_row_1->get_sourceurl( ).
LOOP AT lo_row_1->get_referenceurls( ) into lo_row_10.
lo_row_11 = lo_row_10.
IF lo_row_11 IS NOT INITIAL.
lv_vulnerabilityreferenceu = lo_row_11->get_value( ).
ENDIF.
ENDLOOP.
lo_exploitobserved = lo_row_1->get_exploitobserved( ).
IF lo_exploitobserved IS NOT INITIAL.
lv_lastseen = lo_exploitobserved->get_lastseen( ).
lv_firstseen = lo_exploitobserved->get_firstseen( ).
ENDIF.
LOOP AT lo_row_1->get_detectionplatforms( ) into lo_row_12.
lo_row_13 = lo_row_12.
IF lo_row_13 IS NOT INITIAL.
lv_nonemptystring = lo_row_13->get_value( ).
ENDIF.
ENDLOOP.
lo_epss = lo_row_1->get_epss( ).
IF lo_epss IS NOT INITIAL.
lv_epssscore = lo_epss->get_score( ).
ENDIF.
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.