dbt Cloud v1.0.0 published on Wednesday, Jun 11, 2025 by Pulumi
dbtcloud.getJob
Explore with Pulumi AI
Get detailed information for a specific dbt Cloud job.
Using getJob
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 getJob(args: GetJobArgs, opts?: InvokeOptions): Promise<GetJobResult>
function getJobOutput(args: GetJobOutputArgs, opts?: InvokeOptions): Output<GetJobResult>
def get_job(job_completion_trigger_conditions: Optional[Sequence[GetJobJobCompletionTriggerCondition]] = None,
job_id: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetJobResult
def get_job_output(job_completion_trigger_conditions: Optional[pulumi.Input[Sequence[pulumi.Input[GetJobJobCompletionTriggerConditionArgs]]]] = None,
job_id: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetJobResult]
func LookupJob(ctx *Context, args *LookupJobArgs, opts ...InvokeOption) (*LookupJobResult, error)
func LookupJobOutput(ctx *Context, args *LookupJobOutputArgs, opts ...InvokeOption) LookupJobResultOutput
> Note: This function is named LookupJob
in the Go SDK.
public static class GetJob
{
public static Task<GetJobResult> InvokeAsync(GetJobArgs args, InvokeOptions? opts = null)
public static Output<GetJobResult> Invoke(GetJobInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetJobResult> getJob(GetJobArgs args, InvokeOptions options)
public static Output<GetJobResult> getJob(GetJobArgs args, InvokeOptions options)
fn::invoke:
function: dbtcloud:index/getJob:getJob
arguments:
# arguments dictionary
The following arguments are supported:
- Job
Id int - The ID of the job
- Completion
Trigger List<Pulumi.Condition Dbt Cloud. Inputs. Get Job Job Completion Trigger Condition> - Which other job should trigger this job when it finishes, and on which conditions. Format for the property will change in the next release to match the one from the one from dbtcloud*jobs.
- Job
Id int - The ID of the job
- Job
Completion []GetTrigger Conditions Job Job Completion Trigger Condition - Which other job should trigger this job when it finishes, and on which conditions. Format for the property will change in the next release to match the one from the one from dbtcloud*jobs.
- job
Id Integer - The ID of the job
- job
Completion List<GetTrigger Conditions Job Job Completion Trigger Condition> - Which other job should trigger this job when it finishes, and on which conditions. Format for the property will change in the next release to match the one from the one from dbtcloud*jobs.
- job
Id number - The ID of the job
- job
Completion GetTrigger Conditions Job Job Completion Trigger Condition[] - Which other job should trigger this job when it finishes, and on which conditions. Format for the property will change in the next release to match the one from the one from dbtcloud*jobs.
- job_
id int - The ID of the job
- job_
completion_ Sequence[Gettrigger_ conditions Job Job Completion Trigger Condition] - Which other job should trigger this job when it finishes, and on which conditions. Format for the property will change in the next release to match the one from the one from dbtcloud*jobs.
- job
Id Number - The ID of the job
- job
Completion List<Property Map>Trigger Conditions - Which other job should trigger this job when it finishes, and on which conditions. Format for the property will change in the next release to match the one from the one from dbtcloud*jobs.
getJob Result
The following output properties are available:
- Completion
Trigger List<Pulumi.Condition Dbt Cloud. Outputs. Get Job Job Completion Trigger Condition> - Which other job should trigger this job when it finishes, and on which conditions. Format for the property will change in the next release to match the one from the one from dbtcloud*jobs.
- Dbt
Version string - The version of dbt used for the job. If not set, the environment version will be used.
- Deferring
Environment intId - The ID of the environment this job defers to
- Deferring
Job intId - [Deprectated - Deferral is now set at the environment level] The ID of the job definition this job defers to
- Description string
- The description of the job
- Environment
Pulumi.
Dbt Cloud. Outputs. Get Job Environment - Details of the environment the job is running in
- Environment
Id int - The ID of environment
- Execute
Steps List<string> - The list of steps to run in the job
- Execution
Pulumi.
Dbt Cloud. Outputs. Get Job Execution - Generate
Docs bool - Whether the job generate docs
- Id int
- The ID of the job
- Job
Id int - The ID of the job
- Job
Type string - The type of job (e.g. CI, scheduled)
- Name string
- The name of the job
- Project
Id int - The ID of the project
- Run
Compare boolChanges - Whether the job should compare data changes introduced by the code change in the PR
- Run
Generate boolSources - Whether the job test source freshness
- Schedule
Pulumi.
Dbt Cloud. Outputs. Get Job Schedule - Self
Deferring bool - Whether this job defers on a previous run of itself (overrides value in deferringjobid)
- Settings
Pulumi.
Dbt Cloud. Outputs. Get Job Settings - Timeout
Seconds int - [Deprectated - Moved to execution.timeout_seconds] Number of seconds before the job times out
- Triggers
Pulumi.
Dbt Cloud. Outputs. Get Job Triggers - Triggers
On boolDraft Pr - Whether the CI job should be automatically triggered on draft PRs
- Dbt
Version string - The version of dbt used for the job. If not set, the environment version will be used.
- Deferring
Environment intId - The ID of the environment this job defers to
- Deferring
Job intId - [Deprectated - Deferral is now set at the environment level] The ID of the job definition this job defers to
- Description string
- The description of the job
- Environment
Get
Job Environment - Details of the environment the job is running in
- Environment
Id int - The ID of environment
- Execute
Steps []string - The list of steps to run in the job
- Execution
Get
Job Execution - Generate
Docs bool - Whether the job generate docs
- Id int
- The ID of the job
- Job
Completion []GetTrigger Conditions Job Job Completion Trigger Condition - Which other job should trigger this job when it finishes, and on which conditions. Format for the property will change in the next release to match the one from the one from dbtcloud*jobs.
- Job
Id int - The ID of the job
- Job
Type string - The type of job (e.g. CI, scheduled)
- Name string
- The name of the job
- Project
Id int - The ID of the project
- Run
Compare boolChanges - Whether the job should compare data changes introduced by the code change in the PR
- Run
Generate boolSources - Whether the job test source freshness
- Schedule
Get
Job Schedule - Self
Deferring bool - Whether this job defers on a previous run of itself (overrides value in deferringjobid)
- Settings
Get
Job Settings - Timeout
Seconds int - [Deprectated - Moved to execution.timeout_seconds] Number of seconds before the job times out
- Triggers
Get
Job Triggers - Triggers
On boolDraft Pr - Whether the CI job should be automatically triggered on draft PRs
- dbt
Version String - The version of dbt used for the job. If not set, the environment version will be used.
- deferring
Environment IntegerId - The ID of the environment this job defers to
- deferring
Job IntegerId - [Deprectated - Deferral is now set at the environment level] The ID of the job definition this job defers to
- description String
- The description of the job
- environment
Get
Job Environment - Details of the environment the job is running in
- environment
Id Integer - The ID of environment
- execute
Steps List<String> - The list of steps to run in the job
- execution
Get
Job Execution - generate
Docs Boolean - Whether the job generate docs
- id Integer
- The ID of the job
- job
Completion List<GetTrigger Conditions Job Job Completion Trigger Condition> - Which other job should trigger this job when it finishes, and on which conditions. Format for the property will change in the next release to match the one from the one from dbtcloud*jobs.
- job
Id Integer - The ID of the job
- job
Type String - The type of job (e.g. CI, scheduled)
- name String
- The name of the job
- project
Id Integer - The ID of the project
- run
Compare BooleanChanges - Whether the job should compare data changes introduced by the code change in the PR
- run
Generate BooleanSources - Whether the job test source freshness
- schedule
Get
Job Schedule - self
Deferring Boolean - Whether this job defers on a previous run of itself (overrides value in deferringjobid)
- settings
Get
Job Settings - timeout
Seconds Integer - [Deprectated - Moved to execution.timeout_seconds] Number of seconds before the job times out
- triggers
Get
Job Triggers - triggers
On BooleanDraft Pr - Whether the CI job should be automatically triggered on draft PRs
- dbt
Version string - The version of dbt used for the job. If not set, the environment version will be used.
- deferring
Environment numberId - The ID of the environment this job defers to
- deferring
Job numberId - [Deprectated - Deferral is now set at the environment level] The ID of the job definition this job defers to
- description string
- The description of the job
- environment
Get
Job Environment - Details of the environment the job is running in
- environment
Id number - The ID of environment
- execute
Steps string[] - The list of steps to run in the job
- execution
Get
Job Execution - generate
Docs boolean - Whether the job generate docs
- id number
- The ID of the job
- job
Completion GetTrigger Conditions Job Job Completion Trigger Condition[] - Which other job should trigger this job when it finishes, and on which conditions. Format for the property will change in the next release to match the one from the one from dbtcloud*jobs.
- job
Id number - The ID of the job
- job
Type string - The type of job (e.g. CI, scheduled)
- name string
- The name of the job
- project
Id number - The ID of the project
- run
Compare booleanChanges - Whether the job should compare data changes introduced by the code change in the PR
- run
Generate booleanSources - Whether the job test source freshness
- schedule
Get
Job Schedule - self
Deferring boolean - Whether this job defers on a previous run of itself (overrides value in deferringjobid)
- settings
Get
Job Settings - timeout
Seconds number - [Deprectated - Moved to execution.timeout_seconds] Number of seconds before the job times out
- triggers
Get
Job Triggers - triggers
On booleanDraft Pr - Whether the CI job should be automatically triggered on draft PRs
- dbt_
version str - The version of dbt used for the job. If not set, the environment version will be used.
- deferring_
environment_ intid - The ID of the environment this job defers to
- deferring_
job_ intid - [Deprectated - Deferral is now set at the environment level] The ID of the job definition this job defers to
- description str
- The description of the job
- environment
Get
Job Environment - Details of the environment the job is running in
- environment_
id int - The ID of environment
- execute_
steps Sequence[str] - The list of steps to run in the job
- execution
Get
Job Execution - generate_
docs bool - Whether the job generate docs
- id int
- The ID of the job
- job_
completion_ Sequence[Gettrigger_ conditions Job Job Completion Trigger Condition] - Which other job should trigger this job when it finishes, and on which conditions. Format for the property will change in the next release to match the one from the one from dbtcloud*jobs.
- job_
id int - The ID of the job
- job_
type str - The type of job (e.g. CI, scheduled)
- name str
- The name of the job
- project_
id int - The ID of the project
- run_
compare_ boolchanges - Whether the job should compare data changes introduced by the code change in the PR
- run_
generate_ boolsources - Whether the job test source freshness
- schedule
Get
Job Schedule - self_
deferring bool - Whether this job defers on a previous run of itself (overrides value in deferringjobid)
- settings
Get
Job Settings - timeout_
seconds int - [Deprectated - Moved to execution.timeout_seconds] Number of seconds before the job times out
- triggers
Get
Job Triggers - triggers_
on_ booldraft_ pr - Whether the CI job should be automatically triggered on draft PRs
- dbt
Version String - The version of dbt used for the job. If not set, the environment version will be used.
- deferring
Environment NumberId - The ID of the environment this job defers to
- deferring
Job NumberId - [Deprectated - Deferral is now set at the environment level] The ID of the job definition this job defers to
- description String
- The description of the job
- environment Property Map
- Details of the environment the job is running in
- environment
Id Number - The ID of environment
- execute
Steps List<String> - The list of steps to run in the job
- execution Property Map
- generate
Docs Boolean - Whether the job generate docs
- id Number
- The ID of the job
- job
Completion List<Property Map>Trigger Conditions - Which other job should trigger this job when it finishes, and on which conditions. Format for the property will change in the next release to match the one from the one from dbtcloud*jobs.
- job
Id Number - The ID of the job
- job
Type String - The type of job (e.g. CI, scheduled)
- name String
- The name of the job
- project
Id Number - The ID of the project
- run
Compare BooleanChanges - Whether the job should compare data changes introduced by the code change in the PR
- run
Generate BooleanSources - Whether the job test source freshness
- schedule Property Map
- self
Deferring Boolean - Whether this job defers on a previous run of itself (overrides value in deferringjobid)
- settings Property Map
- timeout
Seconds Number - [Deprectated - Moved to execution.timeout_seconds] Number of seconds before the job times out
- triggers Property Map
- triggers
On BooleanDraft Pr - Whether the CI job should be automatically triggered on draft PRs
Supporting Types
GetJobEnvironment
- Deployment
Type string - Type of deployment environment: staging, production
- Id int
- ID of the environment
- Name string
- Name of the environment
- Project
Id int - Type string
- Environment type: development or deployment
- Deployment
Type string - Type of deployment environment: staging, production
- Id int
- ID of the environment
- Name string
- Name of the environment
- Project
Id int - Type string
- Environment type: development or deployment
- deployment
Type String - Type of deployment environment: staging, production
- id Integer
- ID of the environment
- name String
- Name of the environment
- project
Id Integer - type String
- Environment type: development or deployment
- deployment
Type string - Type of deployment environment: staging, production
- id number
- ID of the environment
- name string
- Name of the environment
- project
Id number - type string
- Environment type: development or deployment
- deployment_
type str - Type of deployment environment: staging, production
- id int
- ID of the environment
- name str
- Name of the environment
- project_
id int - type str
- Environment type: development or deployment
- deployment
Type String - Type of deployment environment: staging, production
- id Number
- ID of the environment
- name String
- Name of the environment
- project
Id Number - type String
- Environment type: development or deployment
GetJobExecution
- Timeout
Seconds int - The number of seconds before the job times out
- Timeout
Seconds int - The number of seconds before the job times out
- timeout
Seconds Integer - The number of seconds before the job times out
- timeout
Seconds number - The number of seconds before the job times out
- timeout_
seconds int - The number of seconds before the job times out
- timeout
Seconds Number - The number of seconds before the job times out
GetJobJobCompletionTriggerCondition
- job_
id int - The ID of the job that would trigger this job after completion.
- project_
id int - The ID of the project where the trigger job is running in.
- statuses Sequence[str]
- List of statuses to trigger the job on.
GetJobSchedule
- Cron string
- The cron schedule for the job. Only used if triggers.schedule is true
- Cron string
- The cron schedule for the job. Only used if triggers.schedule is true
- cron String
- The cron schedule for the job. Only used if triggers.schedule is true
- cron string
- The cron schedule for the job. Only used if triggers.schedule is true
- cron str
- The cron schedule for the job. Only used if triggers.schedule is true
- cron String
- The cron schedule for the job. Only used if triggers.schedule is true
GetJobSettings
- Target
Name string - Value for
target.name
in the Jinja context - Threads int
- Number of threads to run dbt with
- Target
Name string - Value for
target.name
in the Jinja context - Threads int
- Number of threads to run dbt with
- target
Name String - Value for
target.name
in the Jinja context - threads Integer
- Number of threads to run dbt with
- target
Name string - Value for
target.name
in the Jinja context - threads number
- Number of threads to run dbt with
- target_
name str - Value for
target.name
in the Jinja context - threads int
- Number of threads to run dbt with
- target
Name String - Value for
target.name
in the Jinja context - threads Number
- Number of threads to run dbt with
GetJobTriggers
- Git
Provider boolWebhook - Whether the job runs automatically on PR creation
- Github
Webhook bool - Whether the job runs automatically on PR creation
- On
Merge bool - Whether the job runs automatically once a PR is merged
- Schedule bool
- Whether the job runs on a schedule
- Git
Provider boolWebhook - Whether the job runs automatically on PR creation
- Github
Webhook bool - Whether the job runs automatically on PR creation
- On
Merge bool - Whether the job runs automatically once a PR is merged
- Schedule bool
- Whether the job runs on a schedule
- git
Provider BooleanWebhook - Whether the job runs automatically on PR creation
- github
Webhook Boolean - Whether the job runs automatically on PR creation
- on
Merge Boolean - Whether the job runs automatically once a PR is merged
- schedule Boolean
- Whether the job runs on a schedule
- git
Provider booleanWebhook - Whether the job runs automatically on PR creation
- github
Webhook boolean - Whether the job runs automatically on PR creation
- on
Merge boolean - Whether the job runs automatically once a PR is merged
- schedule boolean
- Whether the job runs on a schedule
- git_
provider_ boolwebhook - Whether the job runs automatically on PR creation
- github_
webhook bool - Whether the job runs automatically on PR creation
- on_
merge bool - Whether the job runs automatically once a PR is merged
- schedule bool
- Whether the job runs on a schedule
- git
Provider BooleanWebhook - Whether the job runs automatically on PR creation
- github
Webhook Boolean - Whether the job runs automatically on PR creation
- on
Merge Boolean - Whether the job runs automatically once a PR is merged
- schedule Boolean
- Whether the job runs on a schedule
Package Details
- Repository
- dbtcloud pulumi/pulumi-dbtcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dbtcloud
Terraform Provider.