Method: projects.scanConfigs.scanRuns.list

Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time.

HTTP request

GET https://websecurityscanner.googleapis.com/v1alpha/{parent=projects/*/scanConfigs/*}/scanRuns

The URL uses Google API HTTP annotation syntax.

Path parameters

Parameters
parent

string

Required. The parent resource name, which should be a scan resource name in the format 'projects/{projectId}/scanConfigs/{scanConfigId}'.

Authorization requires the following Google IAM permission on the specified resource parent:

  • cloudsecurityscanner.scanruns.list

Query parameters

Parameters
pageToken

string

A token identifying a page of results to be returned. This should be a nextPageToken value returned from a previous List request. If unspecified, the first page of results is returned.

pageSize

number

The maximum number of ScanRuns to return, can be limited by server. If not specified or not positive, the implementation will select a reasonable value.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

Response for the scanRuns.list method.

JSON representation
{
  "scanRuns": [
    {
      object(ScanRun)
    }
  ],
  "nextPageToken": string
}
Fields
scanRuns[]

object(ScanRun)

The list of ScanRuns returned.

nextPageToken

string

Token to retrieve the next page of results, or empty if there are no more results in the list.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Auth Guide.

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Security Scanner