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 |
display |
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. |
create |
Time this patch job was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
update |
Last time this patch job was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
state |
The current state of the PatchJob. |
instance |
Instances to patch. |
patch |
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 ' |
instance |
Summary of instance details. |
dry |
If this patch job is a dry run, the agent reports that it has finished without running any updates on the VM instance. |
error |
If this patch job failed, this message provides information about the failure. |
percent |
Reflects the overall progress of the patch job in the range of 0.0 being no progress to 100.0 being complete. |
patch |
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 | |
---|---|
pending |
Number of instances pending patch job. |
inactive |
Number of instances that are inactive. |
notified |
Number of instances notified about patch job. |
started |
Number of instances that have started. |
downloading |
Number of instances that are downloading patches. |
applying |
Number of instances that are applying patches. |
rebooting |
Number of instances rebooting. |
succeeded |
Number of instances that have completed successfully. |
succeeded |
Number of instances that require reboot. |
failed |
Number of instances that failed. |
acked |
Number of instances that have acked and will start shortly. |
timed |
Number of instances that exceeded the time out while applying the patch. |
pre |
Number of instances that are running the pre-patch step. |
post |
Number of instances that are running the post-patch step. |
no |
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. |