Skip to main content

terraform_versions

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

Overview

Nameterraform_versions
TypeResource
Idgoogle.config.terraform_versions

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The version name is in the format: 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'.
deprecateTimestring (google-datetime)Output only. When the version is deprecated.
obsoleteTimestring (google-datetime)Output only. When the version is obsolete.
statestringOutput only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE.
supportTimestring (google-datetime)Output only. When the version is supported.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, terraformVersionsIdGets details about a TerraformVersion.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists TerraformVersions in a given project and location.

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
terraformVersionsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets details about a TerraformVersion.

SELECT
name,
deprecateTime,
obsoleteTime,
state,
supportTime
FROM google.config.terraform_versions
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND terraformVersionsId = '{{ terraformVersionsId }}' -- required;