dbt Cloud v0.1.25 published on Friday, Nov 8, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: dbtcloud:index/getJob:getJob
arguments:
# arguments dictionary
The 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:
- 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.
- Deferring
Environment intId - ID of the environment this job defers to
- Deferring
Job intId - ID of the job this job defers to
- Description string
- Long description for the job
- Environment
Id int - ID of the environment the job is in
- Id string
- The provider-assigned unique ID for this managed resource.
- Job
Id int - ID of the job
- Name string
- 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 Dictionary<string, 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
- Deferring
Environment intId - ID of the environment this job defers to
- Deferring
Job intId - ID of the job this job defers to
- Description string
- Long description for the job
- Environment
Id int - ID of the environment the job is in
- Id string
- The provider-assigned unique ID for this managed resource.
- Job
Completion []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 string
- 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 map[string]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
- deferring
Environment IntegerId - ID of the environment this job defers to
- deferring
Job IntegerId - ID of the job this job defers to
- description String
- Long description for the job
- environment
Id Integer - ID of the environment the job is in
- id String
- The provider-assigned unique ID for this managed resource.
- job
Completion List<GetTrigger Conditions Job Job Completion Trigger Condition> - Which other job should trigger this job when it finishes, and on which conditions.
- job
Id Integer - ID of the job
- name String
- Given name for the job
- project
Id Integer - ID of the project the job is in
- run
Compare BooleanChanges - Whether the CI job should compare data changes introduced by the code change in the PR.
- self
Deferring Boolean - Whether this job defers on a previous run of itself (overrides value in deferringjobid)
- timeout
Seconds 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
- triggers
On BooleanDraft Pr - Whether the CI job should be automatically triggered on draft PRs
- deferring
Environment numberId - ID of the environment this job defers to
- deferring
Job numberId - ID of the job this job defers to
- description string
- Long description for the job
- environment
Id number - ID of the environment the job is in
- id string
- The provider-assigned unique ID for this managed resource.
- job
Completion GetTrigger Conditions Job Job Completion Trigger Condition[] - Which other job should trigger this job when it finishes, and on which conditions.
- job
Id number - ID of the job
- name string
- Given name for the job
- project
Id number - ID of the project the job is in
- run
Compare booleanChanges - Whether the CI job should compare data changes introduced by the code change in the PR.
- self
Deferring boolean - Whether this job defers on a previous run of itself (overrides value in deferringjobid)
- timeout
Seconds 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
- triggers
On 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
- deferring
Environment NumberId - ID of the environment this job defers to
- deferring
Job NumberId - ID of the job this job defers to
- description String
- Long description for the job
- environment
Id Number - ID of the environment the job is in
- id String
- The provider-assigned unique ID for this managed resource.
- job
Completion List<Property Map>Trigger Conditions - Which other job should trigger this job when it finishes, and on which conditions.
- job
Id Number - ID of the job
- name String
- Given name for the job
- project
Id Number - ID of the project the job is in
- run
Compare BooleanChanges - Whether the CI job should compare data changes introduced by the code change in the PR.
- self
Deferring Boolean - Whether this job defers on a previous run of itself (overrides value in deferringjobid)
- timeout
Seconds 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
- triggers
On 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
dbtcloud
Terraform Provider.