stack_tf_states
Creates, updates, deletes, gets or lists a stack_tf_states resource.
Overview​
| Name | stack_tf_states |
| Type | Resource |
| Id | oci.resource_manager.stack_tf_states |
Fields​
The following fields are returned by SELECT queries:
- get
A Terraform state.
| Name | Datatype | Description |
|---|
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | stackId, region | opc-request-id | Returns the Terraform state for the specified stack.<br />For more information, see<br />[Getting a Stack State File](/iaas/Content/ResourceManager/Tasks/get-stack-tf-state.htm).<br /> |
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 |
|---|---|---|
region | string | OCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION) |
stackId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the stack. |
opc-request-id | string | Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. |
SELECT examples​
- get
Returns the Terraform state for the specified stack.<br />For more information, see<br />[Getting a Stack State File](/iaas/Content/ResourceManager/Tasks/get-stack-tf-state.htm).<br />
SELECT
*
FROM oci.resource_manager.stack_tf_states
WHERE stackId = '{{ stackId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;