dbt Cloud v0.1.30 published on Thursday, Mar 20, 2025 by Pulumi
dbtcloud.getJob
Explore with Pulumi AI
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_id: Optional[int] = None,
            project_id: Optional[int] = None,
            opts: Optional[InvokeOptions] = None) -> GetJobResult
def get_job_output(job_id: Optional[pulumi.Input[int]] = None,
            project_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 dictionaryThe following arguments are supported:
- job_id int
- ID of the job
- project_id int
- ID of the project the job is in
getJob Result
The following output properties are available:
- CompletionTrigger 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.
- DeferringEnvironment intId 
- ID of the environment this job defers to
- DeferringJob intId 
- ID of the job this job defers to
- Description string
- Long description for the job
- EnvironmentId int
- ID of the environment the job is in
- Id string
- The provider-assigned unique ID for this managed resource.
- JobId int
- ID of the job
- Name string
- Given name for the job
- ProjectId int
- ID of the project the job is in
- RunCompare boolChanges 
- Whether the CI job should compare data changes introduced by the code change in the PR.
- SelfDeferring bool
- Whether this job defers on a previous run of itself (overrides value in deferringjobid)
- TimeoutSeconds int
- Number of seconds before the job times out
- Triggers Dictionary<string, bool>
- Flags for which types of triggers to use, keys of githubwebhook, gitproviderwebhook, schedule, onmerge
- TriggersOn boolDraft Pr 
- Whether the CI job should be automatically triggered on draft PRs
- DeferringEnvironment intId 
- ID of the environment this job defers to
- DeferringJob intId 
- ID of the job this job defers to
- Description string
- Long description for the job
- EnvironmentId int
- ID of the environment the job is in
- Id string
- The provider-assigned unique ID for this managed resource.
- JobCompletion []GetTrigger Conditions Job Job Completion Trigger Condition 
- Which other job should trigger this job when it finishes, and on which conditions.
- JobId int
- ID of the job
- Name string
- Given name for the job
- ProjectId int
- ID of the project the job is in
- RunCompare boolChanges 
- Whether the CI job should compare data changes introduced by the code change in the PR.
- SelfDeferring bool
- Whether this job defers on a previous run of itself (overrides value in deferringjobid)
- TimeoutSeconds int
- Number of seconds before the job times out
- Triggers map[string]bool
- Flags for which types of triggers to use, keys of githubwebhook, gitproviderwebhook, schedule, onmerge
- TriggersOn boolDraft Pr 
- Whether the CI job should be automatically triggered on draft PRs
- deferringEnvironment IntegerId 
- ID of the environment this job defers to
- deferringJob IntegerId 
- ID of the job this job defers to
- description String
- Long description for the job
- environmentId Integer
- ID of the environment the job is in
- id String
- The provider-assigned unique ID for this managed resource.
- jobCompletion List<GetTrigger Conditions Job Job Completion Trigger Condition> 
- Which other job should trigger this job when it finishes, and on which conditions.
- jobId Integer
- ID of the job
- name String
- Given name for the job
- projectId Integer
- ID of the project the job is in
- runCompare BooleanChanges 
- Whether the CI job should compare data changes introduced by the code change in the PR.
- selfDeferring Boolean
- Whether this job defers on a previous run of itself (overrides value in deferringjobid)
- timeoutSeconds Integer
- Number of seconds before the job times out
- triggers Map<String,Boolean>
- Flags for which types of triggers to use, keys of githubwebhook, gitproviderwebhook, schedule, onmerge
- triggersOn BooleanDraft Pr 
- Whether the CI job should be automatically triggered on draft PRs
- deferringEnvironment numberId 
- ID of the environment this job defers to
- deferringJob numberId 
- ID of the job this job defers to
- description string
- Long description for the job
- environmentId number
- ID of the environment the job is in
- id string
- The provider-assigned unique ID for this managed resource.
- jobCompletion GetTrigger Conditions Job Job Completion Trigger Condition[] 
- Which other job should trigger this job when it finishes, and on which conditions.
- jobId number
- ID of the job
- name string
- Given name for the job
- projectId number
- ID of the project the job is in
- runCompare booleanChanges 
- Whether the CI job should compare data changes introduced by the code change in the PR.
- selfDeferring boolean
- Whether this job defers on a previous run of itself (overrides value in deferringjobid)
- timeoutSeconds number
- Number of seconds before the job times out
- triggers {[key: string]: boolean}
- Flags for which types of triggers to use, keys of githubwebhook, gitproviderwebhook, schedule, onmerge
- triggersOn booleanDraft Pr 
- Whether the CI job should be automatically triggered on draft PRs
- deferring_environment_ intid 
- ID of the environment this job defers to
- deferring_job_ intid 
- ID of the job this job defers to
- description str
- Long description for the job
- environment_id int
- ID of the environment the job is in
- id str
- The provider-assigned unique ID for this managed resource.
- job_completion_ Sequence[Gettrigger_ conditions Job Job Completion Trigger Condition] 
- Which other job should trigger this job when it finishes, and on which conditions.
- job_id int
- ID of the job
- name str
- Given name for the job
- project_id int
- ID of the project the job is in
- run_compare_ boolchanges 
- Whether the CI job should compare data changes introduced by the code change in the PR.
- self_deferring bool
- Whether this job defers on a previous run of itself (overrides value in deferringjobid)
- timeout_seconds int
- Number of seconds before the job times out
- triggers Mapping[str, bool]
- Flags for which types of triggers to use, keys of githubwebhook, gitproviderwebhook, schedule, onmerge
- triggers_on_ booldraft_ pr 
- Whether the CI job should be automatically triggered on draft PRs
- deferringEnvironment NumberId 
- ID of the environment this job defers to
- deferringJob NumberId 
- ID of the job this job defers to
- description String
- Long description for the job
- environmentId Number
- ID of the environment the job is in
- id String
- The provider-assigned unique ID for this managed resource.
- jobCompletion List<Property Map>Trigger Conditions 
- Which other job should trigger this job when it finishes, and on which conditions.
- jobId Number
- ID of the job
- name String
- Given name for the job
- projectId Number
- ID of the project the job is in
- runCompare BooleanChanges 
- Whether the CI job should compare data changes introduced by the code change in the PR.
- selfDeferring Boolean
- Whether this job defers on a previous run of itself (overrides value in deferringjobid)
- timeoutSeconds Number
- Number of seconds before the job times out
- triggers Map<Boolean>
- Flags for which types of triggers to use, keys of githubwebhook, gitproviderwebhook, schedule, onmerge
- triggersOn BooleanDraft Pr 
- Whether the CI job should be automatically triggered on draft PRs
Supporting Types
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.
Package Details
- Repository
- dbtcloud pulumi/pulumi-dbtcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the dbtcloudTerraform Provider.
