trial
Creates, updates, deletes, gets or lists a trial resource.
Overview
| Name | trial |
| Type | Resource |
| Id | google.backupdr.trial |
Fields
The following fields are returned by SELECT queries:
- get_trial
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. The resource name of the trial. Format: projects/{project}/locations/{location}/trial |
endReason | string | Output only. The reason for ending the trial. |
endTime | string (google-datetime) | Output only. The time when the trial will expire. |
startTime | string (google-datetime) | Output only. The time when the trial was subscribed. |
state | string | Output only. The state of the trial. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_trial | select | projectsId, locationsId | Gets the Trial state for a given project | |
subscribe | exec | projectsId, locationsId | Subscribes to a trial for a project | |
end | exec | projectsId, locationsId | Ends the 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.
| Name | Datatype | Description |
|---|---|---|
locationsId | string | |
projectsId | string |
SELECT examples
- get_trial
Gets the Trial state for a given project
SELECT
name,
endReason,
endTime,
startTime,
state
FROM google.backupdr.trial
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
;
Lifecycle Methods
- subscribe
- end
Subscribes to a trial for a project
EXEC google.backupdr.trial.subscribe
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
;
Ends the trial for a project
EXEC google.backupdr.trial.end
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"endReason": "{{ endReason }}"
}'
;