assign_variable_set_to_projects
Assign a variable set to multiple projects to make variables available across all workspaces within those projects. Streamlines variable management in Terraform Cloud.
Instructions
Assign a variable set to one or more projects.
Makes the variables in a variable set available to all workspaces within the specified projects.
API endpoint: POST /varsets/{varset_id}/relationships/projects
Args: varset_id: The ID of the variable set (format: "varset-xxxxxxxx") project_ids: List of project IDs (format: ["prj-xxxxxxxx", ...])
Returns: Empty response with HTTP 204 status code if successful
See: docs/tools/variables.md#assign-variable-set-to-projects for reference documentation
Input Schema
Name | Required | Description | Default |
---|---|---|---|
project_ids | Yes | ||
varset_id | Yes |