/AWS1/IF_IAM=>LISTDELEGATIONREQUESTS()¶
About ListDelegationRequests¶
Lists delegation requests based on the specified criteria.
If a delegation request has no owner, even if it is assigned to a specific account, it will not be part of the
ListDelegationRequests output for that account.
For more details, see Managing Permissions for Delegation Requests.
Method Signature¶
METHODS /AWS1/IF_IAM~LISTDELEGATIONREQUESTS
IMPORTING
!IV_OWNERID TYPE /AWS1/IAMOWNERIDTYPE OPTIONAL
!IV_MARKER TYPE /AWS1/IAMMARKERTYPE OPTIONAL
!IV_MAXITEMS TYPE /AWS1/IAMMAXITEMSTYPE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_iamlstdelegationreq01
RAISING
/AWS1/CX_IAMINVALIDINPUTEX
/AWS1/CX_IAMNOSUCHENTITYEX
/AWS1/CX_IAMSERVICEFAILUREEX
/AWS1/CX_IAMCLIENTEXC
/AWS1/CX_IAMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_ownerid TYPE /AWS1/IAMOWNERIDTYPE /AWS1/IAMOWNERIDTYPE¶
The owner ID to filter delegation requests by.
iv_marker TYPE /AWS1/IAMMARKERTYPE /AWS1/IAMMARKERTYPE¶
Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the
Markerelement in the response that you received to indicate where the next call should start.
iv_maxitems TYPE /AWS1/IAMMAXITEMSTYPE /AWS1/IAMMAXITEMSTYPE¶
Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the
IsTruncatedresponse element istrue.If you do not include this parameter, the number of items defaults to 100. Note that IAM may return fewer results, even when there are more results available. In that case, the
IsTruncatedresponse element returnstrue, andMarkercontains a value to include in the subsequent call that tells the service where to continue from.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_iamlstdelegationreq01 /AWS1/CL_IAMLSTDELEGATIONREQ01¶
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->listdelegationrequests(
iv_marker = |string|
iv_maxitems = 123
iv_ownerid = |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_delegationrequests( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_delegationrequestidtype = lo_row_1->get_delegationrequestid( ).
lv_accountidtype = lo_row_1->get_owneraccountid( ).
lv_delegationrequestdescri = lo_row_1->get_description( ).
lv_requestmessagetype = lo_row_1->get_requestmessage( ).
lo_delegationpermission = lo_row_1->get_permissions( ).
IF lo_delegationpermission IS NOT INITIAL.
lv_arntype = lo_delegationpermission->get_policytemplatearn( ).
LOOP AT lo_delegationpermission->get_parameters( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_policyparameternametype = lo_row_3->get_name( ).
LOOP AT lo_row_3->get_values( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_policyparametervaluetyp = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
lv_policyparametertypeenum = lo_row_3->get_type( ).
ENDIF.
ENDLOOP.
ENDIF.
lv_permissiontype = lo_row_1->get_permissionpolicy( ).
LOOP AT lo_row_1->get_rolepermrestrictionarns( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_arntype = lo_row_7->get_value( ).
ENDIF.
ENDLOOP.
lv_owneridtype = lo_row_1->get_ownerid( ).
lv_arntype = lo_row_1->get_approverid( ).
lv_statetype = lo_row_1->get_state( ).
lv_accountidtype = lo_row_1->get_requestorid( ).
lv_requestornametype = lo_row_1->get_requestorname( ).
lv_datetype = lo_row_1->get_createdate( ).
lv_sessiondurationtype = lo_row_1->get_sessionduration( ).
lv_redirecturltype = lo_row_1->get_redirecturl( ).
lv_notestype = lo_row_1->get_notes( ).
lv_notestype = lo_row_1->get_rejectionreason( ).
lv_booleantype = lo_row_1->get_onlysendbyowner( ).
lv_datetype = lo_row_1->get_updatedtime( ).
ENDIF.
ENDLOOP.
lv_markertype = lo_result->get_marker( ).
lv_booleantype = lo_result->get_istruncated( ).
ENDIF.