terraform_versions
Creates, updates, deletes, gets or lists a terraform_versions
resource.
Overview
Name | terraform_versions |
Type | Resource |
Id | google.config.terraform_versions |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The version name is in the format: 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'. |
deprecateTime | string (google-datetime) | Output only. When the version is deprecated. |
obsoleteTime | string (google-datetime) | Output only. When the version is obsolete. |
state | string | Output only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE. |
supportTime | string (google-datetime) | Output only. When the version is supported. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The version name is in the format: 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'. |
deprecateTime | string (google-datetime) | Output only. When the version is deprecated. |
obsoleteTime | string (google-datetime) | Output only. When the version is obsolete. |
state | string | Output only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE. |
supportTime | string (google-datetime) | Output only. When the version is supported. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , terraformVersionsId | Gets details about a TerraformVersion. | |
list | select | projectsId , locationsId | pageSize , pageToken , filter , orderBy | Lists 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.
Name | Datatype | Description |
---|---|---|
locationsId | string | |
projectsId | string | |
terraformVersionsId | string | |
filter | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- get
- list
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;
Lists TerraformVersions in a given project and location.
SELECT
name,
deprecateTime,
obsoleteTime,
state,
supportTime
FROM google.config.terraform_versions
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}';