/AWS1/CL_DZN=>LISTDATASOURCES()
¶
About ListDataSources¶
Lists data sources in Amazon DataZone.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_domainidentifier
TYPE /AWS1/DZNDOMAINID
/AWS1/DZNDOMAINID
¶
The identifier of the Amazon DataZone domain in which to list the data sources.
iv_projectidentifier
TYPE /AWS1/DZNSTRING
/AWS1/DZNSTRING
¶
The identifier of the project in which to list data sources.
Optional arguments:¶
iv_environmentidentifier
TYPE /AWS1/DZNSTRING
/AWS1/DZNSTRING
¶
The identifier of the environment in which to list the data sources.
iv_connectionidentifier
TYPE /AWS1/DZNSTRING
/AWS1/DZNSTRING
¶
The ID of the connection.
iv_type
TYPE /AWS1/DZNDATASOURCETYPE
/AWS1/DZNDATASOURCETYPE
¶
The type of the data source.
iv_status
TYPE /AWS1/DZNDATASOURCESTATUS
/AWS1/DZNDATASOURCESTATUS
¶
The status of the data source.
iv_name
TYPE /AWS1/DZNNAME
/AWS1/DZNNAME
¶
The name of the data source.
iv_nexttoken
TYPE /AWS1/DZNPAGINATIONTOKEN
/AWS1/DZNPAGINATIONTOKEN
¶
When the number of data sources is greater than the default value for the
MaxResults
parameter, or if you explicitly specify a value forMaxResults
that is less than the number of data sources, the response includes a pagination token namedNextToken
. You can specify thisNextToken
value in a subsequent call toListDataSources
to list the next set of data sources.
iv_maxresults
TYPE /AWS1/DZNMAXRESULTS
/AWS1/DZNMAXRESULTS
¶
The maximum number of data sources to return in a single call to
ListDataSources
. When the number of data sources to be listed is greater than the value ofMaxResults
, the response contains aNextToken
value that you can use in a subsequent call toListDataSources
to list the next set of data sources.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_dznlistdatasrcsoutput
/AWS1/CL_DZNLISTDATASRCSOUTPUT
¶
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_dzn~listdatasources(
iv_connectionidentifier = |string|
iv_domainidentifier = |string|
iv_environmentidentifier = |string|
iv_maxresults = 123
iv_name = |string|
iv_nexttoken = |string|
iv_projectidentifier = |string|
iv_status = |string|
iv_type = |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_items( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_domainid = lo_row_1->get_domainid( ).
lv_string = lo_row_1->get_environmentid( ).
lv_string = lo_row_1->get_connectionid( ).
lv_datasourceid = lo_row_1->get_datasourceid( ).
lv_name = lo_row_1->get_name( ).
lv_string = lo_row_1->get_type( ).
lv_datasourcestatus = lo_row_1->get_status( ).
lv_enablesetting = lo_row_1->get_enablesetting( ).
lo_scheduleconfiguration = lo_row_1->get_schedule( ).
IF lo_scheduleconfiguration IS NOT INITIAL.
lv_timezone = lo_scheduleconfiguration->get_timezone( ).
lv_cronstring = lo_scheduleconfiguration->get_schedule( ).
ENDIF.
lv_datasourcerunstatus = lo_row_1->get_lastrunstatus( ).
lv_datetime = lo_row_1->get_lastrunat( ).
lo_datasourceerrormessage = lo_row_1->get_lastrunerrormessage( ).
IF lo_datasourceerrormessage IS NOT INITIAL.
lv_datasourceerrortype = lo_datasourceerrormessage->get_errortype( ).
lv_string = lo_datasourceerrormessage->get_errordetail( ).
ENDIF.
lv_integer = lo_row_1->get_lastrunassetcount( ).
lv_datetime = lo_row_1->get_createdat( ).
lv_datetime = lo_row_1->get_updatedat( ).
lv_description = lo_row_1->get_description( ).
ENDIF.
ENDLOOP.
lv_paginationtoken = lo_result->get_nexttoken( ).
ENDIF.