/AWS1/IF_APD=>GETLATESTCONFIGURATION()¶
About GetLatestConfiguration¶
Retrieves the latest deployed configuration. This API may return empty configuration data if the client already has the latest version. For more information about this API action and to view example CLI commands that show how to use it with the StartConfigurationSession API action, see Retrieving the configuration in the AppConfig User Guide.
Note the following important information.
- 
Each configuration token is only valid for one call to GetLatestConfiguration. TheGetLatestConfigurationresponse includes aNextPollConfigurationTokenthat should always replace the token used for the just-completed call in preparation for the next one.
- 
GetLatestConfigurationis a priced call. For more information, see Pricing.
Method Signature¶
METHODS /AWS1/IF_APD~GETLATESTCONFIGURATION
  IMPORTING
    !IV_CONFIGURATIONTOKEN TYPE /AWS1/APDTOKEN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_apdgetlatestconfrsp
  RAISING
    /AWS1/CX_APDBADREQUESTEX
    /AWS1/CX_APDINTERNALSERVEREX
    /AWS1/CX_APDRESOURCENOTFOUNDEX
    /AWS1/CX_APDTHROTTLINGEX
    /AWS1/CX_APDCLIENTEXC
    /AWS1/CX_APDSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_configurationtoken TYPE /AWS1/APDTOKEN /AWS1/APDTOKEN¶
Token describing the current state of the configuration session. To obtain a token, first call the StartConfigurationSession API. Note that every call to
GetLatestConfigurationwill return a newConfigurationToken(NextPollConfigurationTokenin the response) and must be provided to subsequentGetLatestConfigurationAPI calls.This token should only be used once. To support long poll use cases, the token is valid for up to 24 hours. If a
GetLatestConfigurationcall uses an expired token, the system returnsBadRequestException.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_apdgetlatestconfrsp /AWS1/CL_APDGETLATESTCONFRSP¶
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->getlatestconfiguration( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_token = lo_result->get_nextpollconftoken( ).
  lv_integer = lo_result->get_nextpollintervalinsecs( ).
  lv_string = lo_result->get_contenttype( ).
  lv_sensitiveblob = lo_result->get_configuration( ).
  lv_string = lo_result->get_versionlabel( ).
ENDIF.