class ProjectsLocationsInstancesVulnerabilityReports extends Resource (View source)

The "vulnerabilityReports" collection of methods.

Typical usage is:

 $osconfigService = new Google\Service\OSConfig(...);
 $vulnerabilityReports = $osconfigService->projects_locations_instances_vulnerabilityReports;

Methods

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

Gets the vulnerability report for the specified VM instance. Only VMs with inventory data have vulnerability reports associated with them.

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

List vulnerability reports for all VM instances in the specified zone.

Details

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

Gets the vulnerability report for the specified VM instance. Only VMs with inventory data have vulnerability reports associated with them.

(vulnerabilityReports.get)

Parameters

string $name

Required. API resource name for vulnerability resource. Format: projects/{project}/locations/{location}/instances/{instance}/vulnera bilityReport For {project}, either project-number or project-id can be provided. For {instance}, either Compute Engine instance-id or instance- name can be provided.

array $optParams

Optional parameters.

Return Value

VulnerabilityReport

Exceptions

Exception

ListVulnerabilityReportsResponse listProjectsLocationsInstancesVulnerabilityReports(string $parent, array $optParams = [])

List vulnerability reports for all VM instances in the specified zone.

(vulnerabilityReports.listProjectsLocationsInstancesVulnerabilityReports)

Parameters

string $parent

Required. The parent resource name. Format: projects/{project}/locations/{location}/instances/- For {project}, either project-number or project-id can be provided.

array $optParams

Optional parameters.

Return Value

ListVulnerabilityReportsResponse

Exceptions

Exception