/AWS1/IF_SAG=>UPDATEPENTEST()¶
About UpdatePentest¶
Updates an existing pentest configuration.
Method Signature¶
METHODS /AWS1/IF_SAG~UPDATEPENTEST
IMPORTING
!IV_PENTESTID TYPE /AWS1/SAGSTRING OPTIONAL
!IV_AGENTSPACEID TYPE /AWS1/SAGSTRING OPTIONAL
!IV_TITLE TYPE /AWS1/SAGSTRING OPTIONAL
!IO_ASSETS TYPE REF TO /AWS1/CL_SAGASSETS OPTIONAL
!IT_EXCLUDERISKTYPES TYPE /AWS1/CL_SAGRISKTYPELIST_W=>TT_RISKTYPELIST OPTIONAL
!IV_SERVICEROLE TYPE /AWS1/SAGSERVICEROLE OPTIONAL
!IO_LOGCONFIG TYPE REF TO /AWS1/CL_SAGCLOUDWATCHLOG OPTIONAL
!IO_VPCCONFIG TYPE REF TO /AWS1/CL_SAGVPCCONFIG OPTIONAL
!IO_NETWORKTRAFFICCONFIG TYPE REF TO /AWS1/CL_SAGNETWORKTRAFCONFIG OPTIONAL
!IV_CODEREMEDIATIONSTRATEGY TYPE /AWS1/SAGCODEREMEDSTRATEGY OPTIONAL
!IT_DISABLEMANAGEDSKILLS TYPE /AWS1/CL_SAGSKILLTYPELIST_W=>TT_SKILLTYPELIST OPTIONAL
!IV_MAXTASKHOURS TYPE /AWS1/RT_DOUBLE_AS_STRING OPTIONAL
!IO_REPORTDESTINATION TYPE REF TO /AWS1/CL_SAGREPORTDESTINATION OPTIONAL
!IO_REPORTFILTERS TYPE REF TO /AWS1/CL_SAGREPORTFILTERS OPTIONAL
!IO_CICDCONFIGURATION TYPE REF TO /AWS1/CL_SAGCICDCONFIGURATION OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sagupdatepntstoutput
RAISING
/AWS1/CX_SAGCLIENTEXC
/AWS1/CX_SAGSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_pentestid TYPE /AWS1/SAGSTRING /AWS1/SAGSTRING¶
The unique identifier of the pentest to update.
iv_agentspaceid TYPE /AWS1/SAGSTRING /AWS1/SAGSTRING¶
The unique identifier of the agent space that contains the pentest.
Optional arguments:¶
iv_title TYPE /AWS1/SAGSTRING /AWS1/SAGSTRING¶
The updated title of the pentest.
io_assets TYPE REF TO /AWS1/CL_SAGASSETS /AWS1/CL_SAGASSETS¶
The updated assets for the pentest.
it_excluderisktypes TYPE /AWS1/CL_SAGRISKTYPELIST_W=>TT_RISKTYPELIST TT_RISKTYPELIST¶
The updated list of risk types to exclude from the pentest.
iv_servicerole TYPE /AWS1/SAGSERVICEROLE /AWS1/SAGSERVICEROLE¶
The updated IAM service role for the pentest.
io_logconfig TYPE REF TO /AWS1/CL_SAGCLOUDWATCHLOG /AWS1/CL_SAGCLOUDWATCHLOG¶
The updated CloudWatch Logs configuration for the pentest.
io_vpcconfig TYPE REF TO /AWS1/CL_SAGVPCCONFIG /AWS1/CL_SAGVPCCONFIG¶
The updated VPC configuration for the pentest.
io_networktrafficconfig TYPE REF TO /AWS1/CL_SAGNETWORKTRAFCONFIG /AWS1/CL_SAGNETWORKTRAFCONFIG¶
The updated network traffic configuration for the pentest.
iv_coderemediationstrategy TYPE /AWS1/SAGCODEREMEDSTRATEGY /AWS1/SAGCODEREMEDSTRATEGY¶
The updated code remediation strategy for the pentest.
it_disablemanagedskills TYPE /AWS1/CL_SAGSKILLTYPELIST_W=>TT_SKILLTYPELIST TT_SKILLTYPELIST¶
The updated list of managed skills to disable for this pentest. Valid values include FINDING_PERSONALIZATION and LOGIN_OPTIMIZATION.
iv_maxtaskhours TYPE /AWS1/RT_DOUBLE_AS_STRING /AWS1/RT_DOUBLE_AS_STRING¶
The updated maximum number of billable task hours allowed for jobs started from this pentest.
io_reportdestination TYPE REF TO /AWS1/CL_SAGREPORTDESTINATION /AWS1/CL_SAGREPORTDESTINATION¶
The destination for publishing scan reports to an integrated document provider.
io_reportfilters TYPE REF TO /AWS1/CL_SAGREPORTFILTERS /AWS1/CL_SAGREPORTFILTERS¶
The report-generation filters applied when the report is exported.
io_cicdconfiguration TYPE REF TO /AWS1/CL_SAGCICDCONFIGURATION /AWS1/CL_SAGCICDCONFIGURATION¶
The updated CI/CD pentesting configuration to apply to the pentest.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sagupdatepntstoutput /AWS1/CL_SAGUPDATEPNTSTOUTPUT¶
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->updatepentest(
io_assets = new /aws1/cl_sagassets(
it_actors = VALUE /aws1/cl_sagactor=>tt_actorlist(
(
new /aws1/cl_sagactor(
io_authentication = new /aws1/cl_sagauthentication(
iv_providertype = |string|
iv_value = |string|
)
it_uris = VALUE /aws1/cl_sagurilist_w=>tt_urilist(
( new /aws1/cl_sagurilist_w( |string| ) )
)
iv_description = |string|
iv_enableemailmfa = ABAP_TRUE
iv_identifier = |string|
iv_mfaforwardingaddress = |string|
)
)
)
it_documents = VALUE /aws1/cl_sagdocumentinfo=>tt_documentlist(
(
new /aws1/cl_sagdocumentinfo(
io_integrateddocument = new /aws1/cl_sagintegrateddocument(
iv_integrationid = |string|
iv_resourceid = |string|
)
iv_artifactid = |string|
iv_s3location = |string|
)
)
)
it_endpoints = VALUE /aws1/cl_sagendpoint=>tt_endpointlist(
( new /aws1/cl_sagendpoint( |string| ) )
)
it_integratedrepositories = VALUE /aws1/cl_sagintgrtdrepository=>tt_integratedrepositorylist(
(
new /aws1/cl_sagintgrtdrepository(
iv_branch = |string|
iv_integrationid = |string|
iv_providerresourceid = |string|
)
)
)
it_sourcecode = VALUE /aws1/cl_sagsourcecoderepo=>tt_sourcecoderepositorylist(
( new /aws1/cl_sagsourcecoderepo( |string| ) )
)
it_trustedcacertificates = VALUE /aws1/cl_sagtrustedcacert=>tt_trustedcacertificatelist(
(
new /aws1/cl_sagtrustedcacert(
io_source = new /aws1/cl_sagcacertsource(
iv_artifactid = |string|
iv_inlinepem = |string|
iv_s3location = |string|
)
)
)
)
)
io_cicdconfiguration = new /aws1/cl_sagcicdconfiguration( ABAP_TRUE )
io_logconfig = new /aws1/cl_sagcloudwatchlog(
iv_loggroup = |string|
iv_logstream = |string|
)
io_networktrafficconfig = new /aws1/cl_sagnetworktrafconfig(
it_customheaders = VALUE /aws1/cl_sagcustomheader=>tt_customheaderlist(
(
new /aws1/cl_sagcustomheader(
iv_name = |string|
iv_value = |string|
)
)
)
it_rules = VALUE /aws1/cl_sagnetworktrafficrule=>tt_networktrafficrulelist(
(
new /aws1/cl_sagnetworktrafficrule(
iv_effect = |string|
iv_networktrafficruletype = |string|
iv_pattern = |string|
)
)
)
)
io_reportdestination = new /aws1/cl_sagreportdestination(
iv_containerid = |string|
iv_documentid = |string|
iv_integrationid = |string|
iv_parentid = |string|
)
io_reportfilters = new /aws1/cl_sagreportfilters(
it_confidencelevels = VALUE /aws1/cl_sagconflevelfltlist_w=>tt_confidencelevelfilterlist(
( new /aws1/cl_sagconflevelfltlist_w( |string| ) )
)
it_findingtypes = VALUE /aws1/cl_sagreportfilterlist_w=>tt_reportfilterlist(
( new /aws1/cl_sagreportfilterlist_w( |string| ) )
)
it_risklevels = VALUE /aws1/cl_sagrisklevlfiltlist_w=>tt_risklevelfilterlist(
( new /aws1/cl_sagrisklevlfiltlist_w( |string| ) )
)
it_risktypes = VALUE /aws1/cl_sagrisktypefiltlist_w=>tt_risktypefilterlist(
( new /aws1/cl_sagrisktypefiltlist_w( |string| ) )
)
it_statuses = VALUE /aws1/cl_sagfndgstatfiltlist_w=>tt_findingstatusfilterlist(
( new /aws1/cl_sagfndgstatfiltlist_w( |string| ) )
)
it_taskstatuses = VALUE /aws1/cl_sagtskextatusfltlst_w=>tt_taskexecstatusfilterlist(
( new /aws1/cl_sagtskextatusfltlst_w( |string| ) )
)
iv_annotationnotes = ABAP_TRUE
iv_compliancereport = ABAP_TRUE
)
io_vpcconfig = new /aws1/cl_sagvpcconfig(
it_securitygrouparns = VALUE /aws1/cl_sagsecgrouparns_w=>tt_securitygrouparns(
( new /aws1/cl_sagsecgrouparns_w( |string| ) )
)
it_subnetarns = VALUE /aws1/cl_sagsubnetarns_w=>tt_subnetarns(
( new /aws1/cl_sagsubnetarns_w( |string| ) )
)
iv_vpcarn = |string|
)
it_disablemanagedskills = VALUE /aws1/cl_sagskilltypelist_w=>tt_skilltypelist(
( new /aws1/cl_sagskilltypelist_w( |string| ) )
)
it_excluderisktypes = VALUE /aws1/cl_sagrisktypelist_w=>tt_risktypelist(
( new /aws1/cl_sagrisktypelist_w( |string| ) )
)
iv_agentspaceid = |string|
iv_coderemediationstrategy = |string|
iv_maxtaskhours = |0.1|
iv_pentestid = |string|
iv_servicerole = |string|
iv_title = |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_pentestid( ).
lv_string = lo_result->get_title( ).
lv_timestamp = lo_result->get_createdat( ).
lv_timestamp = lo_result->get_updatedat( ).
lo_assets = lo_result->get_assets( ).
IF lo_assets IS NOT INITIAL.
LOOP AT lo_assets->get_endpoints( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_uri( ).
ENDIF.
ENDLOOP.
LOOP AT lo_assets->get_actors( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_identifier( ).
LOOP AT lo_row_3->get_uris( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_string = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
lo_authentication = lo_row_3->get_authentication( ).
IF lo_authentication IS NOT INITIAL.
lv_authenticationprovidert = lo_authentication->get_providertype( ).
lv_string = lo_authentication->get_value( ).
ENDIF.
lv_string = lo_row_3->get_description( ).
lv_boolean = lo_row_3->get_enableemailmfa( ).
lv_sensitiveemailaddress = lo_row_3->get_mfaforwardingaddress( ).
ENDIF.
ENDLOOP.
LOOP AT lo_assets->get_documents( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_string = lo_row_7->get_s3location( ).
lv_string = lo_row_7->get_artifactid( ).
lo_integrateddocument = lo_row_7->get_integrateddocument( ).
IF lo_integrateddocument IS NOT INITIAL.
lv_string = lo_integrateddocument->get_integrationid( ).
lv_string = lo_integrateddocument->get_resourceid( ).
ENDIF.
ENDIF.
ENDLOOP.
LOOP AT lo_assets->get_sourcecode( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lv_string = lo_row_9->get_s3location( ).
ENDIF.
ENDLOOP.
LOOP AT lo_assets->get_integratedrepositories( ) into lo_row_10.
lo_row_11 = lo_row_10.
IF lo_row_11 IS NOT INITIAL.
lv_string = lo_row_11->get_integrationid( ).
lv_string = lo_row_11->get_providerresourceid( ).
lv_string = lo_row_11->get_branch( ).
ENDIF.
ENDLOOP.
LOOP AT lo_assets->get_trustedcacertificates( ) into lo_row_12.
lo_row_13 = lo_row_12.
IF lo_row_13 IS NOT INITIAL.
lo_cacertificatesource = lo_row_13->get_source( ).
IF lo_cacertificatesource IS NOT INITIAL.
lv_cacertificatepem = lo_cacertificatesource->get_inlinepem( ).
lv_string = lo_cacertificatesource->get_artifactid( ).
lv_string = lo_cacertificatesource->get_s3location( ).
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
LOOP AT lo_result->get_excluderisktypes( ) into lo_row_14.
lo_row_15 = lo_row_14.
IF lo_row_15 IS NOT INITIAL.
lv_risktype = lo_row_15->get_value( ).
ENDIF.
ENDLOOP.
lv_servicerole = lo_result->get_servicerole( ).
lo_cloudwatchlog = lo_result->get_logconfig( ).
IF lo_cloudwatchlog IS NOT INITIAL.
lv_string = lo_cloudwatchlog->get_loggroup( ).
lv_string = lo_cloudwatchlog->get_logstream( ).
ENDIF.
lv_string = lo_result->get_agentspaceid( ).
lo_reportdestination = lo_result->get_reportdestination( ).
IF lo_reportdestination IS NOT INITIAL.
lv_string = lo_reportdestination->get_integrationid( ).
lv_string = lo_reportdestination->get_containerid( ).
lv_string = lo_reportdestination->get_parentid( ).
lv_string = lo_reportdestination->get_documentid( ).
ENDIF.
lo_reportfilters = lo_result->get_reportfilters( ).
IF lo_reportfilters IS NOT INITIAL.
LOOP AT lo_reportfilters->get_risklevels( ) into lo_row_16.
lo_row_17 = lo_row_16.
IF lo_row_17 IS NOT INITIAL.
lv_risklevel = lo_row_17->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_reportfilters->get_confidencelevels( ) into lo_row_18.
lo_row_19 = lo_row_18.
IF lo_row_19 IS NOT INITIAL.
lv_confidencelevel = lo_row_19->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_reportfilters->get_statuses( ) into lo_row_20.
lo_row_21 = lo_row_20.
IF lo_row_21 IS NOT INITIAL.
lv_findingstatus = lo_row_21->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_reportfilters->get_risktypes( ) into lo_row_22.
lo_row_23 = lo_row_22.
IF lo_row_23 IS NOT INITIAL.
lv_risktype = lo_row_23->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_reportfilters->get_findingtypes( ) into lo_row_24.
lo_row_25 = lo_row_24.
IF lo_row_25 IS NOT INITIAL.
lv_reportfiltervalue = lo_row_25->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_reportfilters->get_taskstatuses( ) into lo_row_26.
lo_row_27 = lo_row_26.
IF lo_row_27 IS NOT INITIAL.
lv_taskexecutionstatus = lo_row_27->get_value( ).
ENDIF.
ENDLOOP.
lv_boolean = lo_reportfilters->get_annotationnotes( ).
lv_boolean = lo_reportfilters->get_compliancereport( ).
ENDIF.
lo_cicdconfiguration = lo_result->get_cicdconfiguration( ).
IF lo_cicdconfiguration IS NOT INITIAL.
lv_boolean = lo_cicdconfiguration->get_enabled( ).
ENDIF.
ENDIF.