OSConfig
import { OSConfig } from "https://googleapis.deno.dev/v1/osconfig:v1.ts";
OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances.
§Properties
Change state of patch deployment to "PAUSED". Patch deployment in paused state doesn't generate patch jobs.
Change state of patch deployment back to "ACTIVE". Patch deployment in active state continues to generate patch jobs.
Cancel a patch job. The patch job must be active. Canceled patch jobs cannot be restarted.
Get the patch job. This can be used to track the progress of an ongoing patch job or review the details of completed jobs.
§Methods
GetProjectFeatureSettings returns the VM Manager feature settings for a project.
Required. Name specifies the URL for the ProjectFeatureSettings resource: projects/project_id/locations/global/projectFeatureSettings.
UpdateProjectFeatureSettings sets the VM Manager features for a project.
Required. Immutable. Name specifies the URL for the ProjectFeatureSettings resource: projects/project_id/locations/global/projectFeatureSettings.
Get inventory data for the specified VM instance. If the VM has no
associated inventory, the message NOT_FOUND
is returned.
Required. API resource name for inventory resource. Format: projects/{project}/locations/{location}/instances/{instance}/inventory
For {project}
, either project-number
or project-id
can be provided. For {instance}
, either Compute Engine instance-id
or instance-name
can be provided.
List inventory data for all VM instances in the specified zone.
Required. The parent resource name. Format: projects/{project}/locations/{location}/instances/-
For {project}
, either project-number
or project-id
can be provided.
Get the OS policy assignment report for the specified Compute Engine VM instance.
Required. API resource name for OS policy assignment report. Format: /projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report
For {project}
, either project-number
or project-id
can be provided. For {instance_id}
, either Compute Engine instance-id
or instance-name
can be provided. For {assignment_id}
, the OSPolicyAssignment id must be provided.
List OS policy assignment reports for all Compute Engine VM instances in the specified zone.
Required. The parent resource name. Format: projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/reports
For {project}
, either project-number
or project-id
can be provided. For {instance}
, either instance-name
, instance-id
, or -
can be provided. If '-' is provided, the response will include OSPolicyAssignmentReports for all instances in the project/location. For {assignment}
, either assignment-id
or -
can be provided. If '-' is provided, the response will include OSPolicyAssignmentReports for all OSPolicyAssignments in the project/location. Either {instance} or {assignment} must be -
. For example: projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/-/reports
returns all reports for the instance projects/{project}/locations/{location}/instances/-/osPolicyAssignments/{assignment-id}/reports
returns all the reports for the given assignment across all instances. projects/{project}/locations/{location}/instances/-/osPolicyAssignments/-/reports
returns all the reports for all assignments across all instances.
Gets the vulnerability report for the specified VM instance. Only VMs with inventory data have vulnerability reports associated with them.
Required. API resource name for vulnerability resource. Format: projects/{project}/locations/{location}/instances/{instance}/vulnerabilityReport
For {project}
, either project-number
or project-id
can be provided. For {instance}
, either Compute Engine instance-id
or instance-name
can be provided.
List vulnerability reports for all VM instances in the specified zone.
Required. The parent resource name. Format: projects/{project}/locations/{location}/instances/-
For {project}
, either project-number
or project-id
can be provided.
Create an OS policy assignment. This method also creates the first revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. For more information, see Method: projects.locations.osPolicyAssignments.operations.cancel.
Required. The parent resource name in the form: projects/{project}/locations/{location}. Note: Specify the zone of your VMs as the location.
Delete the OS policy assignment. This method creates a new revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. If the LRO completes and is not cancelled, all revisions associated with the OS policy assignment are deleted. For more information, see Method: projects.locations.osPolicyAssignments.operations.cancel.
Required. The name of the OS policy assignment to be deleted
Retrieve an existing OS policy assignment. This method always returns the
latest revision. In order to retrieve a previous revision of the
assignment, also provide the revision ID in the name
parameter.
Required. The resource name of OS policy assignment. Format: projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}@{revisionId}
List the OS policy assignments under the parent resource. For each OS policy assignment, the latest revision is returned.
Required. The parent resource name.
List the OS policy assignment revisions for a given OS policy assignment.
Required. The name of the OS policy assignment to list revisions for.
Starts asynchronous cancellation on a long-running operation. The server
makes a best effort to cancel the operation, but success is not guaranteed.
If the server doesn't support this method, it returns
google.rpc.Code.UNIMPLEMENTED
. Clients can use Operations.GetOperation or
other methods to check whether the cancellation succeeded or whether the
operation completed despite cancellation. On successful cancellation, the
operation is not deleted; instead, it becomes an operation with an
Operation.error value with a google.rpc.Status.code of 1, corresponding to
Code.CANCELLED
.
The name of the operation resource to be cancelled.
Update an existing OS policy assignment. This method creates a new revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. For more information, see Method: projects.locations.osPolicyAssignments.operations.cancel.
Resource name. Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id}
This field is ignored when you create an OS policy assignment.
Create an OS Config patch deployment.
Required. The project to apply this patch deployment to in the form projects/*
.
Get a page of OS Config patch deployments.
Required. The resource name of the parent in the form projects/*
.
Update an OS Config patch deployment.
Unique name for the patch deployment resource in a project. The patch deployment name is in the form: projects/{project_id}/patchDeployments/{patch_deployment_id}
. This field is ignored when you create a new patch deployment.
Patch VM instances by creating and running a patch job.
Required. The project in which to run this patch in the form projects/*
Get a list of patch jobs.
Required. In the form of projects/*