> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vantage.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# vantage_workspace (Data Source)

> Terraform data source reference for vantage_workspace (Data Source). Auto-generated from the vantage-sh/terraform-provider-vantage repository.

<Note>
  This page is auto-generated based on the official [Terraform documentation](https://registry.terraform.io/providers/vantage-sh/vantage/latest/docs).
</Note>

## Overview

Use this data source with the [Vantage Terraform provider](/terraform). For installation and authentication, see the [Terraform provider quickstart](/terraform#quickstart). The schema below is generated directly from the provider source.

***

page\_title: "vantage\_workspace Data Source - terraform-provider-vantage"
subcategory: "Workspaces"
description: |-
Looks up a workspace by name.
-----------------------------

# vantage\_workspace (Data Source)

Looks up a workspace by its display name. Searches all workspaces returned by the [Get All Workspaces](https://docs.vantage.sh/api/workspaces/get-all-workspaces) endpoint and returns the first match.

## Example Usage

```terraform theme={null}
data "vantage_workspace" "example" {
  name = "Production"
}

output "workspace_token" {
  value = data.vantage_workspace.example.token
}
```

## Schema

### Required

* `name` (String) The name of the workspace to find.

### Read-Only

* `token` (String) The unique token of the matched workspace.
