Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getJob

This data source provides details about a specific Job resource in Oracle Cloud Infrastructure Data Science service.

Gets a job.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testJob = Oci.DataScience.GetJob.Invoke(new()
    {
        JobId = oci_datascience_job.Test_job.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/DataScience"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := DataScience.GetJob(ctx, &datascience.GetJobArgs{
			JobId: oci_datascience_job.Test_job.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataScience.DataScienceFunctions;
import com.pulumi.oci.DataScience.inputs.GetJobArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var testJob = DataScienceFunctions.getJob(GetJobArgs.builder()
            .jobId(oci_datascience_job.test_job().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_job = oci.DataScience.get_job(job_id=oci_datascience_job["test_job"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testJob = oci.DataScience.getJob({
    jobId: oci_datascience_job.test_job.id,
});
variables:
  testJob:
    Fn::Invoke:
      Function: oci:DataScience:getJob
      Arguments:
        jobId: ${oci_datascience_job.test_job.id}

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[str] = None,
            opts: Optional[InvokeOptions] = None) -> GetJobResult
def get_job_output(job_id: Optional[pulumi.Input[str]] = None,
            opts: Optional[InvokeOptions] = None) -> Output[GetJobResult]
func GetJob(ctx *Context, args *GetJobArgs, opts ...InvokeOption) (*GetJobResult, error)
func GetJobOutput(ctx *Context, args *GetJobOutputArgs, opts ...InvokeOption) GetJobResultOutput

> Note: This function is named GetJob 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: oci:DataScience/getJob:getJob
  arguments:
    # arguments dictionary

The following arguments are supported:

JobId string

The OCID of the job.

JobId string

The OCID of the job.

jobId String

The OCID of the job.

jobId string

The OCID of the job.

job_id str

The OCID of the job.

jobId String

The OCID of the job.

getJob Result

The following output properties are available:

ArtifactContentDisposition string
ArtifactContentLength string
ArtifactContentMd5 string
ArtifactLastModified string
CompartmentId string

The OCID of the compartment where you want to create the job.

CreatedBy string

The OCID of the user who created the project.

DefinedTags Dictionary<string, object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

DeleteRelatedJobRuns bool
Description string

A short description of the job.

DisplayName string

A user-friendly display name for the resource.

EmptyArtifact bool
FreeformTags Dictionary<string, object>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}

Id string

The OCID of the job.

JobArtifact string
JobConfigurationDetails List<GetJobJobConfigurationDetail>

The job configuration details

JobId string
JobInfrastructureConfigurationDetails List<GetJobJobInfrastructureConfigurationDetail>

The job infrastructure configuration details (shape, block storage, etc.)

JobLogConfigurationDetails List<GetJobJobLogConfigurationDetail>

Logging configuration for resource.

LifecycleDetails string

The state of the job.

ProjectId string

The OCID of the project to associate the job with.

State string

The state of the job.

TimeCreated string

The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2020-08-06T21:10:29.41Z

ArtifactContentDisposition string
ArtifactContentLength string
ArtifactContentMd5 string
ArtifactLastModified string
CompartmentId string

The OCID of the compartment where you want to create the job.

CreatedBy string

The OCID of the user who created the project.

DefinedTags map[string]interface{}

Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

DeleteRelatedJobRuns bool
Description string

A short description of the job.

DisplayName string

A user-friendly display name for the resource.

EmptyArtifact bool
FreeformTags map[string]interface{}

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}

Id string

The OCID of the job.

JobArtifact string
JobConfigurationDetails []GetJobJobConfigurationDetail

The job configuration details

JobId string
JobInfrastructureConfigurationDetails []GetJobJobInfrastructureConfigurationDetail

The job infrastructure configuration details (shape, block storage, etc.)

JobLogConfigurationDetails []GetJobJobLogConfigurationDetail

Logging configuration for resource.

LifecycleDetails string

The state of the job.

ProjectId string

The OCID of the project to associate the job with.

State string

The state of the job.

TimeCreated string

The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2020-08-06T21:10:29.41Z

artifactContentDisposition String
artifactContentLength String
artifactContentMd5 String
artifactLastModified String
compartmentId String

The OCID of the compartment where you want to create the job.

createdBy String

The OCID of the user who created the project.

definedTags Map<String,Object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

deleteRelatedJobRuns Boolean
description String

A short description of the job.

displayName String

A user-friendly display name for the resource.

emptyArtifact Boolean
freeformTags Map<String,Object>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}

id String

The OCID of the job.

jobArtifact String
jobConfigurationDetails List<GetJobJobConfigurationDetail>

The job configuration details

jobId String
jobInfrastructureConfigurationDetails List<GetJobJobInfrastructureConfigurationDetail>

The job infrastructure configuration details (shape, block storage, etc.)

jobLogConfigurationDetails List<GetJobJobLogConfigurationDetail>

Logging configuration for resource.

lifecycleDetails String

The state of the job.

projectId String

The OCID of the project to associate the job with.

state String

The state of the job.

timeCreated String

The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2020-08-06T21:10:29.41Z

artifactContentDisposition string
artifactContentLength string
artifactContentMd5 string
artifactLastModified string
compartmentId string

The OCID of the compartment where you want to create the job.

createdBy string

The OCID of the user who created the project.

definedTags {[key: string]: any}

Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

deleteRelatedJobRuns boolean
description string

A short description of the job.

displayName string

A user-friendly display name for the resource.

emptyArtifact boolean
freeformTags {[key: string]: any}

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}

id string

The OCID of the job.

jobArtifact string
jobConfigurationDetails GetJobJobConfigurationDetail[]

The job configuration details

jobId string
jobInfrastructureConfigurationDetails GetJobJobInfrastructureConfigurationDetail[]

The job infrastructure configuration details (shape, block storage, etc.)

jobLogConfigurationDetails GetJobJobLogConfigurationDetail[]

Logging configuration for resource.

lifecycleDetails string

The state of the job.

projectId string

The OCID of the project to associate the job with.

state string

The state of the job.

timeCreated string

The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2020-08-06T21:10:29.41Z

artifact_content_disposition str
artifact_content_length str
artifact_content_md5 str
artifact_last_modified str
compartment_id str

The OCID of the compartment where you want to create the job.

created_by str

The OCID of the user who created the project.

defined_tags Mapping[str, Any]

Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

delete_related_job_runs bool
description str

A short description of the job.

display_name str

A user-friendly display name for the resource.

empty_artifact bool
freeform_tags Mapping[str, Any]

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}

id str

The OCID of the job.

job_artifact str
job_configuration_details GetJobJobConfigurationDetail]

The job configuration details

job_id str
job_infrastructure_configuration_details GetJobJobInfrastructureConfigurationDetail]

The job infrastructure configuration details (shape, block storage, etc.)

job_log_configuration_details GetJobJobLogConfigurationDetail]

Logging configuration for resource.

lifecycle_details str

The state of the job.

project_id str

The OCID of the project to associate the job with.

state str

The state of the job.

time_created str

The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2020-08-06T21:10:29.41Z

artifactContentDisposition String
artifactContentLength String
artifactContentMd5 String
artifactLastModified String
compartmentId String

The OCID of the compartment where you want to create the job.

createdBy String

The OCID of the user who created the project.

definedTags Map<Any>

Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

deleteRelatedJobRuns Boolean
description String

A short description of the job.

displayName String

A user-friendly display name for the resource.

emptyArtifact Boolean
freeformTags Map<Any>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}

id String

The OCID of the job.

jobArtifact String
jobConfigurationDetails List<Property Map>

The job configuration details

jobId String
jobInfrastructureConfigurationDetails List<Property Map>

The job infrastructure configuration details (shape, block storage, etc.)

jobLogConfigurationDetails List<Property Map>

Logging configuration for resource.

lifecycleDetails String

The state of the job.

projectId String

The OCID of the project to associate the job with.

state String

The state of the job.

timeCreated String

The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2020-08-06T21:10:29.41Z

Supporting Types

GetJobJobConfigurationDetail

CommandLineArguments string

The arguments to pass to the job.

EnvironmentVariables Dictionary<string, object>

Environment variables to set for the job.

JobType string

The type of job.

MaximumRuntimeInMinutes string

A time bound for the execution of the job. Timer starts when the job becomes active.

CommandLineArguments string

The arguments to pass to the job.

EnvironmentVariables map[string]interface{}

Environment variables to set for the job.

JobType string

The type of job.

MaximumRuntimeInMinutes string

A time bound for the execution of the job. Timer starts when the job becomes active.

commandLineArguments String

The arguments to pass to the job.

environmentVariables Map<String,Object>

Environment variables to set for the job.

jobType String

The type of job.

maximumRuntimeInMinutes String

A time bound for the execution of the job. Timer starts when the job becomes active.

commandLineArguments string

The arguments to pass to the job.

environmentVariables {[key: string]: any}

Environment variables to set for the job.

jobType string

The type of job.

maximumRuntimeInMinutes string

A time bound for the execution of the job. Timer starts when the job becomes active.

command_line_arguments str

The arguments to pass to the job.

environment_variables Mapping[str, Any]

Environment variables to set for the job.

job_type str

The type of job.

maximum_runtime_in_minutes str

A time bound for the execution of the job. Timer starts when the job becomes active.

commandLineArguments String

The arguments to pass to the job.

environmentVariables Map<Any>

Environment variables to set for the job.

jobType String

The type of job.

maximumRuntimeInMinutes String

A time bound for the execution of the job. Timer starts when the job becomes active.

GetJobJobInfrastructureConfigurationDetail

BlockStorageSizeInGbs int

The size of the block storage volume to attach to the instance running the job

JobInfrastructureType string

The infrastructure type used for job run.

JobShapeConfigDetails List<GetJobJobInfrastructureConfigurationDetailJobShapeConfigDetail>

Details for the job run shape configuration. Specify only when a flex shape is selected.

ShapeName string

The shape used to launch the job run instances.

SubnetId string

The subnet to create a secondary vnic in to attach to the instance running the job

BlockStorageSizeInGbs int

The size of the block storage volume to attach to the instance running the job

JobInfrastructureType string

The infrastructure type used for job run.

JobShapeConfigDetails []GetJobJobInfrastructureConfigurationDetailJobShapeConfigDetail

Details for the job run shape configuration. Specify only when a flex shape is selected.

ShapeName string

The shape used to launch the job run instances.

SubnetId string

The subnet to create a secondary vnic in to attach to the instance running the job

blockStorageSizeInGbs Integer

The size of the block storage volume to attach to the instance running the job

jobInfrastructureType String

The infrastructure type used for job run.

jobShapeConfigDetails List<GetJobJobInfrastructureConfigurationDetailJobShapeConfigDetail>

Details for the job run shape configuration. Specify only when a flex shape is selected.

shapeName String

The shape used to launch the job run instances.

subnetId String

The subnet to create a secondary vnic in to attach to the instance running the job

blockStorageSizeInGbs number

The size of the block storage volume to attach to the instance running the job

jobInfrastructureType string

The infrastructure type used for job run.

jobShapeConfigDetails GetJobJobInfrastructureConfigurationDetailJobShapeConfigDetail[]

Details for the job run shape configuration. Specify only when a flex shape is selected.

shapeName string

The shape used to launch the job run instances.

subnetId string

The subnet to create a secondary vnic in to attach to the instance running the job

block_storage_size_in_gbs int

The size of the block storage volume to attach to the instance running the job

job_infrastructure_type str

The infrastructure type used for job run.

job_shape_config_details GetJobJobInfrastructureConfigurationDetailJobShapeConfigDetail]

Details for the job run shape configuration. Specify only when a flex shape is selected.

shape_name str

The shape used to launch the job run instances.

subnet_id str

The subnet to create a secondary vnic in to attach to the instance running the job

blockStorageSizeInGbs Number

The size of the block storage volume to attach to the instance running the job

jobInfrastructureType String

The infrastructure type used for job run.

jobShapeConfigDetails List<Property Map>

Details for the job run shape configuration. Specify only when a flex shape is selected.

shapeName String

The shape used to launch the job run instances.

subnetId String

The subnet to create a secondary vnic in to attach to the instance running the job

GetJobJobInfrastructureConfigurationDetailJobShapeConfigDetail

MemoryInGbs double

A job run instance of type VM.Standard.E3.Flex allows memory to be specified. This specifies the size of the memory in GBs.

Ocpus double

A job run instance of type VM.Standard.E3.Flex allows the ocpu count to be specified.

MemoryInGbs float64

A job run instance of type VM.Standard.E3.Flex allows memory to be specified. This specifies the size of the memory in GBs.

Ocpus float64

A job run instance of type VM.Standard.E3.Flex allows the ocpu count to be specified.

memoryInGbs Double

A job run instance of type VM.Standard.E3.Flex allows memory to be specified. This specifies the size of the memory in GBs.

ocpus Double

A job run instance of type VM.Standard.E3.Flex allows the ocpu count to be specified.

memoryInGbs number

A job run instance of type VM.Standard.E3.Flex allows memory to be specified. This specifies the size of the memory in GBs.

ocpus number

A job run instance of type VM.Standard.E3.Flex allows the ocpu count to be specified.

memory_in_gbs float

A job run instance of type VM.Standard.E3.Flex allows memory to be specified. This specifies the size of the memory in GBs.

ocpus float

A job run instance of type VM.Standard.E3.Flex allows the ocpu count to be specified.

memoryInGbs Number

A job run instance of type VM.Standard.E3.Flex allows memory to be specified. This specifies the size of the memory in GBs.

ocpus Number

A job run instance of type VM.Standard.E3.Flex allows the ocpu count to be specified.

GetJobJobLogConfigurationDetail

EnableAutoLogCreation bool

If automatic on-behalf-of log object creation is enabled for job runs.

EnableLogging bool

If customer logging is enabled for job runs.

LogGroupId string

The log group id for where log objects are for job runs.

LogId string

The log id the job run will push logs too.

EnableAutoLogCreation bool

If automatic on-behalf-of log object creation is enabled for job runs.

EnableLogging bool

If customer logging is enabled for job runs.

LogGroupId string

The log group id for where log objects are for job runs.

LogId string

The log id the job run will push logs too.

enableAutoLogCreation Boolean

If automatic on-behalf-of log object creation is enabled for job runs.

enableLogging Boolean

If customer logging is enabled for job runs.

logGroupId String

The log group id for where log objects are for job runs.

logId String

The log id the job run will push logs too.

enableAutoLogCreation boolean

If automatic on-behalf-of log object creation is enabled for job runs.

enableLogging boolean

If customer logging is enabled for job runs.

logGroupId string

The log group id for where log objects are for job runs.

logId string

The log id the job run will push logs too.

enable_auto_log_creation bool

If automatic on-behalf-of log object creation is enabled for job runs.

enable_logging bool

If customer logging is enabled for job runs.

log_group_id str

The log group id for where log objects are for job runs.

log_id str

The log id the job run will push logs too.

enableAutoLogCreation Boolean

If automatic on-behalf-of log object creation is enabled for job runs.

enableLogging Boolean

If customer logging is enabled for job runs.

logGroupId String

The log group id for where log objects are for job runs.

logId String

The log id the job run will push logs too.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.