Skip to main content
Glama

terraform-cloud-mcp

move_workspaces_to_project

Transfer one or more workspaces to a specified project in Terraform Cloud. Requires user permissions for both source and destination projects. Utilizes API endpoint: POST /projects/{project_id}/relationships/workspaces.

Instructions

Move workspaces into a project.

Moves one or more workspaces into a project. The user must have permission to move workspaces on both source and destination projects.

API endpoint: POST /projects/{project_id}/relationships/workspaces

Args: project_id: The ID of the destination project (format: "prj-xxxxxxxx") workspace_ids: List of workspace IDs to move (format: ["ws-xxxxxxxx", ...])

Returns: Empty response with HTTP 204 status code if successful

See: docs/tools/project.md for reference documentation

Input Schema

NameRequiredDescriptionDefault
project_idYes
workspace_idsYes

Input Schema (JSON Schema)

{ "properties": { "project_id": { "title": "Project Id", "type": "string" }, "workspace_ids": { "items": { "type": "string" }, "title": "Workspace Ids", "type": "array" } }, "required": [ "project_id", "workspace_ids" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/severity1/terraform-cloud-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server