Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.InstancesResource.OsPolicyAssignmentsResource.ReportsResource

The "reports" collection of methods.

Inheritance
object
ProjectsResource.LocationsResource.InstancesResource.OsPolicyAssignmentsResource.ReportsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.OSConfig.v1
Assembly: Google.Apis.OSConfig.v1.dll
Syntax
public class ProjectsResource.LocationsResource.InstancesResource.OsPolicyAssignmentsResource.ReportsResource

Constructors

ReportsResource(IClientService)

Constructs a new resource.

Declaration
public ReportsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Get(string)

Get the OS policy assignment report for the specified Compute Engine VM instance.

Declaration
public virtual ProjectsResource.LocationsResource.InstancesResource.OsPolicyAssignmentsResource.ReportsResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

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.

Returns
Type Description
ProjectsResource.LocationsResource.InstancesResource.OsPolicyAssignmentsResource.ReportsResource.GetRequest

List(string)

List OS policy assignment reports for all Compute Engine VM instances in the specified zone.

Declaration
public virtual ProjectsResource.LocationsResource.InstancesResource.OsPolicyAssignmentsResource.ReportsResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

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.

Returns
Type Description
ProjectsResource.LocationsResource.InstancesResource.OsPolicyAssignmentsResource.ReportsResource.ListRequest
In this article
Back to top Generated by DocFX