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 message google.cloud.osconfig.v1.ListVulnerabilityReportsRequest
Namespace
Google \ Cloud \ OsConfig \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The parent resource name. Format: projects/{project}/locations/{location}/instances/-
For {project}
, either project-number
or project-id
can be provided.
↳ page_size
int
The maximum number of results to return.
↳ page_token
string
A pagination token returned from a previous call to ListVulnerabilityReports
that 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, see Severity levels for vulnerabilities
. The filter field follows the rules described in the AIP-160
guidelines as follows: + Filter for a specific severity type: you can list reports that contain vulnerabilities that are classified as medium by specifying vulnerabilities.details.severity:MEDIUM
. + 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 vulnerabilities.details.severity:CRITICAL
getParent
Required. The parent resource name.
Format: projects/{project}/locations/{location}/instances/-
For {project}
, either project-number
or project-id
can be provided.
string
setParent
Required. The parent resource name.
Format: projects/{project}/locations/{location}/instances/-
For {project}
, either project-number
or project-id
can be provided.
var
string
$this
getPageSize
The maximum number of results to return.
int
setPageSize
The maximum number of results to return.
var
int
$this
getPageToken
A pagination token returned from a previous call to ListVulnerabilityReports
that indicates where this listing
should continue from.
string
setPageToken
A pagination token returned from a previous call to ListVulnerabilityReports
that indicates where this listing
should continue from.
var
string
$this
getFilter
This field supports filtering by the severity level for the vulnerability.
For a list of severity levels, see Severity levels for vulnerabilities . The filter field follows the rules described in the AIP-160 guidelines as follows:
- Filter for a specific severity type: you can list reports that
contain
vulnerabilities that are classified as medium by specifying
vulnerabilities.details.severity:MEDIUM. - 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 vulnerabilities.details.severity:CRITICAL
string
setFilter
This field supports filtering by the severity level for the vulnerability.
For a list of severity levels, see Severity levels for vulnerabilities . The filter field follows the rules described in the AIP-160 guidelines as follows:
- Filter for a specific severity type: you can list reports that
contain
vulnerabilities that are classified as medium by specifying
vulnerabilities.details.severity:MEDIUM. - 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 vulnerabilities.details.severity:CRITICAL
var
string
$this
static::build
parent
string
Required. The parent resource name.
Format: projects/{project}/locations/{location}/instances/-
For {project}
, either project-number
or project-id
can be provided. Please see OsConfigZonalServiceClient::instanceName()
for help formatting this field.

