/AWS1/IF_DZN=>GETASSET()
¶
About GetAsset¶
Gets an Amazon DataZone asset.
An asset is the fundamental building block in Amazon DataZone, representing any data resource that needs to be cataloged and managed. It can take many forms, from Amazon S3 buckets and database tables to dashboards and machine learning models. Each asset contains comprehensive metadata about the resource, including its location, schema, ownership, and lineage information. Assets are essential for organizing and managing data resources across an organization, making them discoverable and usable while maintaining proper governance.
Before using the Amazon DataZone GetAsset command, ensure the following prerequisites are met:
-
Domain identifier must exist and be valid
-
Asset identifier must exist
-
User must have the required permissions to perform the action
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_domainidentifier
TYPE /AWS1/DZNDOMAINID
/AWS1/DZNDOMAINID
¶
The ID of the Amazon DataZone domain to which the asset belongs.
iv_identifier
TYPE /AWS1/DZNASSETIDENTIFIER
/AWS1/DZNASSETIDENTIFIER
¶
The ID of the Amazon DataZone asset.
This parameter supports either the value of
assetId
orexternalIdentifier
as input. If you are passing the value ofexternalIdentifier
, you must prefix this value withexternalIdentifer%2F
.
Optional arguments:¶
iv_revision
TYPE /AWS1/DZNREVISION
/AWS1/DZNREVISION
¶
The revision of the Amazon DataZone asset.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_dzngetassetoutput
/AWS1/CL_DZNGETASSETOUTPUT
¶
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~getasset(
iv_domainidentifier = |string|
iv_identifier = |string|
iv_revision = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_assetid = lo_result->get_id( ).
lv_assetname = lo_result->get_name( ).
lv_assettypeidentifier = lo_result->get_typeidentifier( ).
lv_revision = lo_result->get_typerevision( ).
lv_externalidentifier = lo_result->get_externalidentifier( ).
lv_revision = lo_result->get_revision( ).
lv_description = lo_result->get_description( ).
lv_createdat = lo_result->get_createdat( ).
lv_createdby = lo_result->get_createdby( ).
lv_createdat = lo_result->get_firstrevisioncreatedat( ).
lv_createdby = lo_result->get_firstrevisioncreatedby( ).
LOOP AT lo_result->get_glossaryterms( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_glossarytermid = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_governedglossaryterms( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_glossarytermid = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_projectid = lo_result->get_owningprojectid( ).
lv_domainid = lo_result->get_domainid( ).
lo_assetlistingdetails = lo_result->get_listing( ).
IF lo_assetlistingdetails IS NOT INITIAL.
lv_listingid = lo_assetlistingdetails->get_listingid( ).
lv_listingstatus = lo_assetlistingdetails->get_listingstatus( ).
ENDIF.
LOOP AT lo_result->get_formsoutput( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_formname = lo_row_5->get_formname( ).
lv_formtypename = lo_row_5->get_typename( ).
lv_revision = lo_row_5->get_typerevision( ).
lv_string = lo_row_5->get_content( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_readonlyformsoutput( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_formname = lo_row_5->get_formname( ).
lv_formtypename = lo_row_5->get_typename( ).
lv_revision = lo_row_5->get_typerevision( ).
lv_string = lo_row_5->get_content( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_latsttimeseriesdataptf01( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_timeseriesformname = lo_row_7->get_formname( ).
lv_formtypeidentifier = lo_row_7->get_typeidentifier( ).
lv_revision = lo_row_7->get_typerevision( ).
lv_timestamp = lo_row_7->get_timestamp( ).
lv_string = lo_row_7->get_contentsummary( ).
lv_datapointidentifier = lo_row_7->get_id( ).
ENDIF.
ENDLOOP.
ENDIF.