Skip to main content

databases_scans

Creates, updates, deletes, gets or lists a databases_scans resource.

Overview

Namedatabases_scans
TypeResource
Idgoogle.spanner.databases_scans

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringThe unique name of the scan, specific to the Database service implementing this interface.
detailsobjectAdditional information provided by the implementer.
endTimestring (google-datetime)The upper bound for when the scan is defined.
scanDataobjectOutput only. Cloud Key Visualizer scan data. Note, this field is not available to the ListScans method. (id: ScanData)
startTimestring (google-datetime)A range of time (inclusive) for when the scan is defined. The lower bound for when the scan is defined.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_instances_databases_get_scansselectprojectsId, instancesId, databasesIdview, startTime, endTimeRequest a specific scan with Database-specific data for Cloud Key Visualizer.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
databasesIdstring
instancesIdstring
projectsIdstring
endTimestring (google-datetime)
startTimestring (google-datetime)
viewstring

SELECT examples

Request a specific scan with Database-specific data for Cloud Key Visualizer.

SELECT
name,
details,
endTime,
scanData,
startTime
FROM google.spanner.databases_scans
WHERE projectsId = '{{ projectsId }}' -- required
AND instancesId = '{{ instancesId }}' -- required
AND databasesId = '{{ databasesId }}' -- required
AND view = '{{ view }}'
AND startTime = '{{ startTime }}'
AND endTime = '{{ endTime }}';