/AWS1/IF_SHB=>LISTSTANDARDSCTLASSOCIATIONS()¶
About ListStandardsControlAssociations¶
Specifies whether a control is currently enabled or disabled in each enabled standard in the calling account.
This operation omits standards control associations for standard subscriptions where StandardsControlsUpdatable has value NOT_READY_FOR_UPDATES.
Method Signature¶
METHODS /AWS1/IF_SHB~LISTSTANDARDSCTLASSOCIATIONS
IMPORTING
!IV_SECURITYCONTROLID TYPE /AWS1/SHBNONEMPTYSTRING OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/SHBNEXTTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/SHBMAXRESULTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_shblststandardsctla01
RAISING
/AWS1/CX_SHBINTERNALEXCEPTION
/AWS1/CX_SHBINVALIDACCESSEX
/AWS1/CX_SHBINVALIDINPUTEX
/AWS1/CX_SHBLIMITEXCEEDEDEX
/AWS1/CX_SHBCLIENTEXC
/AWS1/CX_SHBSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_securitycontrolid TYPE /AWS1/SHBNONEMPTYSTRING /AWS1/SHBNONEMPTYSTRING¶
The identifier of the control (identified with
SecurityControlId,SecurityControlArn, or a mix of both parameters) that you want to determine the enablement status of in each enabled standard.
Optional arguments:¶
iv_nexttoken TYPE /AWS1/SHBNEXTTOKEN /AWS1/SHBNEXTTOKEN¶
Optional pagination parameter.
iv_maxresults TYPE /AWS1/SHBMAXRESULTS /AWS1/SHBMAXRESULTS¶
An optional parameter that limits the total results of the API response to the specified number. If this parameter isn't provided in the request, the results include the first 25 standard and control associations. The results also include a
NextTokenparameter that you can use in a subsequent API call to get the next 25 associations. This repeats until all associations for the specified control are returned. The number of results is limited by the number of supported Security Hub standards that you've enabled in the calling account.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_shblststandardsctla01 /AWS1/CL_SHBLSTSTANDARDSCTLA01¶
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->liststandardsctlassociations(
iv_maxresults = 123
iv_nexttoken = |string|
iv_securitycontrolid = |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_standardsctlassociatio05( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_nonemptystring = lo_row_1->get_standardsarn( ).
lv_nonemptystring = lo_row_1->get_securitycontrolid( ).
lv_nonemptystring = lo_row_1->get_securitycontrolarn( ).
lv_associationstatus = lo_row_1->get_associationstatus( ).
LOOP AT lo_row_1->get_relatedrequirements( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_nonemptystring = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_timestamp = lo_row_1->get_updatedat( ).
lv_nonemptystring = lo_row_1->get_updatedreason( ).
lv_nonemptystring = lo_row_1->get_standardscontroltitle( ).
lv_nonemptystring = lo_row_1->get_standardscontroldesc( ).
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.