/AWS1/IF_FSX=>DSCDATAREPOSITORYASSOCIATI00()¶
About DescribeDataRepositoryAssociations¶
Returns the description of specific Amazon FSx for Lustre or Amazon File Cache
data repository associations, if one or more AssociationIds values
are provided in the request, or if filters are used in the request. Data repository
associations are supported on Amazon File Cache resources and all FSx for Lustre
2.12 and 2,15 file systems, excluding scratch_1 deployment type.
You can use filters to narrow the response to include just data repository
associations for specific file systems (use the file-system-id filter with
the ID of the file system) or caches (use the file-cache-id filter with
the ID of the cache), or data repository associations for a specific repository type
(use the data-repository-type filter with a value of S3
or NFS). If you don't use filters, the response returns all data
repository associations owned by your Amazon Web Services account in the Amazon Web Services Region
of the endpoint that you're calling.
When retrieving all data repository associations, you can paginate the response by using
the optional MaxResults parameter to limit the number of data repository associations
returned in a response. If more data repository associations remain, a
NextToken value is returned in the response. In this case, send a later
request with the NextToken request parameter set to the value of
NextToken from the last response.
Method Signature¶
METHODS /AWS1/IF_FSX~DSCDATAREPOSITORYASSOCIATI00
IMPORTING
!IT_ASSOCIATIONIDS TYPE /AWS1/CL_FSXDATAREPOSITORYAS01=>TT_DATAREPOSITORYASSOCIATION00 OPTIONAL
!IT_FILTERS TYPE /AWS1/CL_FSXFILTER=>TT_FILTERS OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/FSXLIMITEDMAXRESULTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/FSXNEXTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_fsxdscdatarepositor01
RAISING
/AWS1/CX_FSXBADREQUEST
/AWS1/CX_FSXDATAREPOSITORYAS00
/AWS1/CX_FSXFILESYSTEMNOTFOUND
/AWS1/CX_FSXINTERNALSERVERERR
/AWS1/CX_FSXINVDATAREPOSITOR00
/AWS1/CX_FSXCLIENTEXC
/AWS1/CX_FSXSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
it_associationids TYPE /AWS1/CL_FSXDATAREPOSITORYAS01=>TT_DATAREPOSITORYASSOCIATION00 TT_DATAREPOSITORYASSOCIATION00¶
IDs of the data repository associations whose descriptions you want to retrieve (String).
it_filters TYPE /AWS1/CL_FSXFILTER=>TT_FILTERS TT_FILTERS¶
Filters
iv_maxresults TYPE /AWS1/FSXLIMITEDMAXRESULTS /AWS1/FSXLIMITEDMAXRESULTS¶
The maximum number of resources to return in the response. This value must be an integer greater than zero.
iv_nexttoken TYPE /AWS1/FSXNEXTTOKEN /AWS1/FSXNEXTTOKEN¶
NextToken
RETURNING¶
oo_output TYPE REF TO /aws1/cl_fsxdscdatarepositor01 /AWS1/CL_FSXDSCDATAREPOSITOR01¶
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->dscdatarepositoryassociati00(
it_associationids = VALUE /aws1/cl_fsxdatarepositoryas01=>tt_datarepositoryassociation00(
( new /aws1/cl_fsxdatarepositoryas01( |string| ) )
)
it_filters = VALUE /aws1/cl_fsxfilter=>tt_filters(
(
new /aws1/cl_fsxfilter(
it_values = VALUE /aws1/cl_fsxfiltervalues_w=>tt_filtervalues(
( new /aws1/cl_fsxfiltervalues_w( |string| ) )
)
iv_name = |string|
)
)
)
iv_maxresults = 123
iv_nexttoken = |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_associations( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_datarepositoryassociati = lo_row_1->get_associationid( ).
lv_resourcearn = lo_row_1->get_resourcearn( ).
lv_filesystemid = lo_row_1->get_filesystemid( ).
lv_datarepositorylifecycle = lo_row_1->get_lifecycle( ).
lo_datarepositoryfailurede = lo_row_1->get_failuredetails( ).
IF lo_datarepositoryfailurede IS NOT INITIAL.
lv_errormessage = lo_datarepositoryfailurede->get_message( ).
ENDIF.
lv_namespace = lo_row_1->get_filesystempath( ).
lv_archivepath = lo_row_1->get_datarepositorypath( ).
lv_batchimportmetadataoncr = lo_row_1->get_batchimportmetoncreate( ).
lv_megabytes = lo_row_1->get_importedfilechunksize( ).
lo_s3datarepositoryconfigu = lo_row_1->get_s3( ).
IF lo_s3datarepositoryconfigu IS NOT INITIAL.
lo_autoimportpolicy = lo_s3datarepositoryconfigu->get_autoimportpolicy( ).
IF lo_autoimportpolicy IS NOT INITIAL.
LOOP AT lo_autoimportpolicy->get_events( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_eventtype = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_autoexportpolicy = lo_s3datarepositoryconfigu->get_autoexportpolicy( ).
IF lo_autoexportpolicy IS NOT INITIAL.
LOOP AT lo_autoexportpolicy->get_events( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_eventtype = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
LOOP AT lo_row_1->get_tags( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_tagkey = lo_row_5->get_key( ).
lv_tagvalue = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
lv_creationtime = lo_row_1->get_creationtime( ).
lv_filecacheid = lo_row_1->get_filecacheid( ).
lv_namespace = lo_row_1->get_filecachepath( ).
LOOP AT lo_row_1->get_datarepositorysubdirec00( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_namespace = lo_row_7->get_value( ).
ENDIF.
ENDLOOP.
lo_nfsdatarepositoryconfig = lo_row_1->get_nfs( ).
IF lo_nfsdatarepositoryconfig IS NOT INITIAL.
lv_nfsversion = lo_nfsdatarepositoryconfig->get_version( ).
LOOP AT lo_nfsdatarepositoryconfig->get_dnsips( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lv_ipaddress = lo_row_9->get_value( ).
ENDIF.
ENDLOOP.
lo_autoexportpolicy = lo_nfsdatarepositoryconfig->get_autoexportpolicy( ).
IF lo_autoexportpolicy IS NOT INITIAL.
LOOP AT lo_autoexportpolicy->get_events( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_eventtype = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.