1. Packages
  2. Dbtcloud Provider
  3. API Docs
  4. getJob
dbt Cloud v0.1.25 published on Friday, Nov 8, 2024 by Pulumi

dbtcloud.getJob

Explore with Pulumi AI

dbtcloud logo
dbt Cloud v0.1.25 published on Friday, Nov 8, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: dbtcloud:index/getJob:getJob
      arguments:
        # arguments dictionary

    The following arguments are supported:

    JobId int
    ID of the job
    ProjectId int
    ID of the project the job is in
    JobId int
    ID of the job
    ProjectId int
    ID of the project the job is in
    jobId Integer
    ID of the job
    projectId Integer
    ID of the project the job is in
    jobId number
    ID of the job
    projectId number
    ID of the project the job is in
    job_id int
    ID of the job
    project_id int
    ID of the project the job is in
    jobId Number
    ID of the job
    projectId Number
    ID of the project the job is in

    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.
    DeferringEnvironmentId int
    ID of the environment this job defers to
    DeferringJobId int
    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
    RunCompareChanges bool
    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
    TriggersOnDraftPr bool
    Whether the CI job should be automatically triggered on draft PRs
    DeferringEnvironmentId int
    ID of the environment this job defers to
    DeferringJobId int
    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.
    JobCompletionTriggerConditions []GetJobJobCompletionTriggerCondition
    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
    RunCompareChanges bool
    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
    TriggersOnDraftPr bool
    Whether the CI job should be automatically triggered on draft PRs
    deferringEnvironmentId Integer
    ID of the environment this job defers to
    deferringJobId Integer
    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.
    jobCompletionTriggerConditions List<GetJobJobCompletionTriggerCondition>
    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
    runCompareChanges Boolean
    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
    triggersOnDraftPr Boolean
    Whether the CI job should be automatically triggered on draft PRs
    deferringEnvironmentId number
    ID of the environment this job defers to
    deferringJobId number
    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.
    jobCompletionTriggerConditions GetJobJobCompletionTriggerCondition[]
    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
    runCompareChanges boolean
    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
    triggersOnDraftPr boolean
    Whether the CI job should be automatically triggered on draft PRs
    deferring_environment_id int
    ID of the environment this job defers to
    deferring_job_id int
    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_trigger_conditions Sequence[GetJobJobCompletionTriggerCondition]
    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_changes bool
    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_draft_pr bool
    Whether the CI job should be automatically triggered on draft PRs
    deferringEnvironmentId Number
    ID of the environment this job defers to
    deferringJobId Number
    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.
    jobCompletionTriggerConditions List<Property Map>
    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
    runCompareChanges Boolean
    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
    triggersOnDraftPr Boolean
    Whether the CI job should be automatically triggered on draft PRs

    Supporting Types

    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.

    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 v0.1.25 published on Friday, Nov 8, 2024 by Pulumi