1. Registry
  2. Packages
  3. Vantage Provider
  4. API Docs
  5. getWorkspace
Viewing docs for vantage 0.3.19
published on Thursday, Sep 10, 2026 by vantage-sh
Viewing docs for vantage 0.3.19
published on Thursday, Sep 10, 2026 by vantage-sh

    Looks up a workspace by name and returns its token.

    Using getWorkspace

    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 getWorkspace(args: GetWorkspaceArgs, opts?: InvokeOptions): Promise<GetWorkspaceResult>
    function getWorkspaceOutput(args: GetWorkspaceOutputArgs, opts?: InvokeOutputOptions): Output<GetWorkspaceResult>
    def get_workspace(name: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetWorkspaceResult
    def get_workspace_output(name: pulumi.Input[Optional[str]] = None,
                      opts: Optional[InvokeOutputOptions] = None) -> Output[GetWorkspaceResult]
    func LookupWorkspace(ctx *Context, args *LookupWorkspaceArgs, opts ...InvokeOption) (*LookupWorkspaceResult, error)
    func LookupWorkspaceOutput(ctx *Context, args *LookupWorkspaceOutputArgs, opts ...InvokeOption) LookupWorkspaceResultOutput

    > Note: This function is named LookupWorkspace in the Go SDK.

    public static class GetWorkspace 
    {
        public static Task<GetWorkspaceResult> InvokeAsync(GetWorkspaceArgs args, InvokeOptions? opts = null)
        public static Output<GetWorkspaceResult> Invoke(GetWorkspaceInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetWorkspaceResult> Invoke(GetWorkspaceInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetWorkspaceResult> getWorkspace(GetWorkspaceArgs args, InvokeOptions options)
    public static Output<GetWorkspaceResult> getWorkspace(GetWorkspaceArgs args, InvokeOptions options)
    public static Output<GetWorkspaceResult> getWorkspace(GetWorkspaceArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: vantage:index/getWorkspace:getWorkspace
      arguments:
        # arguments dictionary
    data "vantage_get_workspace" "name" {
        # arguments
    }

    The following arguments are supported:

    Name string
    The name of the workspace to find.
    Name string
    The name of the workspace to find.
    name string
    The name of the workspace to find.
    name String
    The name of the workspace to find.
    name string
    The name of the workspace to find.
    name str
    The name of the workspace to find.
    name String
    The name of the workspace to find.

    getWorkspace Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the workspace to find.
    Token string
    The unique token of the matched workspace.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the workspace to find.
    Token string
    The unique token of the matched workspace.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the workspace to find.
    token string
    The unique token of the matched workspace.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the workspace to find.
    token String
    The unique token of the matched workspace.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the workspace to find.
    token string
    The unique token of the matched workspace.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the workspace to find.
    token str
    The unique token of the matched workspace.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the workspace to find.
    token String
    The unique token of the matched workspace.

    Package Details

    Repository
    vantage vantage-sh/terraform-provider-vantage
    License
    Notes
    This Pulumi package is based on the vantage Terraform Provider.
    Viewing docs for vantage 0.3.19
    published on Thursday, Sep 10, 2026 by vantage-sh

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial