/AWS1/IF_CWO=>GETTELEMETRYRULE4ORG()¶
About GetTelemetryRuleForOrganization¶
Retrieves the details of a specific organization telemetry rule. This operation can only be called by the organization's management account or a delegated administrator account.
Method Signature¶
METHODS /AWS1/IF_CWO~GETTELEMETRYRULE4ORG
IMPORTING
!IV_RULEIDENTIFIER TYPE /AWS1/CWORULEIDENTIFIER OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cwogettelrule4orgout
RAISING
/AWS1/CX_CWOACCESSDENIEDEX
/AWS1/CX_CWOINTERNALSERVEREX
/AWS1/CX_CWORESOURCENOTFOUNDEX
/AWS1/CX_CWOTOOMANYREQUESTSEX
/AWS1/CX_CWOVALIDATIONEX
/AWS1/CX_CWOCLIENTEXC
/AWS1/CX_CWOSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_ruleidentifier TYPE /AWS1/CWORULEIDENTIFIER /AWS1/CWORULEIDENTIFIER¶
The identifier (name or ARN) of the organization telemetry rule to retrieve.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cwogettelrule4orgout /AWS1/CL_CWOGETTELRULE4ORGOUT¶
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->gettelemetryrule4org( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_rulename = lo_result->get_rulename( ).
lv_resourcearn = lo_result->get_rulearn( ).
lv_long = lo_result->get_createdtimestamp( ).
lv_long = lo_result->get_lastupdatetimestamp( ).
lo_telemetryrule = lo_result->get_telemetryrule( ).
IF lo_telemetryrule IS NOT INITIAL.
lv_resourcetype = lo_telemetryrule->get_resourcetype( ).
lv_telemetrytype = lo_telemetryrule->get_telemetrytype( ).
LOOP AT lo_telemetryrule->get_telemetrysourcetypes( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_telemetrysourcetype = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lo_telemetrydestinationcon = lo_telemetryrule->get_destinationconfiguration( ).
IF lo_telemetrydestinationcon IS NOT INITIAL.
lv_destinationtype = lo_telemetrydestinationcon->get_destinationtype( ).
lv_string = lo_telemetrydestinationcon->get_destinationpattern( ).
lv_retentionperiodindays = lo_telemetrydestinationcon->get_retentionindays( ).
lo_vpcflowlogparameters = lo_telemetrydestinationcon->get_vpcflowlogparameters( ).
IF lo_vpcflowlogparameters IS NOT INITIAL.
lv_string = lo_vpcflowlogparameters->get_logformat( ).
lv_string = lo_vpcflowlogparameters->get_traffictype( ).
lv_integer = lo_vpcflowlogparameters->get_maxaggregationinterval( ).
ENDIF.
lo_cloudtrailparameters = lo_telemetrydestinationcon->get_cloudtrailparameters( ).
IF lo_cloudtrailparameters IS NOT INITIAL.
LOOP AT lo_cloudtrailparameters->get_advancedeventselectors( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_name( ).
LOOP AT lo_row_3->get_fieldselectors( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_string = lo_row_5->get_field( ).
LOOP AT lo_row_5->get_equals( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_string = lo_row_7->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_row_5->get_startswith( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_string = lo_row_7->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_row_5->get_endswith( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_string = lo_row_7->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_row_5->get_notequals( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_string = lo_row_7->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_row_5->get_notstartswith( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_string = lo_row_7->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_row_5->get_notendswith( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_string = lo_row_7->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.
lo_elbloadbalancerloggingp = lo_telemetrydestinationcon->get_elbloadballoggingparams( ).
IF lo_elbloadbalancerloggingp IS NOT INITIAL.
lv_outputformat = lo_elbloadbalancerloggingp->get_outputformat( ).
lv_string = lo_elbloadbalancerloggingp->get_fielddelimiter( ).
ENDIF.
lo_wafloggingparameters = lo_telemetrydestinationcon->get_wafloggingparameters( ).
IF lo_wafloggingparameters IS NOT INITIAL.
LOOP AT lo_wafloggingparameters->get_redactedfields( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lo_singleheader = lo_row_9->get_singleheader( ).
IF lo_singleheader IS NOT INITIAL.
lv_string = lo_singleheader->get_name( ).
ENDIF.
lv_string = lo_row_9->get_uripath( ).
lv_string = lo_row_9->get_querystring( ).
lv_string = lo_row_9->get_method( ).
ENDIF.
ENDLOOP.
lo_loggingfilter = lo_wafloggingparameters->get_loggingfilter( ).
IF lo_loggingfilter IS NOT INITIAL.
LOOP AT lo_loggingfilter->get_filters( ) into lo_row_10.
lo_row_11 = lo_row_10.
IF lo_row_11 IS NOT INITIAL.
lv_filterbehavior = lo_row_11->get_behavior( ).
lv_filterrequirement = lo_row_11->get_requirement( ).
LOOP AT lo_row_11->get_conditions( ) into lo_row_12.
lo_row_13 = lo_row_12.
IF lo_row_13 IS NOT INITIAL.
lo_actioncondition = lo_row_13->get_actioncondition( ).
IF lo_actioncondition IS NOT INITIAL.
lv_action = lo_actioncondition->get_action( ).
ENDIF.
lo_labelnamecondition = lo_row_13->get_labelnamecondition( ).
IF lo_labelnamecondition IS NOT INITIAL.
lv_string = lo_labelnamecondition->get_labelname( ).
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
lv_filterbehavior = lo_loggingfilter->get_defaultbehavior( ).
ENDIF.
lv_waflogtype = lo_wafloggingparameters->get_logtype( ).
ENDIF.
lo_logdeliveryparameters = lo_telemetrydestinationcon->get_logdeliveryparameters( ).
IF lo_logdeliveryparameters IS NOT INITIAL.
LOOP AT lo_logdeliveryparameters->get_logtypes( ) into lo_row_14.
lo_row_15 = lo_row_14.
IF lo_row_15 IS NOT INITIAL.
lv_logtype = lo_row_15->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
lv_string = lo_telemetryrule->get_scope( ).
lv_string = lo_telemetryrule->get_selectioncriteria( ).
LOOP AT lo_telemetryrule->get_regions( ) into lo_row_16.
lo_row_17 = lo_row_16.
IF lo_row_17 IS NOT INITIAL.
lv_region = lo_row_17->get_value( ).
ENDIF.
ENDLOOP.
lv_allregions = lo_telemetryrule->get_allregions( ).
ENDIF.
lv_region = lo_result->get_homeregion( ).
lv_isreplicated = lo_result->get_isreplicated( ).
LOOP AT lo_result->get_regionstatuses( ) into lo_row_18.
lo_row_19 = lo_row_18.
IF lo_row_19 IS NOT INITIAL.
lv_region = lo_row_19->get_region( ).
lv_string = lo_row_19->get_status( ).
lv_string = lo_row_19->get_failurereason( ).
lv_resourcearn = lo_row_19->get_rulearn( ).
ENDIF.
ENDLOOP.
ENDIF.