class ProjectsLocationsInstancesOsPolicyAssignmentsReports extends Resource (View source)

The "reports" collection of methods.

Typical usage is:

 $osconfigService = new Google\Service\OSConfig(...);
 $reports = $osconfigService->projects_locations_instances_osPolicyAssignments_reports;

Methods

get(string $name, array $optParams = [])

Get the OS policy assignment report for the specified Compute Engine VM instance. (reports.get)

listProjectsLocationsInstancesOsPolicyAssignmentsReports(string $parent, array $optParams = [])

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

Details

OSPolicyAssignmentReport get(string $name, array $optParams = [])

Get the OS policy assignment report for the specified Compute Engine VM instance. (reports.get)

Parameters

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.

array $optParams

Optional parameters.

Return Value

OSPolicyAssignmentReport

Exceptions

Exception

ListOSPolicyAssignmentReportsResponse listProjectsLocationsInstancesOsPolicyAssignmentsReports(string $parent, array $optParams = [])

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

(reports.listProjectsLocationsInstancesOsPolicyAssignmentsReports)

Parameters

string $parent

Required. The parent resource name. Format: projects/{ project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assig nment}/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/{locatio n}/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/{locatio n}/instances/-/osPolicyAssignments/-/reports returns all the reports for all assignments across all instances.

array $optParams

Optional parameters.

Return Value

ListOSPolicyAssignmentReportsResponse

Exceptions

Exception