List all variables, filter by workspace and organization.
External DocumentationTo learn more, visit the Terraform Cloud documentation.

Parameters

ParameterDescription
OrganizationThe name of the organization that owns the desired workspace.
Workspace NameThe name of one workspace to list variables for.

Example Output

{
	"data": [
		{
			"id": "var-AD4pibb9nxo1468E",
			"type": "vars",
			"attributes": {
				"key": "name",
				"value": "hello",
				"description": "some description",
				"sensitive": false,
				"category": "terraform",
				"hcl": false
			},
			"relationships": {
				"configurable": {
					"data": {
						"id": "ws-cZE9LERN3rGPRAmH",
						"type": "workspaces"
					},
					"links": {
						"related": "/api/v2/organizations/my-organization/workspaces/my-workspace"
					}
				}
			},
			"links": {
				"self": "/api/v2/vars/var-AD4pibb9nxo1468E"
			}
		}
	]
}

Workflow Library Example

List Variables with Terraform Cloud and Send Results Via Email
Workflow LibraryPreview this Workflow on desktop