/AWS1/CL_RGR=>GETGROUP()
¶
About GetGroup¶
Returns information about a specified resource group.
Minimum permissions
To run this command, you must have the following permissions:
-
resource-groups:GetGroup
Method Signature¶
IMPORTING¶
Optional arguments:¶
iv_groupname
TYPE /AWS1/RGRGROUPNAME
/AWS1/RGRGROUPNAME
¶
Deprecated - don't use this parameter. Use
Group
instead.
iv_group
TYPE /AWS1/RGRGROUPSTRINGV2
/AWS1/RGRGROUPSTRINGV2
¶
The name or the Amazon resource name (ARN) of the resource group to retrieve.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_rgrgetgroupoutput
/AWS1/CL_RGRGETGROUPOUTPUT
¶
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_rgr~getgroup(
iv_group = |string|
iv_groupname = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_group = lo_result->get_group( ).
IF lo_group IS NOT INITIAL.
lv_grouparnv2 = lo_group->get_grouparn( ).
lv_groupname = lo_group->get_name( ).
lv_description = lo_group->get_description( ).
lv_criticality = lo_group->get_criticality( ).
lv_owner = lo_group->get_owner( ).
lv_displayname = lo_group->get_displayname( ).
LOOP AT lo_group->get_applicationtag( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv_applicationarn = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.