Viewing docs for dbt Cloud v1.6.1
published on Thursday, Feb 26, 2026 by Pulumi
published on Thursday, Feb 26, 2026 by Pulumi
Viewing docs for dbt Cloud v1.6.1
published on Thursday, Feb 26, 2026 by Pulumi
published on Thursday, Feb 26, 2026 by Pulumi
Retrieve data for a single environment
Using getEnvironment
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getEnvironment(args: GetEnvironmentArgs, opts?: InvokeOptions): Promise<GetEnvironmentResult>
function getEnvironmentOutput(args: GetEnvironmentOutputArgs, opts?: InvokeOptions): Output<GetEnvironmentResult>def get_environment(environment_id: Optional[int] = None,
project_id: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetEnvironmentResult
def get_environment_output(environment_id: Optional[pulumi.Input[int]] = None,
project_id: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEnvironmentResult]func LookupEnvironment(ctx *Context, args *LookupEnvironmentArgs, opts ...InvokeOption) (*LookupEnvironmentResult, error)
func LookupEnvironmentOutput(ctx *Context, args *LookupEnvironmentOutputArgs, opts ...InvokeOption) LookupEnvironmentResultOutput> Note: This function is named LookupEnvironment in the Go SDK.
public static class GetEnvironment
{
public static Task<GetEnvironmentResult> InvokeAsync(GetEnvironmentArgs args, InvokeOptions? opts = null)
public static Output<GetEnvironmentResult> Invoke(GetEnvironmentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEnvironmentResult> getEnvironment(GetEnvironmentArgs args, InvokeOptions options)
public static Output<GetEnvironmentResult> getEnvironment(GetEnvironmentArgs args, InvokeOptions options)
fn::invoke:
function: dbtcloud:index/getEnvironment:getEnvironment
arguments:
# arguments dictionaryThe following arguments are supported:
- Environment
Id int - The ID of the environment
- Project
Id int - The project ID to which the environment belongs
- Environment
Id int - The ID of the environment
- Project
Id int - The project ID to which the environment belongs
- environment
Id Integer - The ID of the environment
- project
Id Integer - The project ID to which the environment belongs
- environment
Id number - The ID of the environment
- project
Id number - The project ID to which the environment belongs
- environment_
id int - The ID of the environment
- project_
id int - The project ID to which the environment belongs
- environment
Id Number - The ID of the environment
- project
Id Number - The project ID to which the environment belongs
getEnvironment Result
The following output properties are available:
- Connection
Id int - The ID of the connection to use (can be the
idof adbtcloud.GlobalConnectionor theconnection_idof a legacy connection). At the moment, it is optional and the environment will use the connection set indbtcloud_project_connectionifconnection_idis not set in this resource. In future versions this field will become required, so it is recommended to set it from now on. When configuring this field, it needs to be configured for all the environments of the project. To avoid Terraform state issues, when using this field, thedbtcloud_project_connectionresource should be removed from the project or you need to make sure that theconnection_idis the same indbtcloud_project_connectionand in theconnection_idof the Development environment of the project - Credentials
Id int - Credential ID for this environment. A credential is not required for development environments, as dbt Cloud defaults to the user's credentials, but deployment environments will have this.
- Custom
Branch string - The custom branch name to use
- Dbt
Version string - Version number of dbt to use in this environment.
- Deployment
Type string - The type of deployment environment (currently 'production', 'staging' or empty)
- Enable
Model boolQuery History - Whether model query history is on
- Environment
Id int - The ID of the environment
- Extended
Attributes intId - The ID of the extended attributes applied
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the environment
- Primary
Profile intId - The ID of the primary profile for this environment
- Project
Id int - The project ID to which the environment belongs
- Type string
- The type of environment (must be either development or deployment)
- Use
Custom boolBranch - Whether to use a custom git branch in this environment
- Connection
Id int - The ID of the connection to use (can be the
idof adbtcloud.GlobalConnectionor theconnection_idof a legacy connection). At the moment, it is optional and the environment will use the connection set indbtcloud_project_connectionifconnection_idis not set in this resource. In future versions this field will become required, so it is recommended to set it from now on. When configuring this field, it needs to be configured for all the environments of the project. To avoid Terraform state issues, when using this field, thedbtcloud_project_connectionresource should be removed from the project or you need to make sure that theconnection_idis the same indbtcloud_project_connectionand in theconnection_idof the Development environment of the project - Credentials
Id int - Credential ID for this environment. A credential is not required for development environments, as dbt Cloud defaults to the user's credentials, but deployment environments will have this.
- Custom
Branch string - The custom branch name to use
- Dbt
Version string - Version number of dbt to use in this environment.
- Deployment
Type string - The type of deployment environment (currently 'production', 'staging' or empty)
- Enable
Model boolQuery History - Whether model query history is on
- Environment
Id int - The ID of the environment
- Extended
Attributes intId - The ID of the extended attributes applied
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the environment
- Primary
Profile intId - The ID of the primary profile for this environment
- Project
Id int - The project ID to which the environment belongs
- Type string
- The type of environment (must be either development or deployment)
- Use
Custom boolBranch - Whether to use a custom git branch in this environment
- connection
Id Integer - The ID of the connection to use (can be the
idof adbtcloud.GlobalConnectionor theconnection_idof a legacy connection). At the moment, it is optional and the environment will use the connection set indbtcloud_project_connectionifconnection_idis not set in this resource. In future versions this field will become required, so it is recommended to set it from now on. When configuring this field, it needs to be configured for all the environments of the project. To avoid Terraform state issues, when using this field, thedbtcloud_project_connectionresource should be removed from the project or you need to make sure that theconnection_idis the same indbtcloud_project_connectionand in theconnection_idof the Development environment of the project - credentials
Id Integer - Credential ID for this environment. A credential is not required for development environments, as dbt Cloud defaults to the user's credentials, but deployment environments will have this.
- custom
Branch String - The custom branch name to use
- dbt
Version String - Version number of dbt to use in this environment.
- deployment
Type String - The type of deployment environment (currently 'production', 'staging' or empty)
- enable
Model BooleanQuery History - Whether model query history is on
- environment
Id Integer - The ID of the environment
- extended
Attributes IntegerId - The ID of the extended attributes applied
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the environment
- primary
Profile IntegerId - The ID of the primary profile for this environment
- project
Id Integer - The project ID to which the environment belongs
- type String
- The type of environment (must be either development or deployment)
- use
Custom BooleanBranch - Whether to use a custom git branch in this environment
- connection
Id number - The ID of the connection to use (can be the
idof adbtcloud.GlobalConnectionor theconnection_idof a legacy connection). At the moment, it is optional and the environment will use the connection set indbtcloud_project_connectionifconnection_idis not set in this resource. In future versions this field will become required, so it is recommended to set it from now on. When configuring this field, it needs to be configured for all the environments of the project. To avoid Terraform state issues, when using this field, thedbtcloud_project_connectionresource should be removed from the project or you need to make sure that theconnection_idis the same indbtcloud_project_connectionand in theconnection_idof the Development environment of the project - credentials
Id number - Credential ID for this environment. A credential is not required for development environments, as dbt Cloud defaults to the user's credentials, but deployment environments will have this.
- custom
Branch string - The custom branch name to use
- dbt
Version string - Version number of dbt to use in this environment.
- deployment
Type string - The type of deployment environment (currently 'production', 'staging' or empty)
- enable
Model booleanQuery History - Whether model query history is on
- environment
Id number - The ID of the environment
- extended
Attributes numberId - The ID of the extended attributes applied
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the environment
- primary
Profile numberId - The ID of the primary profile for this environment
- project
Id number - The project ID to which the environment belongs
- type string
- The type of environment (must be either development or deployment)
- use
Custom booleanBranch - Whether to use a custom git branch in this environment
- connection_
id int - The ID of the connection to use (can be the
idof adbtcloud.GlobalConnectionor theconnection_idof a legacy connection). At the moment, it is optional and the environment will use the connection set indbtcloud_project_connectionifconnection_idis not set in this resource. In future versions this field will become required, so it is recommended to set it from now on. When configuring this field, it needs to be configured for all the environments of the project. To avoid Terraform state issues, when using this field, thedbtcloud_project_connectionresource should be removed from the project or you need to make sure that theconnection_idis the same indbtcloud_project_connectionand in theconnection_idof the Development environment of the project - credentials_
id int - Credential ID for this environment. A credential is not required for development environments, as dbt Cloud defaults to the user's credentials, but deployment environments will have this.
- custom_
branch str - The custom branch name to use
- dbt_
version str - Version number of dbt to use in this environment.
- deployment_
type str - The type of deployment environment (currently 'production', 'staging' or empty)
- enable_
model_ boolquery_ history - Whether model query history is on
- environment_
id int - The ID of the environment
- extended_
attributes_ intid - The ID of the extended attributes applied
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the environment
- primary_
profile_ intid - The ID of the primary profile for this environment
- project_
id int - The project ID to which the environment belongs
- type str
- The type of environment (must be either development or deployment)
- use_
custom_ boolbranch - Whether to use a custom git branch in this environment
- connection
Id Number - The ID of the connection to use (can be the
idof adbtcloud.GlobalConnectionor theconnection_idof a legacy connection). At the moment, it is optional and the environment will use the connection set indbtcloud_project_connectionifconnection_idis not set in this resource. In future versions this field will become required, so it is recommended to set it from now on. When configuring this field, it needs to be configured for all the environments of the project. To avoid Terraform state issues, when using this field, thedbtcloud_project_connectionresource should be removed from the project or you need to make sure that theconnection_idis the same indbtcloud_project_connectionand in theconnection_idof the Development environment of the project - credentials
Id Number - Credential ID for this environment. A credential is not required for development environments, as dbt Cloud defaults to the user's credentials, but deployment environments will have this.
- custom
Branch String - The custom branch name to use
- dbt
Version String - Version number of dbt to use in this environment.
- deployment
Type String - The type of deployment environment (currently 'production', 'staging' or empty)
- enable
Model BooleanQuery History - Whether model query history is on
- environment
Id Number - The ID of the environment
- extended
Attributes NumberId - The ID of the extended attributes applied
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the environment
- primary
Profile NumberId - The ID of the primary profile for this environment
- project
Id Number - The project ID to which the environment belongs
- type String
- The type of environment (must be either development or deployment)
- use
Custom BooleanBranch - Whether to use a custom git branch in this environment
Package Details
- Repository
- dbtcloud pulumi/pulumi-dbtcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dbtcloudTerraform Provider.
Viewing docs for dbt Cloud v1.6.1
published on Thursday, Feb 26, 2026 by Pulumi
published on Thursday, Feb 26, 2026 by Pulumi
