Viewing docs for Pulumi Cloud v1.7.0
published on Tuesday, Nov 3, 2026 by Pulumi
published on Tuesday, Nov 3, 2026 by Pulumi
Viewing docs for Pulumi Cloud v1.7.0
published on Tuesday, Nov 3, 2026 by Pulumi
published on Tuesday, Nov 3, 2026 by Pulumi
Looks up an existing stack in Pulumi Cloud. Use its stackId to scope role permissions to the stack with an id entity rule in buildRolePermissions.
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?: InvokeOutputOptions): Output<GetStackResult>def get_stack(organization_name: Optional[str] = None,
project_name: Optional[str] = None,
stack_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetStackResult
def get_stack_output(organization_name: pulumi.Input[Optional[str]] = None,
project_name: pulumi.Input[Optional[str]] = None,
stack_name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetStackResult]func LookupStack(ctx *Context, args *LookupStackArgs, opts ...InvokeOption) (*LookupStackResult, error)
func LookupStackOutput(ctx *Context, args *LookupStackOutputArgs, opts ...InvokeOption) LookupStackResultOutput> Note: This function is named LookupStack 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 Output<GetStackResult> Invoke(GetStackInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetStackResult> getStack(GetStackArgs args, InvokeOptions options)
public static Output<GetStackResult> getStack(GetStackArgs args, InvokeOptions options)
public static Output<GetStackResult> getStack(GetStackArgs args, InvokeOutputOptions options)
fn::invoke:
function: pulumiservice:getStack
arguments:
# arguments dictionarydata "pulumiservice_get_stack" "name" {
# arguments
}The following arguments are supported:
- Organization
Name string - The Pulumi Cloud organization name.
- Project
Name string - The project name.
- Stack
Name string - The stack name.
- Organization
Name string - The Pulumi Cloud organization name.
- Project
Name string - The project name.
- Stack
Name string - The stack name.
- organization_
name string - The Pulumi Cloud organization name.
- project_
name string - The project name.
- stack_
name string - The stack name.
- organization
Name String - The Pulumi Cloud organization name.
- project
Name String - The project name.
- stack
Name String - The stack name.
- organization
Name string - The Pulumi Cloud organization name.
- project
Name string - The project name.
- stack
Name string - The stack name.
- organization_
name str - The Pulumi Cloud organization name.
- project_
name str - The project name.
- stack_
name str - The stack name.
- organization
Name String - The Pulumi Cloud organization name.
- project
Name String - The project name.
- stack
Name String - The stack name.
getStack Result
The following output properties are available:
- Organization
Name string - The Pulumi Cloud organization name.
- Project
Name string - The project name.
- Stack
Id string - The stack's unique Pulumi Cloud identifier, which is distinct from the
organization/project/stackname. - Stack
Name string - The stack name.
- Dictionary<string, string>
- The stack's tags.
- Organization
Name string - The Pulumi Cloud organization name.
- Project
Name string - The project name.
- Stack
Id string - The stack's unique Pulumi Cloud identifier, which is distinct from the
organization/project/stackname. - Stack
Name string - The stack name.
- map[string]string
- The stack's tags.
- organization_
name string - The Pulumi Cloud organization name.
- project_
name string - The project name.
- stack_
id string - The stack's unique Pulumi Cloud identifier, which is distinct from the
organization/project/stackname. - stack_
name string - The stack name.
- map(string)
- The stack's tags.
- organization
Name String - The Pulumi Cloud organization name.
- project
Name String - The project name.
- stack
Id String - The stack's unique Pulumi Cloud identifier, which is distinct from the
organization/project/stackname. - stack
Name String - The stack name.
- Map<String,String>
- The stack's tags.
- organization
Name string - The Pulumi Cloud organization name.
- project
Name string - The project name.
- stack
Id string - The stack's unique Pulumi Cloud identifier, which is distinct from the
organization/project/stackname. - stack
Name string - The stack name.
- {[key: string]: string}
- The stack's tags.
- organization_
name str - The Pulumi Cloud organization name.
- project_
name str - The project name.
- stack_
id str - The stack's unique Pulumi Cloud identifier, which is distinct from the
organization/project/stackname. - stack_
name str - The stack name.
- Mapping[str, str]
- The stack's tags.
- organization
Name String - The Pulumi Cloud organization name.
- project
Name String - The project name.
- stack
Id String - The stack's unique Pulumi Cloud identifier, which is distinct from the
organization/project/stackname. - stack
Name String - The stack name.
- Map<String>
- The stack's tags.
Package Details
- Repository
- pulumiservice pulumi/pulumi-pulumiservice
- License
- Apache-2.0
Viewing docs for Pulumi Cloud v1.7.0
published on Tuesday, Nov 3, 2026 by Pulumi
published on Tuesday, Nov 3, 2026 by Pulumi