Viewing docs for Oracle Cloud Infrastructure v4.3.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.3.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
This data source provides details about a specific Stack resource in Oracle Cloud Infrastructure Resource Manager service.
Gets the specified stack. For more information, see Getting a Stack’s Details.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testStack = oci.ResourceManager.getStack({
stackId: testStackOciResourcemanagerStack.id,
});
import pulumi
import pulumi_oci as oci
test_stack = oci.ResourceManager.get_stack(stack_id=test_stack_oci_resourcemanager_stack["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := resourcemanager.GetStack(ctx, &resourcemanager.GetStackArgs{
StackId: testStackOciResourcemanagerStack.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testStack = Oci.ResourceManager.GetStack.Invoke(new()
{
StackId = testStackOciResourcemanagerStack.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ResourceManager.ResourceManagerFunctions;
import com.pulumi.oci.ResourceManager.inputs.GetStackArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testStack = ResourceManagerFunctions.getStack(GetStackArgs.builder()
.stackId(testStackOciResourcemanagerStack.id())
.build());
}
}
variables:
testStack:
fn::invoke:
function: oci:ResourceManager:getStack
arguments:
stackId: ${testStackOciResourcemanagerStack.id}
Using getStack
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getStack(args: GetStackArgs, opts?: InvokeOptions): Promise<GetStackResult>
function getStackOutput(args: GetStackOutputArgs, opts?: InvokeOptions): Output<GetStackResult>def get_stack(stack_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetStackResult
def get_stack_output(stack_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStackResult]func GetStack(ctx *Context, args *GetStackArgs, opts ...InvokeOption) (*GetStackResult, error)
func GetStackOutput(ctx *Context, args *GetStackOutputArgs, opts ...InvokeOption) GetStackResultOutput> Note: This function is named GetStack in the Go SDK.
public static class GetStack
{
public static Task<GetStackResult> InvokeAsync(GetStackArgs args, InvokeOptions? opts = null)
public static Output<GetStackResult> Invoke(GetStackInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetStackResult> getStack(GetStackArgs args, InvokeOptions options)
public static Output<GetStackResult> getStack(GetStackArgs args, InvokeOptions options)
fn::invoke:
function: oci:ResourceManager/getStack:getStack
arguments:
# arguments dictionaryThe following arguments are supported:
getStack Result
The following output properties are available:
- Compartment
Id string - Unique identifier (OCID) for the compartment where the stack is located.
- Config
Sources List<GetStack Config Source> - Location of the Terraform configuration.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - Description string
- General description of the stack.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Dictionary<string, string>
- Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - Id string
- The provider-assigned unique ID for this managed resource.
- Stack
Id string - State string
- The current lifecycle state of the stack. For more information about stack lifecycle states in Resource Manager, see Key Concepts.
- Dictionary<string, string>
- The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{orcl-cloud: {free-tier-retain: true}} - Terraform
Version string - The version of Terraform specified for the stack. Example:
1.5.x - Time
Created string - The date and time at which the stack was created. Format is defined by RFC3339. Example:
2020-01-25T21:10:29.600Z - Variables Dictionary<string, string>
- Terraform variables associated with this resource. Maximum number of variables supported is 250. The maximum size of each variable, including both name and value, is 8192 bytes. Example:
{"CompartmentId": "compartment-id-value"}
- Compartment
Id string - Unique identifier (OCID) for the compartment where the stack is located.
- Config
Sources []GetStack Config Source - Location of the Terraform configuration.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - Description string
- General description of the stack.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- map[string]string
- Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - Id string
- The provider-assigned unique ID for this managed resource.
- Stack
Id string - State string
- The current lifecycle state of the stack. For more information about stack lifecycle states in Resource Manager, see Key Concepts.
- map[string]string
- The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{orcl-cloud: {free-tier-retain: true}} - Terraform
Version string - The version of Terraform specified for the stack. Example:
1.5.x - Time
Created string - The date and time at which the stack was created. Format is defined by RFC3339. Example:
2020-01-25T21:10:29.600Z - Variables map[string]string
- Terraform variables associated with this resource. Maximum number of variables supported is 250. The maximum size of each variable, including both name and value, is 8192 bytes. Example:
{"CompartmentId": "compartment-id-value"}
- compartment
Id String - Unique identifier (OCID) for the compartment where the stack is located.
- config
Sources List<GetStack Config Source> - Location of the Terraform configuration.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description String
- General description of the stack.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String,String>
- Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id String
- The provider-assigned unique ID for this managed resource.
- stack
Id String - state String
- The current lifecycle state of the stack. For more information about stack lifecycle states in Resource Manager, see Key Concepts.
- Map<String,String>
- The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{orcl-cloud: {free-tier-retain: true}} - terraform
Version String - The version of Terraform specified for the stack. Example:
1.5.x - time
Created String - The date and time at which the stack was created. Format is defined by RFC3339. Example:
2020-01-25T21:10:29.600Z - variables Map<String,String>
- Terraform variables associated with this resource. Maximum number of variables supported is 250. The maximum size of each variable, including both name and value, is 8192 bytes. Example:
{"CompartmentId": "compartment-id-value"}
- compartment
Id string - Unique identifier (OCID) for the compartment where the stack is located.
- config
Sources GetStack Config Source[] - Location of the Terraform configuration.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description string
- General description of the stack.
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[key: string]: string}
- Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id string
- The provider-assigned unique ID for this managed resource.
- stack
Id string - state string
- The current lifecycle state of the stack. For more information about stack lifecycle states in Resource Manager, see Key Concepts.
- {[key: string]: string}
- The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{orcl-cloud: {free-tier-retain: true}} - terraform
Version string - The version of Terraform specified for the stack. Example:
1.5.x - time
Created string - The date and time at which the stack was created. Format is defined by RFC3339. Example:
2020-01-25T21:10:29.600Z - variables {[key: string]: string}
- Terraform variables associated with this resource. Maximum number of variables supported is 250. The maximum size of each variable, including both name and value, is 8192 bytes. Example:
{"CompartmentId": "compartment-id-value"}
- compartment_
id str - Unique identifier (OCID) for the compartment where the stack is located.
- config_
sources Sequence[GetStack Config Source] - Location of the Terraform configuration.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description str
- General description of the stack.
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Mapping[str, str]
- Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id str
- The provider-assigned unique ID for this managed resource.
- stack_
id str - state str
- The current lifecycle state of the stack. For more information about stack lifecycle states in Resource Manager, see Key Concepts.
- Mapping[str, str]
- The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{orcl-cloud: {free-tier-retain: true}} - terraform_
version str - The version of Terraform specified for the stack. Example:
1.5.x - time_
created str - The date and time at which the stack was created. Format is defined by RFC3339. Example:
2020-01-25T21:10:29.600Z - variables Mapping[str, str]
- Terraform variables associated with this resource. Maximum number of variables supported is 250. The maximum size of each variable, including both name and value, is 8192 bytes. Example:
{"CompartmentId": "compartment-id-value"}
- compartment
Id String - Unique identifier (OCID) for the compartment where the stack is located.
- config
Sources List<Property Map> - Location of the Terraform configuration.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description String
- General description of the stack.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String>
- Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id String
- The provider-assigned unique ID for this managed resource.
- stack
Id String - state String
- The current lifecycle state of the stack. For more information about stack lifecycle states in Resource Manager, see Key Concepts.
- Map<String>
- The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{orcl-cloud: {free-tier-retain: true}} - terraform
Version String - The version of Terraform specified for the stack. Example:
1.5.x - time
Created String - The date and time at which the stack was created. Format is defined by RFC3339. Example:
2020-01-25T21:10:29.600Z - variables Map<String>
- Terraform variables associated with this resource. Maximum number of variables supported is 250. The maximum size of each variable, including both name and value, is 8192 bytes. Example:
{"CompartmentId": "compartment-id-value"}
Supporting Types
GetStackConfigSource
- Config
Source stringType - Specifies the
configSourceTypefor uploading the Terraform configuration. Presently, the .zip file type (ZIP_UPLOAD) is the only supportedconfigSourceType. - Working
Directory string - File path to the directory from which Terraform runs. If not specified, we use the root directory.
- Zip
File stringBase64encoded
- Config
Source stringType - Specifies the
configSourceTypefor uploading the Terraform configuration. Presently, the .zip file type (ZIP_UPLOAD) is the only supportedconfigSourceType. - Working
Directory string - File path to the directory from which Terraform runs. If not specified, we use the root directory.
- Zip
File stringBase64encoded
- config
Source StringType - Specifies the
configSourceTypefor uploading the Terraform configuration. Presently, the .zip file type (ZIP_UPLOAD) is the only supportedconfigSourceType. - working
Directory String - File path to the directory from which Terraform runs. If not specified, we use the root directory.
- zip
File StringBase64encoded
- config
Source stringType - Specifies the
configSourceTypefor uploading the Terraform configuration. Presently, the .zip file type (ZIP_UPLOAD) is the only supportedconfigSourceType. - working
Directory string - File path to the directory from which Terraform runs. If not specified, we use the root directory.
- zip
File stringBase64encoded
- config_
source_ strtype - Specifies the
configSourceTypefor uploading the Terraform configuration. Presently, the .zip file type (ZIP_UPLOAD) is the only supportedconfigSourceType. - working_
directory str - File path to the directory from which Terraform runs. If not specified, we use the root directory.
- zip_
file_ strbase64encoded
- config
Source StringType - Specifies the
configSourceTypefor uploading the Terraform configuration. Presently, the .zip file type (ZIP_UPLOAD) is the only supportedconfigSourceType. - working
Directory String - File path to the directory from which Terraform runs. If not specified, we use the root directory.
- zip
File StringBase64encoded
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.3.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
