Skip to main content

trial

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

Overview

Nametrial
TypeResource
Idgoogle.backupdr.trial

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The resource name of the trial. Format: projects/{project}/locations/{location}/trial
endTimestring (google-datetime)Output only. The time when the trial will expire.
startTimestring (google-datetime)Output only. The time when the trial was subscribed.
statestringOutput only. The state of the trial.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_trialselectprojectsId, locationsIdGets the Trial state for a given project
subscribeexecprojectsId, locationsIdSubscribes to a trial for a project

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
locationsIdstring
projectsIdstring

SELECT examples

Gets the Trial state for a given project

SELECT
name,
endTime,
startTime,
state
FROM google.backupdr.trial
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required;

Lifecycle Methods

Subscribes to a trial for a project

EXEC google.backupdr.trial.subscribe 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required;