Skip to content

/AWS1/CL_FRM=>STARTRESOURCESCAN()

About StartResourceScan

Starts a scan of the resources in this account in this Region. You can the status of a scan using the ListResourceScans API action.

Method Signature

IMPORTING

Optional arguments:

iv_clientrequesttoken TYPE /AWS1/FRMCLIENTREQUESTTOKEN /AWS1/FRMCLIENTREQUESTTOKEN

A unique identifier for this StartResourceScan request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to start a new resource scan.

it_scanfilters TYPE /AWS1/CL_FRMSCANFILTER=>TT_SCANFILTERS TT_SCANFILTERS

The scan filters to use.

RETURNING

oo_output TYPE REF TO /aws1/cl_frmstartresrcscanout /AWS1/CL_FRMSTARTRESRCSCANOUT

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_frm~startresourcescan(
  it_scanfilters = VALUE /aws1/cl_frmscanfilter=>tt_scanfilters(
    (
      new /aws1/cl_frmscanfilter(
        it_types = VALUE /aws1/cl_frmresrctypefilters_w=>tt_resourcetypefilters(
          ( new /aws1/cl_frmresrctypefilters_w( |string| ) )
        )
      )
    )
  )
  iv_clientrequesttoken = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_resourcescanid = lo_result->get_resourcescanid( ).
ENDIF.

To start a resource scan

This example shows how to start a new resource scan

DATA(lo_result) = lo_client->/aws1/if_frm~startresourcescan( ).