describe_instance_patches
¶
describe_instance_patches(
instance_id: InstanceId,
*,
config_overrides: Optional[SSMClientConfig] = None,
filters: Optional[PatchOrchestratorFilterList] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[PatchComplianceMaxResults] = None,
) -> DescribeInstancePatchesResult
Retrieves information about the patches on the specified managed node and their state relative to the patch baseline being used for the node.
Parameters:
-
instance_id(InstanceId) –The ID of the managed node whose patch state information should be retrieved.
-
filters(Optional[PatchOrchestratorFilterList], default:None) –Each element in the array is a structure containing a key-value pair.
Supported keys for
DescribeInstancePatchesinclude the following:-
ClassificationSample values:
Security|SecurityUpdates -
KBIdSample values:
KB4480056|java-1.7.0-openjdk.x86_64 -
SeveritySample values:
Important|Medium|Low -
StateSample values:
Installed|InstalledOther|InstalledPendingRebootFor lists of all
Statevalues, see Patch compliance state values in the Amazon Web Services Systems Manager User Guide.
-
-
next_token(Optional[NextToken], default:None) –The token for the next set of items to return. (You received this token from a previous call.)
-
max_results(Optional[PatchComplianceMaxResults], default:None) –The maximum number of patches to return (per page).
Raises:
-
InternalServerError–An error occurred on the server side.
-
InvalidFilter–The filter name isn't valid. Verify that you entered the correct name and try again.
-
InvalidInstanceId–The following problems can cause this exception:
-
You don't have permission to access the managed node.
-
Amazon Web Services Systems Manager Agent (SSM Agent) isn't running. Verify that SSM Agent is running.
-
SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.
-
The managed node isn't in a valid state. Valid states are:
Running,Pending,Stopped, andStopping. Invalid states are:Shutting-downandTerminated.
-
-
InvalidNextToken–The specified token isn't valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ssm/_services/ssm.py
3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 | |