/AWS1/IF_CON=>GETRESOURCESYNCSTATUS()¶
About GetResourceSyncStatus¶
Returns the status of the sync with the Git repository for a specific Amazon Web Services resource.
Method Signature¶
METHODS /AWS1/IF_CON~GETRESOURCESYNCSTATUS
IMPORTING
!IV_RESOURCENAME TYPE /AWS1/CONRESOURCENAME OPTIONAL
!IV_SYNCTYPE TYPE /AWS1/CONSYNCCONFIGURATIONTYPE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_congetresrcsyncstat01
RAISING
/AWS1/CX_CONACCESSDENIEDEX
/AWS1/CX_CONINTERNALSERVEREX
/AWS1/CX_CONINVALIDINPUTEX
/AWS1/CX_CONRESOURCENOTFOUNDEX
/AWS1/CX_CONTHROTTLINGEX
/AWS1/CX_CONCLIENTEXC
/AWS1/CX_CONSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_resourcename TYPE /AWS1/CONRESOURCENAME /AWS1/CONRESOURCENAME¶
The name of the Amazon Web Services resource for the sync status with the Git repository.
iv_synctype TYPE /AWS1/CONSYNCCONFIGURATIONTYPE /AWS1/CONSYNCCONFIGURATIONTYPE¶
The sync type for the sync status with the Git repository.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_congetresrcsyncstat01 /AWS1/CL_CONGETRESRCSYNCSTAT01¶
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->getresourcesyncstatus(
iv_resourcename = |string|
iv_synctype = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_revision = lo_result->get_desiredstate( ).
IF lo_revision IS NOT INITIAL.
lv_branchname = lo_revision->get_branch( ).
lv_directory = lo_revision->get_directory( ).
lv_ownerid = lo_revision->get_ownerid( ).
lv_repositoryname = lo_revision->get_repositoryname( ).
lv_providertype = lo_revision->get_providertype( ).
lv_sha = lo_revision->get_sha( ).
ENDIF.
lo_resourcesyncattempt = lo_result->get_latestsuccessfulsync( ).
IF lo_resourcesyncattempt IS NOT INITIAL.
LOOP AT lo_resourcesyncattempt->get_events( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_event = lo_row_1->get_event( ).
lv_externalid = lo_row_1->get_externalid( ).
lv_timestamp = lo_row_1->get_time( ).
lv_type = lo_row_1->get_type( ).
ENDIF.
ENDLOOP.
lo_revision = lo_resourcesyncattempt->get_initialrevision( ).
IF lo_revision IS NOT INITIAL.
lv_branchname = lo_revision->get_branch( ).
lv_directory = lo_revision->get_directory( ).
lv_ownerid = lo_revision->get_ownerid( ).
lv_repositoryname = lo_revision->get_repositoryname( ).
lv_providertype = lo_revision->get_providertype( ).
lv_sha = lo_revision->get_sha( ).
ENDIF.
lv_timestamp = lo_resourcesyncattempt->get_startedat( ).
lv_resourcesyncstatus = lo_resourcesyncattempt->get_status( ).
lo_revision = lo_resourcesyncattempt->get_targetrevision( ).
IF lo_revision IS NOT INITIAL.
lv_branchname = lo_revision->get_branch( ).
lv_directory = lo_revision->get_directory( ).
lv_ownerid = lo_revision->get_ownerid( ).
lv_repositoryname = lo_revision->get_repositoryname( ).
lv_providertype = lo_revision->get_providertype( ).
lv_sha = lo_revision->get_sha( ).
ENDIF.
lv_target = lo_resourcesyncattempt->get_target( ).
ENDIF.
lo_resourcesyncattempt = lo_result->get_latestsync( ).
IF lo_resourcesyncattempt IS NOT INITIAL.
LOOP AT lo_resourcesyncattempt->get_events( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_event = lo_row_1->get_event( ).
lv_externalid = lo_row_1->get_externalid( ).
lv_timestamp = lo_row_1->get_time( ).
lv_type = lo_row_1->get_type( ).
ENDIF.
ENDLOOP.
lo_revision = lo_resourcesyncattempt->get_initialrevision( ).
IF lo_revision IS NOT INITIAL.
lv_branchname = lo_revision->get_branch( ).
lv_directory = lo_revision->get_directory( ).
lv_ownerid = lo_revision->get_ownerid( ).
lv_repositoryname = lo_revision->get_repositoryname( ).
lv_providertype = lo_revision->get_providertype( ).
lv_sha = lo_revision->get_sha( ).
ENDIF.
lv_timestamp = lo_resourcesyncattempt->get_startedat( ).
lv_resourcesyncstatus = lo_resourcesyncattempt->get_status( ).
lo_revision = lo_resourcesyncattempt->get_targetrevision( ).
IF lo_revision IS NOT INITIAL.
lv_branchname = lo_revision->get_branch( ).
lv_directory = lo_revision->get_directory( ).
lv_ownerid = lo_revision->get_ownerid( ).
lv_repositoryname = lo_revision->get_repositoryname( ).
lv_providertype = lo_revision->get_providertype( ).
lv_sha = lo_revision->get_sha( ).
ENDIF.
lv_target = lo_resourcesyncattempt->get_target( ).
ENDIF.
ENDIF.