/AWS1/IF_DZN=>LISTDATASOURCES()¶
About ListDataSources¶
Lists data sources in Amazon DataZone.
Method Signature¶
METHODS /AWS1/IF_DZN~LISTDATASOURCES
IMPORTING
!IV_DOMAINIDENTIFIER TYPE /AWS1/DZNDOMAINID OPTIONAL
!IV_PROJECTIDENTIFIER TYPE /AWS1/DZNSTRING OPTIONAL
!IV_ENVIRONMENTIDENTIFIER TYPE /AWS1/DZNSTRING OPTIONAL
!IV_CONNECTIONIDENTIFIER TYPE /AWS1/DZNSTRING OPTIONAL
!IV_TYPE TYPE /AWS1/DZNDATASOURCETYPE OPTIONAL
!IV_STATUS TYPE /AWS1/DZNDATASOURCESTATUS OPTIONAL
!IV_NAME TYPE /AWS1/DZNNAME OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/DZNPAGINATIONTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/DZNMAXRESULTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dznlistdatasrcsoutput
RAISING
/AWS1/CX_DZNACCESSDENIEDEX
/AWS1/CX_DZNTHROTTLINGEX
/AWS1/CX_DZNUNAUTHORIZEDEX
/AWS1/CX_DZNCONFLICTEXCEPTION
/AWS1/CX_DZNINTERNALSERVEREX
/AWS1/CX_DZNRESOURCENOTFOUNDEX
/AWS1/CX_DZNSERVICEQUOTAEXCDEX
/AWS1/CX_DZNVALIDATIONEX
/AWS1/CX_DZNCLIENTEXC
/AWS1/CX_DZNSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
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
MaxResultsparameter, or if you explicitly specify a value forMaxResultsthat is less than the number of data sources, the response includes a pagination token namedNextToken. You can specify thisNextTokenvalue in a subsequent call toListDataSourcesto 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 aNextTokenvalue that you can use in a subsequent call toListDataSourcesto 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->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.