Reference documentation and code samples for the Google Cloud OsConfig V1 Client class ListVulnerabilityReportsRequest.
A request message for listing vulnerability reports for all VM instances in
the specified location.
Generated from protobuf messagegoogle.cloud.osconfig.v1.ListVulnerabilityReportsRequest
Namespace
Google \ Cloud \ OsConfig \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The parent resource name. Format:projects/{project}/locations/{location}/instances/-For{project}, eitherproject-numberorproject-idcan be provided.
↳ page_size
int
The maximum number of results to return.
↳ page_token
string
A pagination token returned from a previous call toListVulnerabilityReportsthat indicates where this listing should continue from.
↳ filter
string
This field supports filtering by the severity level for the vulnerability. For a list of severity levels, seeSeverity levels for vulnerabilities. The filter field follows the rules described in theAIP-160guidelines as follows: +Filter for a specific severity type: you can list reports that contain vulnerabilities that are classified as medium by specifyingvulnerabilities.details.severity:MEDIUM. +Filter for a range of severities: you can list reports that have vulnerabilities that are classified as critical or high by specifyingvulnerabilities.details.severity:HIGH OR vulnerabilities.details.severity:CRITICAL
getParent
Required. The parent resource name.
Format:projects/{project}/locations/{location}/instances/-For{project}, eitherproject-numberorproject-idcan be provided.
Returns
Type
Description
string
setParent
Required. The parent resource name.
Format:projects/{project}/locations/{location}/instances/-For{project}, eitherproject-numberorproject-idcan be provided.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPageSize
The maximum number of results to return.
Returns
Type
Description
int
setPageSize
The maximum number of results to return.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getPageToken
A pagination token returned from a previous call toListVulnerabilityReportsthat indicates where this listing
should continue from.
Returns
Type
Description
string
setPageToken
A pagination token returned from a previous call toListVulnerabilityReportsthat indicates where this listing
should continue from.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getFilter
This field supports filtering by the severity level for the vulnerability.
Filter for a specific severity type: you can list reports that
contain
vulnerabilities that are classified as medium by specifyingvulnerabilities.details.severity:MEDIUM.
Filter for a range of severities: you can list reports that have
vulnerabilities that are classified as critical or high by specifyingvulnerabilities.details.severity:HIGH OR
vulnerabilities.details.severity:CRITICAL
Returns
Type
Description
string
setFilter
This field supports filtering by the severity level for the vulnerability.
Filter for a specific severity type: you can list reports that
contain
vulnerabilities that are classified as medium by specifyingvulnerabilities.details.severity:MEDIUM.
Filter for a range of severities: you can list reports that have
vulnerabilities that are classified as critical or high by specifyingvulnerabilities.details.severity:HIGH OR
vulnerabilities.details.severity:CRITICAL
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud OsConfig V1 Client - Class ListVulnerabilityReportsRequest (2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/php/docs/reference/cloud-osconfig/latest/V1.ListVulnerabilityReportsRequest)\n- [2.0.5](/php/docs/reference/cloud-osconfig/2.0.5/V1.ListVulnerabilityReportsRequest)\n- [1.3.5](/php/docs/reference/cloud-osconfig/1.3.5/V1.ListVulnerabilityReportsRequest)\n- [1.2.2](/php/docs/reference/cloud-osconfig/1.2.2/V1.ListVulnerabilityReportsRequest)\n- [1.1.1](/php/docs/reference/cloud-osconfig/1.1.1/V1.ListVulnerabilityReportsRequest)\n- [1.0.5](/php/docs/reference/cloud-osconfig/1.0.5/V1.ListVulnerabilityReportsRequest) \nReference documentation and code samples for the Google Cloud OsConfig V1 Client class ListVulnerabilityReportsRequest.\n\nA request message for listing vulnerability reports for all VM instances in\nthe specified location.\n\nGenerated from protobuf message `google.cloud.osconfig.v1.ListVulnerabilityReportsRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ OsConfig \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The parent resource name.\n\nFormat: `projects/{project}/locations/{location}/instances/-`\nFor `{project}`, either `project-number` or `project-id` can be provided.\n\n### setParent\n\nRequired. The parent resource name.\n\nFormat: `projects/{project}/locations/{location}/instances/-`\nFor `{project}`, either `project-number` or `project-id` can be provided.\n\n### getPageSize\n\nThe maximum number of results to return.\n\n### setPageSize\n\nThe maximum number of results to return.\n\n### getPageToken\n\nA pagination token returned from a previous call to\n`ListVulnerabilityReports` that indicates where this listing\nshould continue from.\n\n### setPageToken\n\nA pagination token returned from a previous call to\n`ListVulnerabilityReports` that indicates where this listing\nshould continue from.\n\n### getFilter\n\nThis field supports filtering by the severity level for the vulnerability.\n\nFor a list of severity levels, see [Severity levels for\nvulnerabilities](https://cloud.google.com/container-analysis/docs/container-scanning-overview#severity_levels_for_vulnerabilities).\nThe filter field follows the rules described in the\n[AIP-160](https://google.aip.dev/160) guidelines as follows:\n\n- **Filter for a specific severity type** : you can list reports that contain vulnerabilities that are classified as medium by specifying `vulnerabilities.details.severity:MEDIUM`.\n- **Filter for a range of severities** : you can list reports that have vulnerabilities that are classified as critical or high by specifying `vulnerabilities.details.severity:HIGH OR\n vulnerabilities.details.severity:CRITICAL`\n\n### setFilter\n\nThis field supports filtering by the severity level for the vulnerability.\n\nFor a list of severity levels, see [Severity levels for\nvulnerabilities](https://cloud.google.com/container-analysis/docs/container-scanning-overview#severity_levels_for_vulnerabilities).\nThe filter field follows the rules described in the\n[AIP-160](https://google.aip.dev/160) guidelines as follows:\n\n- **Filter for a specific severity type** : you can list reports that contain vulnerabilities that are classified as medium by specifying `vulnerabilities.details.severity:MEDIUM`.\n- **Filter for a range of severities** : you can list reports that have vulnerabilities that are classified as critical or high by specifying `vulnerabilities.details.severity:HIGH OR\n vulnerabilities.details.severity:CRITICAL`\n\n### static::build"]]