Resource: PatchJob
A high level representation of a patch job that is either in progress or has completed.
Instance details are not included in the job. To paginate through instance details, use ListPatchJobInstanceDetails
.
For more information about patch jobs, see Creating patch jobs .
JSON representation |
---|
{ "name" : string , "displayName" : string , "description" : string , "createTime" : string , "updateTime" : string , "state" : enum ( |
Fields | |
---|---|
name
|
Unique identifier for this patch job in the form |
displayName
|
Display name for this patch job. This is not a unique identifier. |
description
|
Description of the patch job. Length of the description is limited to 1024 characters. |
createTime
|
Time this patch job was created. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime
|
Last time this patch job was updated. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
state
|
The current state of the PatchJob. |
instanceFilter
|
Instances to patch. |
patchConfig
|
Patch configuration being applied. |
duration
|
Duration of the patch job. After the duration ends, the patch job times out. A duration in seconds with up to nine fractional digits, ending with ' |
instanceDetailsSummary
|
Summary of instance details. |
dryRun
|
If this patch job is a dry run, the agent reports that it has finished without running any updates on the VM instance. |
percentComplete
|
Reflects the overall progress of the patch job in the range of 0.0 being no progress to 100.0 being complete. |
patchDeployment
|
Output only. Name of the patch deployment that created this patch job. |
rollout
|
Rollout strategy being applied. |
State
Enumeration of the various states a patch job passes through as it executes.
Enums | |
---|---|
STATE_UNSPECIFIED
|
State must be specified. |
STARTED
|
The patch job was successfully initiated. |
INSTANCE_LOOKUP
|
The patch job is looking up instances to run the patch on. |
PATCHING
|
Instances are being patched. |
SUCCEEDED
|
Patch job completed successfully. |
COMPLETED_WITH_ERRORS
|
Patch job completed but there were errors. |
CANCELED
|
The patch job was canceled. |
TIMED_OUT
|
The patch job timed out. |
InstanceDetailsSummary
A summary of the current patch state across all instances that this patch job affects. Contains counts of instances in different states. These states map to InstancePatchState
. List patch job instance details to see the specific states of each instance.
JSON representation |
---|
{ "pendingInstanceCount" : string , "inactiveInstanceCount" : string , "notifiedInstanceCount" : string , "startedInstanceCount" : string , "downloadingPatchesInstanceCount" : string , "applyingPatchesInstanceCount" : string , "rebootingInstanceCount" : string , "succeededInstanceCount" : string , "succeededRebootRequiredInstanceCount" : string , "failedInstanceCount" : string , "ackedInstanceCount" : string , "timedOutInstanceCount" : string , "prePatchStepInstanceCount" : string , "postPatchStepInstanceCount" : string , "noAgentDetectedInstanceCount" : string } |
Fields | |
---|---|
pendingInstanceCount
|
Number of instances pending patch job. |
inactiveInstanceCount
|
Number of instances that are inactive. |
notifiedInstanceCount
|
Number of instances notified about patch job. |
startedInstanceCount
|
Number of instances that have started. |
downloadingPatchesInstanceCount
|
Number of instances that are downloading patches. |
applyingPatchesInstanceCount
|
Number of instances that are applying patches. |
rebootingInstanceCount
|
Number of instances rebooting. |
succeededInstanceCount
|
Number of instances that have completed successfully. |
succeededRebootRequiredInstanceCount
|
Number of instances that require reboot. |
failedInstanceCount
|
Number of instances that failed. |
ackedInstanceCount
|
Number of instances that have acked and will start shortly. |
timedOutInstanceCount
|
Number of instances that exceeded the time out while applying the patch. |
prePatchStepInstanceCount
|
Number of instances that are running the pre-patch step. |
postPatchStepInstanceCount
|
Number of instances that are running the post-patch step. |
noAgentDetectedInstanceCount
|
Number of instances that do not appear to be running the agent. Check to ensure that the agent is installed, running, and able to communicate with the service. |
Methods |
|
---|---|
|
Cancel a patch job. |
|
Patch VM instances by creating and running a patch job. |
|
Get the patch job. |
|
Get a list of patch jobs. |