Skip to main content
Version: 0.6.x (Current)

Types

All object types, interfaces, and enums in the TFGQL schema.

Object Types

Interfaces

Enums


AdminUser

Represents a user managed through the Terraform Enterprise admin APIs.

FieldTypeDescription
idID!The user's unique identifier.
usernameString!The user's login name.
emailStringThe user's email address.
avatarUrlStringURL to the user's Gravatar profile image.
isServiceAccountBoolean!Whether this is a synthetic service account rather than a human user.
isAdminBoolean!Whether the user has site administrator privileges.
isSuspendedBoolean!Whether the user account is currently suspended.
organizations[Organization!]!Organizations this user belongs to.
teams(includeOrgs: [String!], excludeOrgs: [String!], filter: TeamFilter)[Team!]!Teams the user belongs to across organizations.

Agent

A Terraform Cloud agent that executes runs on isolated, private, or on-premises infrastructure. Agents connect to HCP Terraform and are organized into agent pools.

FieldTypeDescription
idID!The agent's unique identifier.
nameStringThe agent's display name.
statusString!Current state of the agent: 'idle', 'busy', 'unknown', 'exited', or 'errored'.
ipAddressString!The agent's IP address.
lastPingAtDateTime!Timestamp of the most recent communication from the agent.

AgentPool

A group of agents, often sharing a common network segment or purpose. Workspaces can be configured to use an agent pool for remote operations with isolated infrastructure.

FieldTypeDescription
idID!The agent pool's unique identifier.
typeString!The resource type identifier.
nameString!The agent pool name. Must be unique per organization.
createdAtDateTime!Timestamp when the agent pool was created.
organizationScopedBoolean!When true, all workspaces in the organization can use this agent pool.
organizationNameStringThe name of the organization this agent pool belongs to.
agentCountInt!Number of agents in idle, busy, or unknown states.
workspaces(filter: WorkspaceFilter)[Workspace!]!Workspaces currently configured to use this agent pool.
allowedWorkspaces(filter: WorkspaceFilter)[Workspace!]!Workspaces explicitly allowed to use this agent pool.
agents(filter: AgentFilter)[Agent!]!Agents registered in this pool.
authenticationTokens(filter: AgentTokenFilter)[AgentToken!]!Authentication tokens used by agents to connect to this pool.

AgentToken

An authentication token used by agents to register with an agent pool.

FieldTypeDescription
idID!The agent token's unique identifier.
poolIdStringThe ID of the agent pool this token belongs to.
createdAtDateTime!Timestamp when the token was created.
lastUsedAtDateTimeTimestamp when the token was last used, or null if never used.
descriptionString!A text label describing the token's purpose.
createdByIdID!The ID of the user who created this token.

Apply

Represents the results of applying a Terraform run's execution plan. Contains resource change counts, status, and log output.

FieldTypeDescription
idID!The apply's unique identifier.
modeStringExecution mode: 'remote' or 'agent'.
statusString!Current state of the apply (e.g., pending, queued, running, finished, errored, canceled).
queuedAtDateTimeTimestamp when the apply was queued.
startedAtDateTimeTimestamp when apply execution began.
finishedAtDateTimeTimestamp when apply execution completed.
logReadUrlString!Temporary authenticated URL for streaming apply log output.
applyLog(minimumLevel: LogLevel)[JSON!]Structured apply log output, filtered by minimum log level.
structuredRunOutputEnabledBoolean!Whether structured (JSON) run output is enabled.
resourceAdditionsIntCount of resources that were created.
resourceChangesIntCount of resources that were modified.
resourceDestructionsIntCount of resources that were removed.
resourceImportsIntCount of resources that were imported.
stateVersions(filter: StateVersionFilter)[StateVersion!]!State versions produced by this apply.

AssessmentResult

The result of a health assessment for a workspace, including drift detection and continuous validation status.

FieldTypeDescription
idID!The assessment result's unique identifier.
driftedBoolean!Whether infrastructure drift was detected during the health assessment.
succeededBoolean!Whether the assessment execution completed successfully.
errorMessageStringError details if the assessment failed, or null if no errors occurred.
createdAtDateTime!Timestamp when the assessment was performed.

Comment

A comment left on a Terraform run. Comments appear in the run timeline and can be used for review discussions.

FieldTypeDescription
idID!The comment's unique identifier.
bodyString!The text content of the comment.
runEventIdIDThe ID of the run event this comment is associated with.

ConfigurationVersion

A snapshot of Terraform configuration files uploaded to a workspace. Each run is associated with a configuration version that provides the code to plan and apply.

FieldTypeDescription
idID!The configuration version's unique identifier.
autoQueueRunsBoolean!When true, runs are queued automatically upon upload.
errorStringError code if the configuration version failed processing.
errorMessageStringHuman-readable error message if the configuration version failed processing.
provisionalBoolean!When true, this configuration version does not immediately become the workspace's current version.
sourceStringThe origin of the configuration (e.g., 'tfe-api', 'gitlab', 'github').
speculativeBoolean!When true, this configuration version can only create speculative (plan-only) runs.
statusString!Current processing state (pending, fetching, uploaded, archived, errored).
statusTimestampsConfigurationVersionStatusTimestampsTimestamps for each status transition.
changedFiles[String!]!List of files that changed in this configuration version.
ingressAttributesIngressAttributesVCS commit metadata for VCS-sourced configurations.
sizeIntThe size of the configuration archive in bytes.
downloadUrlStringURL to download the configuration archive.

ConfigurationVersionStatusTimestamps

Timestamps recording when a configuration version transitioned between processing states.

FieldTypeDescription
archivedAtDateTimeTimestamp when the configuration version was archived.
fetchingAtDateTimeTimestamp when HCP Terraform began fetching files from VCS.
uploadedAtDateTimeTimestamp when the configuration was fully uploaded and processed.

ExplorerModuleRow

A row from the Explorer API grouping workspaces by Terraform module.

FieldTypeDescription
nameStringThe module's display name.
sourceStringThe module's source location.
versionStringThe semantic version string for this module.
workspaceCountIntNumber of workspaces using this module version.
workspacesStringComma-separated list of workspace names using this module version.
organizationOrganizationThe resolved Organization entity.
workspaceEntities(filter: WorkspaceFilter)[Workspace!]!Resolved Workspace entities using this module, with optional filtering.

ExplorerProviderRow

A row from the Explorer API grouping workspaces by Terraform provider.

FieldTypeDescription
nameStringThe provider's display name.
sourceStringThe provider's source address.
versionStringThe semantic version string for this provider.
workspaceCountIntNumber of workspaces using this provider.
workspacesStringComma-separated list of workspace names using this provider.
organizationOrganizationThe resolved Organization entity.
workspaceEntities(filter: WorkspaceFilter)[Workspace!]!Resolved Workspace entities using this provider, with optional filtering.

ExplorerTerraformVersionRow

A row from the Explorer API grouping workspaces by Terraform version.

FieldTypeDescription
versionStringThe semantic version string for this Terraform version.
workspaceCountIntNumber of workspaces using this Terraform version.
workspacesStringComma-separated list of workspace names using this version.
organizationOrganizationThe resolved Organization entity.
workspaceEntities(filter: WorkspaceFilter)[Workspace!]!Resolved Workspace entities using this Terraform version, with optional filtering.

ExplorerWorkspaceRow

A denormalized row from the HCP Terraform Explorer API representing a workspace with inline metadata about its current run, drift status, checks, providers, and modules.

FieldTypeDescription
allChecksSucceededBooleanTrue if all health checks have succeeded for the workspace.
currentRumCountIntCount of managed resources (Resources Under Management) in the workspace.
checksErroredIntNumber of health checks that errored without completing.
checksFailedIntNumber of health checks that completed but did not pass.
checksPassedIntNumber of health checks that passed.
checksUnknownIntNumber of health checks that could not be assessed.
currentRunAppliedAtDateTimeTimestamp when the workspace's current run was applied.
currentRunExternalIdStringThe external identifier of the workspace's current run.
currentRunStatusStringThe execution status of the workspace's current run.
driftedBooleanTrue if infrastructure drift has been detected for the workspace.
externalIdStringThe workspace's external identifier.
moduleCountIntNumber of distinct Terraform modules used in the workspace.
modulesStringComma-separated list of modules used by this workspace.
organizationNameStringThe name of the workspace's parent organization.
projectExternalIdStringThe external identifier of the workspace's project.
projectNameStringThe display name of the workspace's project.
providerCountIntNumber of distinct Terraform providers used in the workspace.
providersStringComma-separated list of providers used in this workspace.
resourcesDriftedIntNumber of resources with detected drift.
resourcesUndriftedIntNumber of resources without drift.
stateVersionTerraformVersionStringThe Terraform version used to create the current state.
tagsStringComma-separated list of tags applied to the workspace.
vcsRepoIdentifierStringThe VCS repository identifier, if the workspace is VCS-connected.
workspaceCreatedAtDateTimeTimestamp when the workspace was created.
workspaceNameStringThe workspace's display name.
workspaceTerraformVersionStringThe Terraform version configured for the workspace.
workspaceUpdatedAtDateTimeTimestamp when the workspace was last modified.
workspaceWorkspaceThe resolved Workspace entity for this row.
projectProjectThe resolved Project entity for this row.
currentRunRunThe resolved Run entity for the current run.
organizationOrganizationThe resolved Organization entity for this row.

IngressAttributes

Commit metadata for VCS-based configuration versions.

FieldTypeDescription
idID!The ingress attributes' unique identifier.
branchStringThe VCS branch the configuration was sourced from.
cloneUrlStringThe URL used to clone the VCS repository.
commitMessageStringThe commit message from the VCS commit.
commitShaStringThe SHA hash of the VCS commit.
commitUrlStringA URL linking to the VCS commit.
compareUrlStringA URL linking to the VCS comparison/diff view.
identifierStringThe VCS repository identifier in :org/:repo format.
isPullRequestBooleanWhether this configuration was triggered by a pull request.
onDefaultBranchBooleanWhether the commit is on the repository's default branch.
pullRequestNumberIntThe pull request number, if triggered by a PR.
pullRequestUrlStringA URL linking to the pull request, if triggered by a PR.
pullRequestTitleStringThe title of the pull request, if triggered by a PR.
pullRequestBodyStringThe body/description of the pull request, if triggered by a PR.
tagStringThe VCS tag that triggered this configuration, if applicable.
senderUsernameStringThe VCS username of the person who triggered the configuration.
senderAvatarUrlStringThe avatar URL of the person who triggered the configuration.
senderHtmlUrlStringThe profile URL of the person who triggered the configuration.
createdByStringThe username or system that created this configuration version.

Organization

A shared space for teams to collaborate on workspaces in HCP Terraform. Organizations manage access, settings, and billing.

FieldTypeDescription
idID!The organization's unique identifier.
nameString!The organization name.
externalIdString!External identifier for the organization.
emailString!Admin notification email address for the organization.
createdAtDateTime!Timestamp when the organization was created.
sessionTimeoutIntSession timeout after inactivity, in minutes.
sessionRememberIntSession expiration duration, in minutes.
collaboratorAuthPolicyString!Authentication policy for the organization. Either 'password' or 'two_factor_mandatory'.
planExpiredBoolean!Whether the current subscription plan has expired.
planExpiresAtDateTimeTimestamp when the subscription plan expires.
planIsTrialBooleanWhether the organization is on a trial plan.
planIsEnterpriseBooleanWhether the organization is on an enterprise plan.
planIdentifierStringThe identifier of the current subscription plan tier.
costEstimationEnabledBoolean!Whether cost estimation is available for the organization.
sendPassingStatusesForUntriggeredSpeculativePlansBoolean!Whether VCS status updates are sent for untriggered speculative plans.
aggregatedCommitStatusEnabledBoolean!Whether to aggregate VCS commit statuses for triggered workspaces.
speculativePlanManagementEnabledBoolean!Whether automatic cancellation of plan-only runs is enabled.
allowForceDeleteWorkspacesBoolean!Whether workspace admins can delete workspaces that still have managed resources.
fairRunQueuingEnabledBoolean!Whether fair run queue scheduling is enabled.
samlEnabledBoolean!Whether SAML single sign-on is enabled for the organization.
ownersTeamSamlRoleIdStringThe SAML role ID mapped to the owners team.
twoFactorConformantBoolean!Whether the organization complies with two-factor authentication requirements.
assessmentsEnforcedBoolean!Whether health assessments are enforced for all eligible workspaces.
defaultExecutionModeString!Default execution mode for new workspaces: 'remote', 'local', or 'agent'.
permissionsOrganizationPermissions!Permissions the current user has on this organization.
workspaces(filter: WorkspaceFilter)[Workspace!]Workspaces belonging to this organization, with optional filtering.
teams(filter: TeamFilter)[Team!]Teams within this organization, with optional filtering.
users(filter: UserFilter)[User!]Users who are members of this organization, with optional filtering.
variableSets(filter: VariableSetFilter)[VariableSet!]Variable sets defined in this organization, with optional filtering.
memberships(filter: OrganizationMembershipFilter)[OrganizationMembership!]!Organization memberships (user invitations and active members).
tags(filter: OrganizationTagFilter)[OrganizationTag!]!Tags defined in this organization for classifying workspaces.
policySets(filter: PolicySetFilter)[PolicySet!]Policy sets configured in this organization.
usersFromAdmin(filter: UserFilter)[AdminUser!]Users retrieved via the Terraform Enterprise admin API. Only available on TFE.
projects(filter: ProjectFilter)[Project!]Projects within this organization, with optional filtering.

OrganizationMembership

Represents a user's membership in an organization. Users are added by invitation and become members once accepted.

FieldTypeDescription
idID!The membership's unique identifier.
statusString!The membership status: 'invited' or 'active'.
organizationIdID!The ID of the organization.
userIdID!The ID of the member user.
teamIds[ID!]!IDs of teams the member belongs to within the organization.

OrganizationPermissions

Permissions the current API token has on an organization, controlling which management operations are allowed.

FieldTypeDescription
canUpdateBoolean!Whether the current user can modify organization settings.
canDestroyBoolean!Whether the current user can delete the organization.
canAccessViaTeamsBoolean!Whether the current user accesses the organization through team membership.
canCreateModuleBoolean!Whether the current user can publish private registry modules.
canCreateTeamBoolean!Whether the current user can create new teams.
canCreateWorkspaceBoolean!Whether the current user can create new workspaces.
canManageUsersBoolean!Whether the current user can manage organization user memberships.
canManageSubscriptionBoolean!Whether the current user can manage the organization subscription.
canManageSsoBoolean!Whether the current user can configure single sign-on settings.
canUpdateOauthBoolean!Whether the current user can manage OAuth client connections.
canUpdateSentinelBoolean!Whether the current user can manage Sentinel policy configuration.
canUpdateSshKeysBoolean!Whether the current user can manage SSH keys.
canUpdateApiTokenBoolean!Whether the current user can manage the organization API token.
canTraverseBoolean!Whether the current user can traverse (list) the organization.
canStartTrialBoolean!Whether the current user can start a trial plan.
canUpdateAgentPoolsBoolean!Whether the current user can manage agent pools.
canManageTagsBoolean!Whether the current user can manage organization tags.
canManageVarsetsBoolean!Whether the current user can manage variable sets.
canReadVarsetsBoolean!Whether the current user can view variable sets.
canManagePublicProvidersBoolean!Whether the current user can manage public provider listings.
canCreateProviderBoolean!Whether the current user can create private providers.
canManagePublicModulesBoolean!Whether the current user can manage public module listings.
canManageCustomProvidersBoolean!Whether the current user can manage custom provider configurations.
canManageRunTasksBoolean!Whether the current user can manage run task configurations.
canReadRunTasksBoolean!Whether the current user can view run task configurations.
canCreateProjectBoolean!Whether the current user can create new projects.

OrganizationTag

A tag used to classify and organize workspaces within an organization. Tags can be applied to multiple workspaces and used for filtering.

FieldTypeDescription
idID!The tag's unique identifier.
nameString!The tag name. Can include letters, numbers, colons, hyphens, and underscores (max 255 characters).
createdAtDateTime!Timestamp when the tag was created.
instanceCountInt!Number of workspaces this tag is applied to.

Plan

Represents the execution plan of a run in a Terraform workspace. Contains resource change counts, status, and optional structured JSON output.

FieldTypeDescription
idID!The plan's unique identifier.
modeString!Execution mode: 'remote' or 'agent'.
agentIdIDIdentifier of the agent executing this plan, when using agent execution mode.
agentNameStringHuman-readable name of the agent executing this plan.
agentPoolIdIDIdentifier of the agent pool used for this plan.
agentPoolNameStringName of the agent pool used for this plan.
generatedConfigurationBoolean!Whether Terraform auto-generated configuration during import.
hasChangesBoolean!Whether the plan detected any infrastructure changes.
resourceAdditionsInt!Count of resources to be created.
resourceChangesInt!Count of resources to be modified.
resourceDestructionsInt!Count of resources to be removed.
resourceImportsInt!Count of resources to be imported.
statusString!Current state of the plan (e.g., pending, queued, running, finished, errored, canceled).
logReadUrlString!Temporary authenticated URL for streaming plan log output.
planLog(minimumLevel: LogLevel)[JSON!]Structured plan log output, filtered by minimum log level.
planExportDownloadUrlStringURL to download the exported plan file.
structuredRunOutputEnabledBoolean!Whether structured (JSON) run output is enabled.
jsonOutputUrlStringURL to download the plan's JSON output, if structured output is enabled.
jsonOutputRedactedStringRedacted JSON plan output with sensitive values removed.
jsonSchemaStringJSON provider schema associated with this plan.
agentQueuedAtDateTimeTimestamp when the plan was queued on an agent.
pendingAtDateTimeTimestamp when the plan entered pending state.
startedAtDateTimeTimestamp when plan execution began.
finishedAtDateTimeTimestamp when plan execution completed.

Policy

A Sentinel or OPA policy that enforces rules during Terraform runs. Policies are organized into policy sets and have configurable enforcement levels.

FieldTypeDescription
idID!The policy's unique identifier.
nameString!The policy name. Contains letters, numbers, hyphens, and underscores. Immutable after creation.
descriptionStringA text description of the policy's purpose.
kindString!The policy framework type: 'sentinel' or 'opa'.
queryStringThe OPA query to execute. Only applicable to OPA policies.
enforcementLevelString!The enforcement level. Sentinel: 'hard-mandatory', 'soft-mandatory', or 'advisory'. OPA: 'mandatory' or 'advisory'.
policySetCountInt!Number of policy sets this policy belongs to.
updatedAtDateTimeTimestamp when the policy was last modified.

PolicyCheck

The result of a Sentinel policy check performed during a run. Contains the overall status, scope, and detailed result data including pass/fail outcomes.

FieldTypeDescription
idID!The policy check's unique identifier.
statusString!Current state of the policy check (e.g., 'passed', 'soft_failed', 'hard_failed', 'overridden').
scopeString!The scope of the policy check (e.g., 'organization').
resultJSON!Detailed result object containing pass/fail counts and policy outcomes.
sentinelJSONLow-level Sentinel engine details generated during policy evaluation.
statusTimestampsPolicyCheckStatusTimestamps!Timestamps for each policy check status transition.
permissionsPolicyCheckPermissions!Permissions the current user has on this policy check.
actionsPolicyCheckActions!Available actions for this policy check based on its current state.
createdAtDateTimeTimestamp when the policy check was created.
finishedAtDateTimeTimestamp when the policy check completed.
outputUrlStringURL to retrieve detailed policy check output.
runRun!The run this policy check was performed on.

PolicyCheckActions

Available actions for a policy check based on its current state.

FieldTypeDescription
isOverridableBoolean!Whether this policy check can be overridden.

PolicyCheckPermissions

Permissions the current user has on a policy check.

FieldTypeDescription
canOverrideBoolean!Whether the current user can override this policy check.

PolicyCheckStatusTimestamps

Timestamps for each policy check status transition.

FieldTypeDescription
queuedAtDateTimeTimestamp when the policy check was queued.
passedAtDateTimeTimestamp when the policy check passed.
hardFailedAtDateTimeTimestamp when a hard-mandatory policy failure occurred.
softFailedAtDateTimeTimestamp when a soft-mandatory policy failure occurred.
advisoryFailedAtDateTimeTimestamp when an advisory policy failure occurred.
overriddenAtDateTimeTimestamp when the policy check was overridden.

PolicyEvaluation

An OPA or Sentinel policy evaluation performed during a run's task stage. Contains aggregated result counts and individual policy set outcomes.

FieldTypeDescription
idID!The policy evaluation's unique identifier.
statusString!Current state of the evaluation (e.g., 'passed', 'failed', 'errored').
policyKindString!The policy engine type: 'sentinel' or 'opa'.
resultCountPolicyEvaluationResultCount!Aggregated pass/fail/error counts across all policies in this evaluation.
statusTimestampsPolicyEvaluationStatusTimestamps!Timestamps for each evaluation status transition.
createdAtDateTime!Timestamp when the evaluation was created.
updatedAtDateTime!Timestamp when the evaluation was last modified.
policyAttachableIdIDThe ID of the task stage this evaluation is attached to.
policySetOutcomes[PolicySetOutcome!]!Individual policy set outcomes from this evaluation.

PolicyEvaluationResultCount

Counts of policy evaluation results, grouped by outcome.

FieldTypeDescription
advisoryFailedInt!Count of policies that failed at the advisory level.
erroredInt!Count of policies that encountered errors during evaluation.
mandatoryFailedInt!Count of policies that failed at the mandatory level.
passedInt!Count of policies that passed evaluation.

PolicyEvaluationStatusTimestamps

Timestamps for each policy evaluation status transition.

FieldTypeDescription
queuedAtDateTimeTimestamp when the evaluation was queued.
runningAtDateTimeTimestamp when evaluation execution began.
passedAtDateTimeTimestamp when the evaluation completed successfully.
erroredAtDateTimeTimestamp when the evaluation encountered an error.

PolicySet

A collection of policies that can be applied to Terraform Cloud workspaces.

FieldTypeDescription
idID!The policy set's unique identifier.
nameString!The name of the policy set. Can include letters, numbers, hyphens, and underscores.
descriptionStringA text description of the policy set's purpose.
kindString!The policy framework type: 'sentinel' or 'opa'.
globalBoolean!When true, the policy set is automatically applied to all workspaces in the organization.
agentEnabledBoolean!Whether agent-based policy evaluation is enabled (Sentinel only).
policyToolVersionString!The version of the policy evaluation tool (Sentinel or OPA).
overridableBoolean!Whether users can override failed policies in this set.
workspaceCountInt!Number of workspaces this policy set is applied to.
projectCountInt!Number of projects this policy set is applied to.
policyCountIntNumber of policies in this policy set.
policiesPathStringSubdirectory path within the VCS repository containing the policies.
versionedBoolean!Whether the policy set is versioned through VCS.
vcsRepoPolicySetVcsRepoVCS repository configuration for sourcing policies.
createdAtDateTime!Timestamp when the policy set was created.
updatedAtDateTime!Timestamp when the policy set was last modified.
organizationOrganization!The organization this policy set belongs to.
policies(filter: PolicyFilter)[Policy!]!Individual policies contained in this policy set.
projects(filter: ProjectFilter)[Project!]!Projects this policy set is applied to.
workspaces(filter: WorkspaceFilter)[Workspace!]!Workspaces this policy set is applied to.
workspaceExclusions(filter: WorkspaceFilter)[Workspace!]!Workspaces explicitly excluded from this policy set.
parameters(filter: PolicySetParameterFilter)[PolicySetParameter!]!Parameters passed to the policy runtime during evaluation.

PolicySetOutcome

The evaluation result of a single policy set, including individual policy outcomes and override status.

FieldTypeDescription
idID!The policy set outcome's unique identifier.
outcomesJSONDetailed individual policy outcomes as a JSON object.
errorStringError message if the policy set evaluation failed.
warnings[JSON!]!Warning messages generated during policy set evaluation.
overridableBoolean!Whether the failed policies in this set can be overridden.
policySetNameString!The name of the policy set that was evaluated.
policySetDescriptionStringThe description of the policy set that was evaluated.
resultCountPolicySetOutcomeResultCount!Aggregated pass/fail/error counts for policies in this set.

PolicySetOutcomeResultCount

Counts of policy outcomes within a single policy set evaluation.

FieldTypeDescription
advisoryFailedInt!Count of policies that failed at the advisory level within this policy set.
mandatoryFailedInt!Count of policies that failed at the mandatory level within this policy set.
passedInt!Count of policies that passed within this policy set.
erroredInt!Count of policies that errored within this policy set.

PolicySetParameter

A key/value pair sent to the Sentinel runtime during policy checks. Parameters help avoid hardcoding sensitive values into policies.

FieldTypeDescription
idID!The parameter's unique identifier.
keyString!The parameter name.
valueStringThe parameter value. Returns null for sensitive parameters.
sensitiveBoolean!Whether the parameter value is sensitive and write-only.
categoryString!The parameter category: 'policy-set'.

PolicySetVcsRepo

VCS repository configuration for a policy set.

FieldTypeDescription
branchStringThe VCS branch to source policies from. Uses the default branch if empty.
identifierString!The VCS repository path in :org/:repo format.
ingressSubmodulesBoolean!Whether to clone repository submodules.
oauthTokenIdStringThe OAuth token identifier used for VCS authentication.
githubAppInstallationIdStringThe GitHub App installation ID, as an alternative to OAuth.

Project

A container for organizing workspaces within an organization. Projects group related workspaces and control team access at a higher level.

FieldTypeDescription
idID!The project's unique identifier.
nameString!The project name. Can contain letters, numbers, spaces, hyphens, and underscores.
descriptionStringA text description of the project's purpose (max 256 characters).
createdAtDateTimeTimestamp when the project was created.
workspaceCountIntNumber of workspaces within this project.
teamCountIntNumber of teams with access to this project.
stackCountIntNumber of stacks within this project.
autoDestroyActivityDurationStringInactivity duration (e.g., '14d', '2h') before workspaces are scheduled for auto-destroy.
defaultExecutionModeStringDefault execution mode for workspaces in this project: 'remote', 'local', or 'agent'.
settingOverwritesSettingOverwritesIndicates which settings are overridden at the project level rather than inherited from the organization.
permissionsProjectPermissionsPermissions the current user has on this project.
organizationOrganizationThe parent organization containing this project.
workspaces(filter: WorkspaceFilter)[Workspace!]!Workspaces belonging to this project, with optional filtering.
teams(filter: TeamFilter)[Team!]!Teams with access to this project, with optional filtering.
variableSets(filter: VariableSetFilter)[VariableSet!]!Variable sets applied to this project, with optional filtering.
teamAccess(filter: ProjectTeamAccessFilter)[ProjectTeamAccess!]!Team access grants for this project.

ProjectAccess

Project-level permission settings for a team.

FieldTypeDescription
settingsString!Permission level for project settings: 'read', 'update', or 'delete'.
teamsString!Permission level for managing project teams: 'none', 'read', or 'manage'.

ProjectPermissions

Permissions the current API token has on a project, controlling which operations are allowed.

FieldTypeDescription
canReadBooleanWhether the current user can view this project.
canUpdateBooleanWhether the current user can modify this project.
canDestroyBooleanWhether the current user can delete this project.
canCreateWorkspaceBooleanWhether the current user can create workspaces within this project.
canMoveWorkspaceBooleanWhether the current user can move workspaces into or out of this project.
canMoveStackBooleanWhether the current user can move Stacks between projects.
canDeployNoCodeModulesBooleanWhether the current user can deploy no-code modules in this project.
canReadTeamsBooleanWhether the current user can view teams with access to this project.
canManageTagsBooleanWhether the current user can manage tags on this project.
canManageTeamsBooleanWhether the current user can manage team access on this project.
canManageInHcpBooleanWhether the current user can manage this project in HCP.
canManageEphemeralWorkspaceForProjectsBooleanWhether the current user can manage ephemeral workspaces for this project.
canManageVarsetsBooleanWhether the current user can manage variable sets on this project.

ProjectTeamAccess

Associates a team with a project and defines the team's permission level for project settings, teams, and workspace operations within the project.

FieldTypeDescription
idID!The project team access grant's unique identifier.
accessString!The permission level: 'read', 'write', 'maintain', 'admin', or 'custom'.
projectAccessProjectAccess!Project-level permission settings for this team.
workspaceAccessWorkspaceAccess!Workspace-level permission settings granted through this project access.
projectProject!The project this access grant applies to.
teamTeam!The team this access grant is for.

PrometheusMetricSample

A single metric data point with its name, label set, and numeric value.

FieldTypeDescription
nameString!
labelsJSON!
valueFloat

PrometheusResult

The result of a Prometheus metrics query, containing both raw exposition text and structured samples.

FieldTypeDescription
textString!Raw Prometheus exposition text, ready for ingestion
samples[PrometheusMetricSample!]!Structured metric samples for programmatic access
familyCountInt!Number of metric families rendered
sampleCountInt!Number of individual samples rendered

Run

Represents a Terraform execution within a workspace. A run performs a plan and optionally an apply to create, update, or destroy infrastructure.

FieldTypeDescription
idID!The run's unique identifier.
statusString!Current state of the run (e.g., pending, planning, planned, applying, applied, errored, canceled).
messageStringA custom message associated with the run, typically describing its purpose.
isDestroyBoolean!Whether this run is a destroy plan that removes all provisioned resources.
createdAtDateTime!Timestamp when the run was created.
canceledAtDateTimeTimestamp when the run was canceled, if applicable.
hasChangesBoolean!Whether the plan detected any infrastructure changes.
autoApplyBoolean!Whether the run will automatically apply on a successful plan.
allowEmptyApplyBoolean!Whether Terraform can apply the run even when the plan contains no changes.
allowConfigGenerationBoolean!Whether Terraform can generate resource configuration during import operations.
planOnlyBoolean!Whether this is a speculative plan-only run that cannot be applied.
sourceString!The origin of the run (e.g., tfe-ui, tfe-api, tfe-configuration-version).
statusTimestampsRunStatusTimestampsTimestamps for run status transitions.
triggerReasonString!The reason the run was initiated (e.g., manual, VCS push, run trigger).
targetAddrs[String!]Optional list of resource addresses targeted with the -target flag.
replaceAddrs[String!]Optional list of resource addresses targeted with the -replace flag.
permissionsRunPermissions!Permissions the current user has on this run.
actionsRunActions!Available actions for this run based on its current state.
refreshBoolean!Whether the run refreshes state before planning.
refreshOnlyBoolean!When true, the run refreshes state without modifying resources.
savePlanBoolean!Whether this is a saved plan run for later confirmation.
variables[String!]!Run-specific variable values passed to this execution.
workspaceWorkspaceThe workspace this run belongs to.
configurationVersionConfigurationVersionThe configuration version used for this run.
applyApplyThe apply phase of this run, if one exists.
comments(filter: CommentFilter)[Comment!]!Comments left on this run.
runEvents[RunEvent!]!Events recorded during this run's lifecycle.
runTriggers(filter: RunTriggerFilter)[RunTrigger!]!Run triggers associated with this run.
planPlanThe plan phase of this run.
policyEvaluations(filter: PolicyEvaluationFilter)[PolicyEvaluation!]!OPA/Sentinel policy evaluations performed during this run.
policyChecks(filter: PolicyCheckFilter)[PolicyCheck!]!Sentinel policy checks performed during this run.

RunActions

Available actions for a run based on its current state.

FieldTypeDescription
isCancelableBoolean!Whether the run can be interrupted during planning or applying.
isConfirmableBoolean!Whether the run is awaiting user confirmation to proceed.
isDiscardableBoolean!Whether the run can be discarded to unlock the workspace.
isForceCancelableBoolean!Whether an admin can forcibly terminate the run.

RunEvent

An event recorded during a run's lifecycle, such as state transitions or user actions.

FieldTypeDescription
idID!The run event's unique identifier.
bodyJSON!The event payload as a JSON object.

RunPermissions

Permissions the current API token has on a run, controlling which operations are allowed.

FieldTypeDescription
canApplyBoolean!Whether the current user can apply this run.
canCancelBoolean!Whether the current user can cancel this run.
canCommentBoolean!Whether the current user can add comments to this run.
canDiscardBoolean!Whether the current user can discard this run.
canForceExecuteBoolean!Whether the current user can bypass workflow to execute immediately.
canForceCancelBoolean!Whether the current user can forcefully terminate this run.
canOverridePolicyCheckBoolean!Whether the current user can override failed policy checks.

RunStatusTimestamps

Timestamps recording when a run transitioned between statuses.

FieldTypeDescription
planQueueableAtDateTimeTimestamp when the plan becomes ready to be queued.

RunTrigger

FieldTypeDescription
idID!The run trigger's unique identifier.
workspaceNameString!The name of the destination workspace where triggered runs are created.
sourceableNameString!The name of the source workspace whose successful applies trigger runs.
createdAtDateTime!Timestamp when the run trigger was created.
workspaceWorkspace!The destination workspace where triggered runs are created.
sourceableWorkspace!The source workspace whose successful applies initiate runs in the destination.

SettingOverwrites

Indicates which project settings are overridden locally rather than inherited from the organization.

FieldTypeDescription
defaultExecutionModeBooleanWhether the project overrides the organization's default execution mode.
defaultAgentPoolBooleanWhether the project overrides the organization's default agent pool.

StateVersion

An instance of Terraform state data for a workspace. State versions contain metadata about the state, its properties, and download URLs. They do not directly contain the stored state itself.

FieldTypeDescription
idID!The state version's unique identifier.
createdAtDateTime!Timestamp when this state version was created.
sizeIntThe size of the state data in bytes.
hostedJsonStateDownloadUrlStringURL to download state data in a stable JSON format for external integrations. Only available for Terraform 1.3+.
hostedStateDownloadUrlStringURL to download the raw state data in Terraform's internal format.
hostedJsonStateUploadUrlStringURL to upload JSON-formatted state data. Can only be used once per state version.
hostedStateUploadUrlStringURL to upload raw state data in Terraform's internal format. Can only be used once per state version.
statusStringUpload status of the state version content: 'pending', 'finalized', or 'discarded'.
intermediateBooleanWhether this is an intermediate state snapshot not yet set as the workspace's current state.
modulesJSONExtracted information about Terraform modules in this state. Populated asynchronously.
providersJSONExtracted information about Terraform providers used by resources in this state. Populated asynchronously.
resourcesJSONExtracted information about resources in this state. Populated asynchronously.
resourcesProcessedBooleanWhether HCP Terraform has finished asynchronously extracting outputs, resources, and other information from this state.
serialIntThe serial number of this state, which increments every time Terraform creates new state.
stateVersionIntThe internal state format version number.
terraformVersionStringThe Terraform version that created this state. Populated asynchronously.
vcsCommitShaStringThe SHA of the VCS commit used in the run that produced this state.
vcsCommitUrlStringA link to the VCS commit used in the run that produced this state.
billableRumCountIntCount of billable Resources Under Management (RUM).
runRunThe run that created this state version, if applicable.
createdByUserThe user who created this state version.
workspaceWorkspaceThe workspace this state version belongs to.
outputs[StateVersionOutput!]!Parsed output values from this state version.

StateVersionOutput

An output value from a Terraform state version. Contains the output name, type, value, and sensitivity flag.

FieldTypeDescription
idID!The state version output's unique identifier.
nameString!The output variable name as defined in the Terraform configuration.
sensitiveBoolean!Whether the output value is marked as sensitive and should be hidden in UI displays.
typeString!The data type of the output value (e.g., 'string', 'number', 'list').
valueJSON!The output value. May be a string, number, boolean, array, or object depending on type.
detailedTypeJSON!A more granular type specification providing structural details about complex output types.
stateVersionStateVersionThe state version this output belongs to.

Team

A group of HCP Terraform users with shared permissions. Teams can be granted access to workspaces and projects within an organization.

FieldTypeDescription
idID!The team's unique identifier.
nameString!The team name. Supports letters, numbers, hyphens, and underscores.
ssoTeamIdStringThe unique identifier from the SAML MemberOf attribute, used for SSO team mapping.
usersCountInt!Number of users in this team.
visibilityString!The team's visibility: 'secret' (only visible to members and org admins) or 'organization' (visible to all members).
allowMemberTokenManagementBoolean!Whether team members can manage the team's API tokens.
permissionsTeamPermissions!Permissions the current user has on this team.
organizationAccessTeamOrganizationAccess!Organization-level permissions granted to this team.
organizationOrganization!The organization this team belongs to.
users(filter: UserFilter)[User!]!Users who are members of this team.
usersFromAdmin(filter: UserFilter)[AdminUser!]Users retrieved via the Terraform Enterprise admin API. Only available on TFE.
tokens(filter: TeamTokenFilter)[TeamToken!]!API tokens associated with this team.
workspaceAccess(filter: WorkspaceTeamAccessFilter)[WorkspaceTeamAccess!]!Workspace-level access grants for this team.
projectAccess(filter: ProjectTeamAccessFilter)[ProjectTeamAccess!]!Project-level access grants for this team.

TeamOrganizationAccess

Organization-level permissions granted to a team, controlling what the team can manage across the organization.

FieldTypeDescription
managePoliciesBooleanWhether this team can manage Sentinel and OPA policies.
manageWorkspacesBooleanWhether this team can create and manage workspaces.
manageVcsSettingsBooleanWhether this team can manage VCS provider connections.
managePolicyOverridesBooleanWhether this team can override failed policy checks.
manageModulesBooleanWhether this team can manage private registry modules.
manageProvidersBooleanWhether this team can manage private registry providers.
manageRunTasksBooleanWhether this team can manage run task configurations.
manageProjectsBooleanWhether this team can create and manage projects.
manageMembershipBooleanWhether this team can manage organization user memberships.
manageTeamsBooleanWhether this team can administer other teams.
manageOrganizationAccessBooleanWhether this team can assign organization-level permissions to other teams.
accessSecretTeamsBooleanWhether this team can view secret (hidden) teams.
readProjectsBooleanWhether this team can view projects.
readWorkspacesBooleanWhether this team can view workspaces.
manageAgentPoolsBooleanWhether this team can manage agent pools.

TeamPermissions

Permissions the current API token has on a team, controlling which management operations are allowed.

FieldTypeDescription
canUpdateMembershipBooleanWhether the current user can modify team members.
canDestroyBooleanWhether the current user can delete this team.
canUpdateOrganizationAccessBooleanWhether the current user can adjust this team's organization-level permissions.
canUpdateApiTokenBooleanWhether the current user can manage this team's API tokens.
canUpdateVisibilityBooleanWhether the current user can change this team's visibility setting.
canUpdateNameBooleanWhether the current user can rename this team.
canUpdateSsoTeamIdBooleanWhether the current user can update this team's SSO team ID mapping.
canUpdateMemberTokenManagementBooleanWhether the current user can change the member token management setting.
canViewApiTokenBooleanWhether the current user can view this team's API token metadata.

TeamToken

An API token associated with a team. Team tokens can be used to authenticate API requests on behalf of the team.

FieldTypeDescription
idID!The team token's unique identifier.
teamIdID!The ID of the team this token belongs to.
createdAtDateTime!Timestamp when the token was created.
lastUsedAtDateTimeTimestamp when the token was last used, or null if never used.
descriptionStringA text label for the token. Must be unique within the team.
tokenStringThe secret authentication string. Only visible upon creation and cannot be recovered.
expiredAtDateTimeThe expiration timestamp. Null if the token never expires.
createdByIdID!The ID of the user who created this token.

User

An HCP Terraform user account. User objects contain username, avatar, and permission information but not other personal identifying details.

FieldTypeDescription
idID!The user's unique identifier.
usernameString!The user's login name.
emailStringThe user's email address.
avatarUrlStringURL to the user's Gravatar profile image.
isServiceAccountBoolean!Whether this is a synthetic service account rather than a human user.
authMethodString!The authentication method used (e.g., 'tfc', 'hcp_username_password', 'hcp_github').
v2OnlyBoolean!Whether the user only has access to the v2 API.
permissionsUserPermissions!Permissions the current user has on this user account.
teams(includeOrgs: [String!], excludeOrgs: [String!], filter: TeamFilter)[Team!]!Teams the user belongs to across organizations.

UserPermissions

Permissions on a user account, controlling which account management operations are allowed.

FieldTypeDescription
canCreateOrganizationsBoolean!Whether the user can create new organizations.
canViewSettingsBoolean!Whether the user can view their account settings.
canViewProfileBoolean!Whether the user can view their profile.
canChangeEmailBoolean!Whether the user can modify their email address.
canChangeUsernameBoolean!Whether the user can modify their username.
canChangePasswordBoolean!Whether the user can change their password.
canManageSessionsBoolean!Whether the user can manage their active sessions.
canManageSsoIdentitiesBoolean!Whether the user can manage their SSO identity links.
canManageUserTokensBoolean!Whether the user can manage their personal API tokens.
canUpdateUserBoolean!Whether the user can update their account details.
canReenable2faByUnlinkingBoolean!Whether the user can re-enable two-factor authentication by unlinking an identity.
canManageHcpAccountBoolean!Whether the user can manage their linked HCP account.

Variable

A key/value pair used to parameterize Terraform runs. Variables can be Terraform input variables or environment variables, and may be marked as sensitive.

FieldTypeDescription
idID!The variable's unique identifier.
keyString!The variable name.
valueStringThe variable value. Returns null for sensitive variables.
sensitiveBoolean!Whether the variable value is sensitive and write-only.
categoryString!The variable category: 'terraform' for Terraform input variables or 'env' for environment variables.
hclBoolean!When true, the value is evaluated as HCL code rather than a literal string.
createdAtDateTime!Timestamp when the variable was created.
descriptionStringA text description of the variable's purpose.
versionIdStringThe version identifier for this variable, used for optimistic locking.
workspaceWorkspaceThe workspace this variable belongs to.

VariableSet

A reusable collection of variables that can be applied to multiple workspaces and projects across an organization. Global variable sets apply to all workspaces automatically.

FieldTypeDescription
idID!The variable set's unique identifier.
nameString!The name of the variable set.
descriptionStringA text description of the variable set's purpose.
globalBoolean!When true, the variable set is automatically applied to all current and future workspaces in the organization.
updatedAtDateTime!Timestamp when the variable set was last modified.
varCountInt!Number of variables in this variable set.
workspaceCountInt!Number of workspaces this variable set is applied to.
projectCountInt!Number of projects this variable set is applied to.
priorityBoolean!When true, variables in this set override any other variable values with a more specific scope, including command-line values.
permissionsVariableSetPermissions!Permissions the current user has on this variable set.
organizationOrganizationThe organization this variable set belongs to.
vars(filter: VariableFilter)[Variable!]Variables contained in this variable set.
workspaces(filter: WorkspaceFilter)[Workspace!]Workspaces this variable set is applied to.
projects(filter: ProjectFilter)[Project!]Projects this variable set is applied to.

VariableSetPermissions

Permissions the current API token has on a variable set.

FieldTypeDescription
canUpdateBoolean!Whether the current user can modify this variable set.

Workspace

Represents running infrastructure managed by Terraform. Each workspace is associated with a Terraform configuration and maintains state, variables, and run history.

FieldTypeDescription
idID!The workspace's unique identifier.
nameString!The workspace name. Must contain only letters, numbers, hyphens, and underscores.
descriptionStringA text description of the workspace's purpose.
lockedBoolean!Whether the workspace is currently locked, preventing new runs.
lockedReasonStringThe reason the workspace was locked, if provided.
autoApplyBoolean!When true, automatically applies successful plans triggered by VCS pushes.
createdAtDateTime!Timestamp when the workspace was created.
updatedAtDateTime!Timestamp when the workspace was last modified.
applyDurationAverageIntMean apply phase duration in milliseconds.
planDurationAverageIntMean plan phase duration in milliseconds.
policyCheckFailuresIntCount of runs that failed due to policy check violations.
queueAllRunsBooleanWhen true, runs are queued immediately when the workspace is created, rather than waiting for configuration.
resourceCountIntNumber of infrastructure resources managed by the workspace.
runFailuresIntTotal count of unsuccessful runs.
sourceStringThe application or system that created the workspace.
sourceNameStringA friendly display name for the creating application.
sourceUrlStringA URL referencing the application that created the workspace.
speculativeEnabledBooleanWhen true, allows automatic speculative plans on pull requests.
structuredRunOutputEnabledBooleanWhen true, enables structured (JSON) run output.
tagNames[String!]!List of tag names applied to the workspace.
terraformVersionStringThe Terraform version or version constraint configured for the workspace.
triggerPrefixes[String!]!List of directory paths that trigger runs when files change within them.
vcsRepoJSONVCS repository settings object, including branch, OAuth token, and repository identifier.
vcsRepoIdentifierStringThe VCS repository reference string in :org/:repo format.
workingDirectoryStringThe relative path within the repo where Terraform commands are executed.
workspaceKpisRunsCountIntNumber of runs included in workspace KPI metrics.
executionModeStringHow Terraform runs execute: 'remote', 'local', or 'agent'.
environmentStringDeployment environment classification for the workspace.
operationsBooleanDeprecated: use executionMode instead.
fileTriggersEnabledBooleanWhen true, only VCS pushes that change files matching trigger patterns or prefixes start runs.
globalRemoteStateBooleanWhen true, all workspaces in the organization can access this workspace's state.
latestChangeAtDateTimeTimestamp of the most recent state version change or workspace modification.
lastAssessmentResultAtDateTimeTimestamp of the most recent health assessment completion.
autoDestroyAtDateTimeScheduled timestamp for automatic destroy operation.
autoDestroyStatusStringCurrent status of the scheduled auto-destroy.
autoDestroyActivityDurationIntInactivity period (in milliseconds) before the workspace is scheduled for auto-destroy.
inheritsProjectAutoDestroyBooleanWhether the workspace inherits its auto-destroy settings from its parent project.
assessmentsEnabledBooleanWhen true, health assessments (drift detection) are enabled for this workspace.
allowDestroyPlanBooleanWhether destroy plans can be queued on this workspace.
autoApplyRunTriggerBooleanWhen true, automatically applies successful plans initiated by run triggers.
oauthClientNameStringThe name of the OAuth client used for VCS connection.
actionsWorkspaceActionsAvailable actions for the workspace based on its current state.
permissionsWorkspacePermissionsPermissions the current user has on this workspace.
settingOverwritesWorkspaceSettingOverwritesIndicates which settings are overridden at the workspace level rather than inherited from the project.
organizationOrganizationThe parent organization containing this workspace.
runs(filter: RunFilter)[Run!]!Runs executed in this workspace, with optional filtering.
configurationVersions(filter: ConfigurationVersionFilter)[ConfigurationVersion!]!Configuration versions uploaded to this workspace, with optional filtering.
variables(filter: VariableFilter)[Variable!]!Terraform and environment variables configured on this workspace.
stateVersions(filter: StateVersionFilter)[StateVersion!]!State version history for this workspace.
currentStateVersionStateVersionThe active (most recent) infrastructure state for this workspace.
providers[WorkspaceProvider!]!Terraform providers used by resources in this workspace.
modules[WorkspaceModule!]!Terraform modules used in this workspace's configuration.
projectProjectThe project this workspace belongs to.
appliedPolicySets(filter: PolicySetFilter)[PolicySet!]!Policy sets currently enforced on this workspace.
currentRunRunThe active or most recent run for this workspace.
teamAccess(filter: WorkspaceTeamAccessFilter)[WorkspaceTeamAccess!]!Team access grants for this workspace.
workspaceResources(filter: WorkspaceResourceFilter)[WorkspaceResource!]!

WorkspaceAccess

Workspace-level permission settings granted through project team access.

FieldTypeDescription
createBoolean!Whether the team can create workspaces within the project.
moveBoolean!Whether the team can move workspaces between projects.
lockingBoolean!Whether the team can manually lock and unlock workspaces.
deleteBoolean!Whether the team can delete workspaces.
runsString!Permission level for workspace runs: 'read', 'plan', or 'apply'.
variablesString!Permission level for workspace variables: 'none', 'read', or 'write'.
stateVersionsString!Permission level for state versions: 'none', 'read-outputs', 'read', or 'write'.
sentinelMocksString!Permission level for Sentinel policy mocks: 'none' or 'read'.
runTasksBoolean!Whether the team can manage run tasks within workspaces.

WorkspaceActions

Available actions for a workspace based on its current state.

FieldTypeDescription
isDestroyableBoolean!Whether the workspace's infrastructure can be safely destroyed.

WorkspaceModule

A Terraform module used in a workspace's configuration, extracted from state data.

FieldTypeDescription
nameStringThe module's display name.
versionStringThe module version in use.
sourceStringThe module's source location.

WorkspacePermissions

Permissions the current API token has on a workspace, controlling which operations are allowed.

FieldTypeDescription
canUpdateBoolean!Whether the current user can modify workspace settings.
canDestroyBoolean!Whether the current user can queue destroy operations.
canQueueRunBoolean!Whether the current user can initiate new Terraform runs.
canReadRunBoolean!Whether the current user can view run details and status.
canReadVariableBoolean!Whether the current user can access workspace variables.
canUpdateVariableBoolean!Whether the current user can modify variable values.
canReadStateVersionsBoolean!Whether the current user can access state file history.
canReadStateOutputsBoolean!Whether the current user can view computed output values.
canCreateStateVersionsBoolean!Whether the current user can upload state files directly.
canQueueApplyBoolean!Whether the current user can execute approved Terraform plans.
canLockBoolean!Whether the current user can lock the workspace to prevent concurrent modifications.
canUnlockBoolean!Whether the current user can remove the workspace lock.
canForceUnlockBoolean!Whether the current user can override a stuck workspace lock.
canReadSettingsBoolean!Whether the current user can view workspace configuration settings.
canManageTagsBoolean!Whether the current user can add or remove workspace tags.
canManageRunTasksBoolean!Whether the current user can configure run task enforcement.
canForceDeleteBoolean!Whether the current user can remove the workspace without safeguards.
canManageAssessmentsBoolean!Whether the current user can control health assessment settings.
canManageEphemeralWorkspacesBoolean!Whether the current user can create temporary workspaces.
canReadAssessmentResultsBoolean!Whether the current user can view health assessment outcomes.
canQueueDestroyBoolean!Whether the current user can schedule infrastructure destruction.

WorkspaceProvider

A Terraform provider used by resources in a workspace, extracted from state data.

FieldTypeDescription
nameStringThe provider's display name.
versionStringThe provider version in use.
sourceStringThe provider's source address (e.g., hashicorp/aws).

WorkspaceResource

A Terraform-managed resource tracked in a workspace's state. Includes the resource address, provider, module path, and the state version that last modified it.

FieldTypeDescription
idID!The resource's unique identifier.
addressString!The full resource address in Terraform configuration (e.g., 'aws_instance.web').
nameString!The local name of the resource within its module.
createdAtDateTime!Timestamp when the resource was first tracked.
updatedAtDateTime!Timestamp of the most recent resource modification.
moduleString!The module path containing this resource. 'root' indicates the root module.
providerString!The provider namespace and type (e.g., 'hashicorp/aws').
providerTypeString!The specific resource type from the provider (e.g., 'aws_instance').
modifiedByStateVersionStateVersion!The state version that last modified this resource.
nameIndexStringIndex suffix for resources declared with for_each or count.
workspaceWorkspace!The workspace this resource belongs to.

WorkspaceRunTrigger

FieldTypeDescription
idID!The run trigger's unique identifier.
workspaceNameString!The name of the destination workspace where triggered runs are created.
sourceableNameString!The name of the source workspace whose successful applies trigger runs.
createdAtDateTime!Timestamp when the run trigger was created.
workspaceWorkspace!The destination workspace where triggered runs are created.
sourceableWorkspace!The source workspace whose successful applies initiate runs in the destination.
inboundBoolean!True if runs are triggered in this workspace (inbound), false if this workspace triggers runs elsewhere (outbound).

WorkspaceSettingOverwrites

Indicates which workspace settings are overridden locally rather than inherited from the parent project.

FieldTypeDescription
executionModeBooleanWhether the workspace overrides the project's default execution mode.
agentPoolBooleanWhether the workspace overrides the project's default agent pool.

WorkspaceTeamAccess

Associates a team with a workspace and defines the team's permission level for runs, variables, state, and other workspace operations.

FieldTypeDescription
idID!The workspace team access grant's unique identifier.
accessString!The permission level: 'read', 'plan', 'write', 'admin', or 'custom'.
runsString!Permission level for workspace runs: 'read', 'plan', or 'apply'. Only applies when access is 'custom'.
variablesString!Permission level for workspace variables: 'none', 'read', or 'write'. Only applies when access is 'custom'.
stateVersionsString!Permission level for state versions: 'none', 'read-outputs', 'read', or 'write'. Only applies when access is 'custom'.
sentinelMocksString!Permission level for Sentinel policy mocks: 'none' or 'read'. Only applies when access is 'custom'.
workspaceLockingBoolean!Whether the team can manually lock and unlock the workspace.
runTasksBoolean!Whether the team can manage run tasks within the workspace.
teamTeam!The team this access grant is for.
workspaceWorkspace!The workspace this access grant applies to.

AbstractRunTrigger

Inbound or outbound run-trigger connections between workspaces.

FieldTypeDescription
idID!The run trigger's unique identifier.
workspaceNameString!The name of the destination workspace where triggered runs are created.
sourceableNameString!The name of the source workspace whose successful applies trigger runs.
createdAtDateTime!Timestamp when the run trigger was created.
workspaceWorkspace!The destination workspace where triggered runs are created.
sourceableWorkspace!The source workspace whose successful applies initiate runs in the destination.

UserAccount

Common fields shared by regular users and admin-managed users.

FieldTypeDescription
idID!The user's unique identifier.
usernameString!The user's login name.
emailStringThe user's email address.
avatarUrlStringURL to the user's Gravatar profile image.
isServiceAccountBoolean!Whether this is a synthetic service account rather than a human user.
teams(includeOrgs: [String!], excludeOrgs: [String!], filter: TeamFilter)[Team!]!Teams the user belongs to across organizations.

ExplorerFilterOperator

Comparison operators available for Explorer API server-side filters.

Value
is
is_not
contains
does_not_contain
is_empty
is_not_empty
gt
lt
gteq
lteq
is_before
is_after

ExplorerModuleField

Available fields for filtering and sorting in Explorer module queries.

Value
name
source
version
workspace_count
workspaces

ExplorerProviderField

Available fields for filtering and sorting in Explorer provider queries.

Value
name
source
version
workspace_count
workspaces

ExplorerTerraformVersionField

Available fields for filtering and sorting in Explorer Terraform version queries.

Value
version
workspace_count
workspaces

ExplorerWorkspaceField

Available fields for filtering and sorting in Explorer workspace queries.

Value
all_checks_succeeded
current_rum_count
checks_errored
checks_failed
checks_passed
checks_unknown
current_run_applied_at
current_run_external_id
current_run_status
drifted
external_id
module_count
modules
organization_name
project_external_id
project_name
provider_count
providers
resources_drifted
resources_undrifted
state_version_terraform_version
tags
vcs_repo_identifier
workspace_created_at
workspace_name
workspace_terraform_version
workspace_updated_at

LogLevel

Log level filter for structured Terraform run output. Controls the minimum severity of log entries returned.

Value
TRACE
DEBUG
INFO
WARN
ERROR
JSON

MetricFormat

The output format for rendered metrics.

Value
PROMETHEUS
OPENMETRICS

TF_LOG_CATEGORY

Terraform log verbosity levels. Used to identify workspaces with TF_LOG environment variables set.

Value
JSON
TRACE
DEBUG
INFO
WARN
ERROR