/AWS1/IF_APS=>DESCRIBEIMAGEPERMISSIONS()¶
About DescribeImagePermissions¶
Retrieves a list that describes the permissions for shared AWS account IDs on a private image that you own.
Method Signature¶
METHODS /AWS1/IF_APS~DESCRIBEIMAGEPERMISSIONS
IMPORTING
!IV_NAME TYPE /AWS1/APSNAME OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/APSMAXRESULTS OPTIONAL
!IT_SHAREDAWSACCOUNTIDS TYPE /AWS1/CL_APSAWSACCOUNTIDLIST_W=>TT_AWSACCOUNTIDLIST OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/APSSTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_apsdscimagepermsrs
RAISING
/AWS1/CX_APSRESOURCENOTFOUNDEX
/AWS1/CX_APSCLIENTEXC
/AWS1/CX_APSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/APSNAME /AWS1/APSNAME¶
The name of the private image for which to describe permissions. The image must be one that you own.
Optional arguments:¶
iv_maxresults TYPE /AWS1/APSMAXRESULTS /AWS1/APSMAXRESULTS¶
The maximum size of each page of results.
it_sharedawsaccountids TYPE /AWS1/CL_APSAWSACCOUNTIDLIST_W=>TT_AWSACCOUNTIDLIST TT_AWSACCOUNTIDLIST¶
The 12-digit identifier of one or more AWS accounts with which the image is shared.
iv_nexttoken TYPE /AWS1/APSSTRING /AWS1/APSSTRING¶
The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_apsdscimagepermsrs /AWS1/CL_APSDSCIMAGEPERMSRS¶
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->describeimagepermissions(
it_sharedawsaccountids = VALUE /aws1/cl_apsawsaccountidlist_w=>tt_awsaccountidlist(
( new /aws1/cl_apsawsaccountidlist_w( |string| ) )
)
iv_maxresults = 123
iv_name = |string|
iv_nexttoken = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_name = lo_result->get_name( ).
LOOP AT lo_result->get_sharedimagepermslist( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_awsaccountid = lo_row_1->get_sharedaccountid( ).
lo_imagepermissions = lo_row_1->get_imagepermissions( ).
IF lo_imagepermissions IS NOT INITIAL.
lv_booleanobject = lo_imagepermissions->get_allowfleet( ).
lv_booleanobject = lo_imagepermissions->get_allowimagebuilder( ).
ENDIF.
ENDIF.
ENDLOOP.
lv_string = lo_result->get_nexttoken( ).
ENDIF.