/AWS1/IF_SDY=>DISCOVERINSTANCESREVISION()
¶
About DiscoverInstancesRevision¶
Discovers the increasing revision associated with an instance.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_namespacename
TYPE /AWS1/SDYNAMESPACENAME
/AWS1/SDYNAMESPACENAME
¶
The
HttpName
name of the namespace. TheHttpName
is found in theHttpProperties
member of theProperties
member of the namespace.
iv_servicename
TYPE /AWS1/SDYSERVICENAME
/AWS1/SDYSERVICENAME
¶
The name of the service that you specified when you registered the instance.
Optional arguments:¶
iv_owneraccount
TYPE /AWS1/SDYAWSACCOUNTID
/AWS1/SDYAWSACCOUNTID
¶
The ID of the Amazon Web Services account that owns the namespace associated with the instance, as specified in the namespace
ResourceOwner
field. For instances associated with namespaces that are shared with your account, you must specify anOwnerAccount
. For more information about shared namespaces, see Cross-account Cloud Map namespace sharing in the Cloud Map Developer Guide.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_sdydiscoverinstsrev01
/AWS1/CL_SDYDISCOVERINSTSREV01
¶
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_sdy~discoverinstancesrevision(
iv_namespacename = |string|
iv_owneraccount = |string|
iv_servicename = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_revision = lo_result->get_instancesrevision( ).
ENDIF.
To discover the revision for a registered instance¶
The following example discovers the revision ID for a registered instance.
DATA(lo_result) = lo_client->/aws1/if_sdy~discoverinstancesrevision(
iv_namespacename = |example-namespace|
iv_servicename = |example-service|
).