1. Packages
  2. dbt Cloud Provider
  3. API Docs
  4. getJob
dbt Cloud v1.0.0 published on Wednesday, Jun 11, 2025 by Pulumi

dbtcloud.getJob

Explore with Pulumi AI

dbtcloud logo
dbt Cloud v1.0.0 published on Wednesday, Jun 11, 2025 by Pulumi

    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:

    JobId int
    The ID of the job
    CompletionTriggerCondition List<Pulumi.DbtCloud.Inputs.GetJobJobCompletionTriggerCondition>
    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.
    JobId int
    The ID of the job
    JobCompletionTriggerConditions []GetJobJobCompletionTriggerCondition
    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.
    jobId Integer
    The ID of the job
    jobCompletionTriggerConditions List<GetJobJobCompletionTriggerCondition>
    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.
    jobId number
    The ID of the job
    jobCompletionTriggerConditions GetJobJobCompletionTriggerCondition[]
    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_trigger_conditions Sequence[GetJobJobCompletionTriggerCondition]
    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.
    jobId Number
    The ID of the job
    jobCompletionTriggerConditions List<Property Map>
    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:

    CompletionTriggerCondition List<Pulumi.DbtCloud.Outputs.GetJobJobCompletionTriggerCondition>
    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.
    DbtVersion string
    The version of dbt used for the job. If not set, the environment version will be used.
    DeferringEnvironmentId int
    The ID of the environment this job defers to
    DeferringJobId int
    [Deprectated - Deferral is now set at the environment level] The ID of the job definition this job defers to

    Deprecated: Deferral is now set at the environment level

    Description string
    The description of the job
    Environment Pulumi.DbtCloud.Outputs.GetJobEnvironment
    Details of the environment the job is running in
    EnvironmentId int
    The ID of environment
    ExecuteSteps List<string>
    The list of steps to run in the job
    Execution Pulumi.DbtCloud.Outputs.GetJobExecution
    GenerateDocs bool
    Whether the job generate docs
    Id int
    The ID of the job
    JobId int
    The ID of the job
    JobType string
    The type of job (e.g. CI, scheduled)
    Name string
    The name of the job
    ProjectId int
    The ID of the project
    RunCompareChanges bool
    Whether the job should compare data changes introduced by the code change in the PR
    RunGenerateSources bool
    Whether the job test source freshness
    Schedule Pulumi.DbtCloud.Outputs.GetJobSchedule
    SelfDeferring bool
    Whether this job defers on a previous run of itself (overrides value in deferringjobid)
    Settings Pulumi.DbtCloud.Outputs.GetJobSettings
    TimeoutSeconds int
    [Deprectated - Moved to execution.timeout_seconds] Number of seconds before the job times out

    Deprecated: Moved to execution.timeout_seconds

    Triggers Pulumi.DbtCloud.Outputs.GetJobTriggers
    TriggersOnDraftPr bool
    Whether the CI job should be automatically triggered on draft PRs
    DbtVersion string
    The version of dbt used for the job. If not set, the environment version will be used.
    DeferringEnvironmentId int
    The ID of the environment this job defers to
    DeferringJobId int
    [Deprectated - Deferral is now set at the environment level] The ID of the job definition this job defers to

    Deprecated: Deferral is now set at the environment level

    Description string
    The description of the job
    Environment GetJobEnvironment
    Details of the environment the job is running in
    EnvironmentId int
    The ID of environment
    ExecuteSteps []string
    The list of steps to run in the job
    Execution GetJobExecution
    GenerateDocs bool
    Whether the job generate docs
    Id int
    The ID of the job
    JobCompletionTriggerConditions []GetJobJobCompletionTriggerCondition
    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.
    JobId int
    The ID of the job
    JobType string
    The type of job (e.g. CI, scheduled)
    Name string
    The name of the job
    ProjectId int
    The ID of the project
    RunCompareChanges bool
    Whether the job should compare data changes introduced by the code change in the PR
    RunGenerateSources bool
    Whether the job test source freshness
    Schedule GetJobSchedule
    SelfDeferring bool
    Whether this job defers on a previous run of itself (overrides value in deferringjobid)
    Settings GetJobSettings
    TimeoutSeconds int
    [Deprectated - Moved to execution.timeout_seconds] Number of seconds before the job times out

    Deprecated: Moved to execution.timeout_seconds

    Triggers GetJobTriggers
    TriggersOnDraftPr bool
    Whether the CI job should be automatically triggered on draft PRs
    dbtVersion String
    The version of dbt used for the job. If not set, the environment version will be used.
    deferringEnvironmentId Integer
    The ID of the environment this job defers to
    deferringJobId Integer
    [Deprectated - Deferral is now set at the environment level] The ID of the job definition this job defers to

    Deprecated: Deferral is now set at the environment level

    description String
    The description of the job
    environment GetJobEnvironment
    Details of the environment the job is running in
    environmentId Integer
    The ID of environment
    executeSteps List<String>
    The list of steps to run in the job
    execution GetJobExecution
    generateDocs Boolean
    Whether the job generate docs
    id Integer
    The ID of the job
    jobCompletionTriggerConditions List<GetJobJobCompletionTriggerCondition>
    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.
    jobId Integer
    The ID of the job
    jobType String
    The type of job (e.g. CI, scheduled)
    name String
    The name of the job
    projectId Integer
    The ID of the project
    runCompareChanges Boolean
    Whether the job should compare data changes introduced by the code change in the PR
    runGenerateSources Boolean
    Whether the job test source freshness
    schedule GetJobSchedule
    selfDeferring Boolean
    Whether this job defers on a previous run of itself (overrides value in deferringjobid)
    settings GetJobSettings
    timeoutSeconds Integer
    [Deprectated - Moved to execution.timeout_seconds] Number of seconds before the job times out

    Deprecated: Moved to execution.timeout_seconds

    triggers GetJobTriggers
    triggersOnDraftPr Boolean
    Whether the CI job should be automatically triggered on draft PRs
    dbtVersion string
    The version of dbt used for the job. If not set, the environment version will be used.
    deferringEnvironmentId number
    The ID of the environment this job defers to
    deferringJobId number
    [Deprectated - Deferral is now set at the environment level] The ID of the job definition this job defers to

    Deprecated: Deferral is now set at the environment level

    description string
    The description of the job
    environment GetJobEnvironment
    Details of the environment the job is running in
    environmentId number
    The ID of environment
    executeSteps string[]
    The list of steps to run in the job
    execution GetJobExecution
    generateDocs boolean
    Whether the job generate docs
    id number
    The ID of the job
    jobCompletionTriggerConditions GetJobJobCompletionTriggerCondition[]
    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.
    jobId number
    The ID of the job
    jobType string
    The type of job (e.g. CI, scheduled)
    name string
    The name of the job
    projectId number
    The ID of the project
    runCompareChanges boolean
    Whether the job should compare data changes introduced by the code change in the PR
    runGenerateSources boolean
    Whether the job test source freshness
    schedule GetJobSchedule
    selfDeferring boolean
    Whether this job defers on a previous run of itself (overrides value in deferringjobid)
    settings GetJobSettings
    timeoutSeconds number
    [Deprectated - Moved to execution.timeout_seconds] Number of seconds before the job times out

    Deprecated: Moved to execution.timeout_seconds

    triggers GetJobTriggers
    triggersOnDraftPr boolean
    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_id int
    The ID of the environment this job defers to
    deferring_job_id int
    [Deprectated - Deferral is now set at the environment level] The ID of the job definition this job defers to

    Deprecated: Deferral is now set at the environment level

    description str
    The description of the job
    environment GetJobEnvironment
    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 GetJobExecution
    generate_docs bool
    Whether the job generate docs
    id int
    The ID of the job
    job_completion_trigger_conditions Sequence[GetJobJobCompletionTriggerCondition]
    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_changes bool
    Whether the job should compare data changes introduced by the code change in the PR
    run_generate_sources bool
    Whether the job test source freshness
    schedule GetJobSchedule
    self_deferring bool
    Whether this job defers on a previous run of itself (overrides value in deferringjobid)
    settings GetJobSettings
    timeout_seconds int
    [Deprectated - Moved to execution.timeout_seconds] Number of seconds before the job times out

    Deprecated: Moved to execution.timeout_seconds

    triggers GetJobTriggers
    triggers_on_draft_pr bool
    Whether the CI job should be automatically triggered on draft PRs
    dbtVersion String
    The version of dbt used for the job. If not set, the environment version will be used.
    deferringEnvironmentId Number
    The ID of the environment this job defers to
    deferringJobId Number
    [Deprectated - Deferral is now set at the environment level] The ID of the job definition this job defers to

    Deprecated: Deferral is now set at the environment level

    description String
    The description of the job
    environment Property Map
    Details of the environment the job is running in
    environmentId Number
    The ID of environment
    executeSteps List<String>
    The list of steps to run in the job
    execution Property Map
    generateDocs Boolean
    Whether the job generate docs
    id Number
    The ID of the job
    jobCompletionTriggerConditions List<Property Map>
    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.
    jobId Number
    The ID of the job
    jobType String
    The type of job (e.g. CI, scheduled)
    name String
    The name of the job
    projectId Number
    The ID of the project
    runCompareChanges Boolean
    Whether the job should compare data changes introduced by the code change in the PR
    runGenerateSources Boolean
    Whether the job test source freshness
    schedule Property Map
    selfDeferring Boolean
    Whether this job defers on a previous run of itself (overrides value in deferringjobid)
    settings Property Map
    timeoutSeconds Number
    [Deprectated - Moved to execution.timeout_seconds] Number of seconds before the job times out

    Deprecated: Moved to execution.timeout_seconds

    triggers Property Map
    triggersOnDraftPr Boolean
    Whether the CI job should be automatically triggered on draft PRs

    Supporting Types

    GetJobEnvironment

    DeploymentType string
    Type of deployment environment: staging, production
    Id int
    ID of the environment
    Name string
    Name of the environment
    ProjectId int
    Type string
    Environment type: development or deployment
    DeploymentType string
    Type of deployment environment: staging, production
    Id int
    ID of the environment
    Name string
    Name of the environment
    ProjectId int
    Type string
    Environment type: development or deployment
    deploymentType String
    Type of deployment environment: staging, production
    id Integer
    ID of the environment
    name String
    Name of the environment
    projectId Integer
    type String
    Environment type: development or deployment
    deploymentType string
    Type of deployment environment: staging, production
    id number
    ID of the environment
    name string
    Name of the environment
    projectId 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
    deploymentType String
    Type of deployment environment: staging, production
    id Number
    ID of the environment
    name String
    Name of the environment
    projectId Number
    type String
    Environment type: development or deployment

    GetJobExecution

    TimeoutSeconds int
    The number of seconds before the job times out
    TimeoutSeconds int
    The number of seconds before the job times out
    timeoutSeconds Integer
    The number of seconds before the job times out
    timeoutSeconds number
    The number of seconds before the job times out
    timeout_seconds int
    The number of seconds before the job times out
    timeoutSeconds Number
    The number of seconds before the job times out

    GetJobJobCompletionTriggerCondition

    JobId int
    The ID of the job that would trigger this job after completion.
    ProjectId int
    The ID of the project where the trigger job is running in.
    Statuses List<string>
    List of statuses to trigger the job on.
    JobId int
    The ID of the job that would trigger this job after completion.
    ProjectId int
    The ID of the project where the trigger job is running in.
    Statuses []string
    List of statuses to trigger the job on.
    jobId Integer
    The ID of the job that would trigger this job after completion.
    projectId Integer
    The ID of the project where the trigger job is running in.
    statuses List<String>
    List of statuses to trigger the job on.
    jobId number
    The ID of the job that would trigger this job after completion.
    projectId number
    The ID of the project where the trigger job is running in.
    statuses string[]
    List of statuses to trigger the job on.
    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.
    jobId Number
    The ID of the job that would trigger this job after completion.
    projectId Number
    The ID of the project where the trigger job is running in.
    statuses List<String>
    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

    TargetName string
    Value for target.name in the Jinja context
    Threads int
    Number of threads to run dbt with
    TargetName string
    Value for target.name in the Jinja context
    Threads int
    Number of threads to run dbt with
    targetName String
    Value for target.name in the Jinja context
    threads Integer
    Number of threads to run dbt with
    targetName 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
    targetName String
    Value for target.name in the Jinja context
    threads Number
    Number of threads to run dbt with

    GetJobTriggers

    GitProviderWebhook bool
    Whether the job runs automatically on PR creation
    GithubWebhook bool
    Whether the job runs automatically on PR creation
    OnMerge bool
    Whether the job runs automatically once a PR is merged
    Schedule bool
    Whether the job runs on a schedule
    GitProviderWebhook bool
    Whether the job runs automatically on PR creation
    GithubWebhook bool
    Whether the job runs automatically on PR creation
    OnMerge bool
    Whether the job runs automatically once a PR is merged
    Schedule bool
    Whether the job runs on a schedule
    gitProviderWebhook Boolean
    Whether the job runs automatically on PR creation
    githubWebhook Boolean
    Whether the job runs automatically on PR creation
    onMerge Boolean
    Whether the job runs automatically once a PR is merged
    schedule Boolean
    Whether the job runs on a schedule
    gitProviderWebhook boolean
    Whether the job runs automatically on PR creation
    githubWebhook boolean
    Whether the job runs automatically on PR creation
    onMerge boolean
    Whether the job runs automatically once a PR is merged
    schedule boolean
    Whether the job runs on a schedule
    git_provider_webhook bool
    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
    gitProviderWebhook Boolean
    Whether the job runs automatically on PR creation
    githubWebhook Boolean
    Whether the job runs automatically on PR creation
    onMerge 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.
    dbtcloud logo
    dbt Cloud v1.0.0 published on Wednesday, Jun 11, 2025 by Pulumi