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
3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 | |