/AWS1/IF_SSM=>DEREGISTERMANAGEDINSTANCE()¶
About DeregisterManagedInstance¶
Removes the server or virtual machine from the list of registered servers.
If you want to reregister an on-premises server, edge device, or VM, you must use a different Activation Code and Activation ID than used to register the machine previously. The Activation Code and Activation ID must not have already been used on the maximum number of activations specified when they were created. For more information, see Deregistering managed nodes in a hybrid and multicloud environment in the Amazon Web Services Systems Manager User Guide.
Method Signature¶
METHODS /AWS1/IF_SSM~DEREGISTERMANAGEDINSTANCE
IMPORTING
!IV_INSTANCEID TYPE /AWS1/SSMMANAGEDINSTANCEID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ssmderegmanagedinstrs
RAISING
/AWS1/CX_SSMINTERNALSERVERERR
/AWS1/CX_SSMINVALIDINSTANCEID
/AWS1/CX_SSMCLIENTEXC
/AWS1/CX_SSMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_instanceid TYPE /AWS1/SSMMANAGEDINSTANCEID /AWS1/SSMMANAGEDINSTANCEID¶
The ID assigned to the managed node when you registered it using the activation process.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ssmderegmanagedinstrs /AWS1/CL_SSMDEREGMANAGEDINSTRS¶
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->deregistermanagedinstance( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.