Skip to content

/AWS1/CL_SSM=>GETDEPLOYABLEPATCHSNAPFORI00()

About GetDeployablePatchSnapshotForInstance

Retrieves the current snapshot for the patch baseline the managed node uses. This API is primarily used by the AWS-RunPatchBaseline Systems Manager document (SSM document).

If you run the command locally, such as with the Command Line Interface (CLI), the system attempts to use your local Amazon Web Services credentials and the operation fails. To avoid this, you can run the command in the Amazon Web Services Systems Manager console. Use Run Command, a capability of Amazon Web Services Systems Manager, with an SSM document that enables you to target a managed node with a script or command. For example, run the command using the AWS-RunShellScript document or the AWS-RunPowerShellScript document.

Method Signature

IMPORTING

Required arguments:

IV_INSTANCEID TYPE /AWS1/SSMINSTANCEID /AWS1/SSMINSTANCEID

The ID of the managed node for which the appropriate patch snapshot should be retrieved.

IV_SNAPSHOTID TYPE /AWS1/SSMSNAPSHOTID /AWS1/SSMSNAPSHOTID

The snapshot ID provided by the user when running AWS-RunPatchBaseline.

Optional arguments:

IO_BASELINEOVERRIDE TYPE REF TO /AWS1/CL_SSMBASELINEOVERRIDE /AWS1/CL_SSMBASELINEOVERRIDE

Defines the basic information about a patch baseline override.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_SSMGETDEPLOYABLEPAT01 /AWS1/CL_SSMGETDEPLOYABLEPAT01