/AWS1/IF_SSM=>DSCINSTPATCHSTATESFORPATCHGR()¶
About DescribeInstancePatchStatesForPatchGroup¶
Retrieves the high-level patch state for the managed nodes in the specified patch group.
Method Signature¶
METHODS /AWS1/IF_SSM~DSCINSTPATCHSTATESFORPATCHGR
IMPORTING
!IV_PATCHGROUP TYPE /AWS1/SSMPATCHGROUP OPTIONAL
!IT_FILTERS TYPE /AWS1/CL_SSMINSTPATCHSTATEFILT=>TT_INSTPATCHSTATEFILTERLIST OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/SSMNEXTTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/SSMPATCHCPLNCMAXRESULTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ssmdscinstpatchstat03
RAISING
/AWS1/CX_SSMINTERNALSERVERERR
/AWS1/CX_SSMINVALIDFILTER
/AWS1/CX_SSMINVALIDNEXTTOKEN
/AWS1/CX_SSMCLIENTEXC
/AWS1/CX_SSMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_patchgroup TYPE /AWS1/SSMPATCHGROUP /AWS1/SSMPATCHGROUP¶
The name of the patch group for which the patch state information should be retrieved.
Optional arguments:¶
it_filters TYPE /AWS1/CL_SSMINSTPATCHSTATEFILT=>TT_INSTPATCHSTATEFILTERLIST TT_INSTPATCHSTATEFILTERLIST¶
Each entry in the array is a structure containing:
Key (string between 1 and 200 characters)
Values (array containing a single string)
Type (string "Equal", "NotEqual", "LessThan", "GreaterThan")
iv_nexttoken TYPE /AWS1/SSMNEXTTOKEN /AWS1/SSMNEXTTOKEN¶
The token for the next set of items to return. (You received this token from a previous call.)
iv_maxresults TYPE /AWS1/SSMPATCHCPLNCMAXRESULTS /AWS1/SSMPATCHCPLNCMAXRESULTS¶
The maximum number of patches to return (per page).
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ssmdscinstpatchstat03 /AWS1/CL_SSMDSCINSTPATCHSTAT03¶
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->dscinstpatchstatesforpatchgr(
it_filters = VALUE /aws1/cl_ssminstpatchstatefilt=>tt_instpatchstatefilterlist(
(
new /aws1/cl_ssminstpatchstatefilt(
it_values = VALUE /aws1/cl_ssminstpatchstatefi00=>tt_instpatchstatefiltervalues(
( new /aws1/cl_ssminstpatchstatefi00( |string| ) )
)
iv_key = |string|
iv_type = |string|
)
)
)
iv_maxresults = 123
iv_nexttoken = |string|
iv_patchgroup = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_instancepatchstates( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_instanceid = lo_row_1->get_instanceid( ).
lv_patchgroup = lo_row_1->get_patchgroup( ).
lv_baselineid = lo_row_1->get_baselineid( ).
lv_snapshotid = lo_row_1->get_snapshotid( ).
lv_installoverridelist = lo_row_1->get_installoverridelist( ).
lv_ownerinformation = lo_row_1->get_ownerinformation( ).
lv_patchinstalledcount = lo_row_1->get_installedcount( ).
lv_patchinstalledothercoun = lo_row_1->get_installedothercount( ).
lv_patchinstalledpendingre = lo_row_1->get_installedpendingrebootct( ).
lv_patchinstalledrejectedc = lo_row_1->get_installedrejectedcount( ).
lv_patchmissingcount = lo_row_1->get_missingcount( ).
lv_patchfailedcount = lo_row_1->get_failedcount( ).
lv_patchunreportednotappli = lo_row_1->get_unrptednotapplicablecnt( ).
lv_patchnotapplicablecount = lo_row_1->get_notapplicablecount( ).
lv_patchavailablesecurityu = lo_row_1->get_availablesecupdatecount( ).
lv_datetime = lo_row_1->get_operationstarttime( ).
lv_datetime = lo_row_1->get_operationendtime( ).
lv_patchoperationtype = lo_row_1->get_operation( ).
lv_datetime = lo_row_1->get_lastnorebootinstallopt00( ).
lv_rebootoption = lo_row_1->get_rebootoption( ).
lv_patchcriticalnoncomplia = lo_row_1->get_criticalnoncompcount( ).
lv_patchsecuritynoncomplia = lo_row_1->get_securitynoncompcount( ).
lv_patchothernoncompliantc = lo_row_1->get_othernoncompliantcount( ).
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.