Workspaces

A Workspace is a lightweight way to organize related resources inside a single Files.com Site.

Customers commonly group resources by project, department, client, or region. Workspaces provide a built-in structure for that grouping, so the UI can operate within a clear “workspace context” and admins can delegate management for a subset of resources without requiring full site-level isolation.

Every Site has an implicit Default workspace (ID 0). Resources that are not explicitly assigned to a named workspace are considered part of the Default workspace.

Use the Workspaces guide for request scoping and delegated administration.

Resource Schema

Optional

PropertyDescription
name
String
Workspace name

Read Only

PropertyDescription
id
Int64
Workspace ID

Example Resource

resource "files_workspace" "example_workspace" {
  name = "Project Alpha"
}

Resource Import

This Resource supports importing using the following syntax:

Example Import Command

# Workspaces can be imported by specifying the id.
terraform import files_workspace.example_workspace 1

Data Source Schema

Required

PropertyDescription
id
Int64
Workspace ID

Read Only

PropertyDescription
name
String
Workspace name

Example Data Source

data "files_workspace" "example_workspace" {
  id = 1
}