1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataScience
  5. JobRun
Oracle Cloud Infrastructure v1.16.0 published on Thursday, Nov 2, 2023 by Pulumi

oci.DataScience.JobRun

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.16.0 published on Thursday, Nov 2, 2023 by Pulumi

    This resource provides the Job Run resource in Oracle Cloud Infrastructure Data Science service.

    Creates a job run.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testJobRun = new Oci.DataScience.JobRun("testJobRun", new()
        {
            CompartmentId = @var.Compartment_id,
            JobId = oci_datascience_job.Test_job.Id,
            ProjectId = oci_datascience_project.Test_project.Id,
            Asynchronous = @var.Asynchronous,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            DisplayName = @var.Job_run_display_name,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            JobConfigurationOverrideDetails = new Oci.DataScience.Inputs.JobRunJobConfigurationOverrideDetailsArgs
            {
                JobType = @var.Job_run_job_configuration_override_details_job_type,
                CommandLineArguments = @var.Job_run_job_configuration_override_details_command_line_arguments,
                EnvironmentVariables = @var.Job_run_job_configuration_override_details_environment_variables,
                MaximumRuntimeInMinutes = @var.Job_run_job_configuration_override_details_maximum_runtime_in_minutes,
            },
            JobLogConfigurationOverrideDetails = new Oci.DataScience.Inputs.JobRunJobLogConfigurationOverrideDetailsArgs
            {
                EnableAutoLogCreation = @var.Job_run_job_log_configuration_override_details_enable_auto_log_creation,
                EnableLogging = @var.Job_run_job_log_configuration_override_details_enable_logging,
                LogGroupId = oci_logging_log_group.Test_log_group.Id,
                LogId = oci_logging_log.Test_log.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.NewJobRun(ctx, "testJobRun", &DataScience.JobRunArgs{
    			CompartmentId: pulumi.Any(_var.Compartment_id),
    			JobId:         pulumi.Any(oci_datascience_job.Test_job.Id),
    			ProjectId:     pulumi.Any(oci_datascience_project.Test_project.Id),
    			Asynchronous:  pulumi.Any(_var.Asynchronous),
    			DefinedTags: pulumi.Map{
    				"Operations.CostCenter": pulumi.Any("42"),
    			},
    			DisplayName: pulumi.Any(_var.Job_run_display_name),
    			FreeformTags: pulumi.Map{
    				"Department": pulumi.Any("Finance"),
    			},
    			JobConfigurationOverrideDetails: &datascience.JobRunJobConfigurationOverrideDetailsArgs{
    				JobType:                 pulumi.Any(_var.Job_run_job_configuration_override_details_job_type),
    				CommandLineArguments:    pulumi.Any(_var.Job_run_job_configuration_override_details_command_line_arguments),
    				EnvironmentVariables:    pulumi.Any(_var.Job_run_job_configuration_override_details_environment_variables),
    				MaximumRuntimeInMinutes: pulumi.Any(_var.Job_run_job_configuration_override_details_maximum_runtime_in_minutes),
    			},
    			JobLogConfigurationOverrideDetails: &datascience.JobRunJobLogConfigurationOverrideDetailsArgs{
    				EnableAutoLogCreation: pulumi.Any(_var.Job_run_job_log_configuration_override_details_enable_auto_log_creation),
    				EnableLogging:         pulumi.Any(_var.Job_run_job_log_configuration_override_details_enable_logging),
    				LogGroupId:            pulumi.Any(oci_logging_log_group.Test_log_group.Id),
    				LogId:                 pulumi.Any(oci_logging_log.Test_log.Id),
    			},
    		})
    		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.JobRun;
    import com.pulumi.oci.DataScience.JobRunArgs;
    import com.pulumi.oci.DataScience.inputs.JobRunJobConfigurationOverrideDetailsArgs;
    import com.pulumi.oci.DataScience.inputs.JobRunJobLogConfigurationOverrideDetailsArgs;
    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) {
            var testJobRun = new JobRun("testJobRun", JobRunArgs.builder()        
                .compartmentId(var_.compartment_id())
                .jobId(oci_datascience_job.test_job().id())
                .projectId(oci_datascience_project.test_project().id())
                .asynchronous(var_.asynchronous())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .displayName(var_.job_run_display_name())
                .freeformTags(Map.of("Department", "Finance"))
                .jobConfigurationOverrideDetails(JobRunJobConfigurationOverrideDetailsArgs.builder()
                    .jobType(var_.job_run_job_configuration_override_details_job_type())
                    .commandLineArguments(var_.job_run_job_configuration_override_details_command_line_arguments())
                    .environmentVariables(var_.job_run_job_configuration_override_details_environment_variables())
                    .maximumRuntimeInMinutes(var_.job_run_job_configuration_override_details_maximum_runtime_in_minutes())
                    .build())
                .jobLogConfigurationOverrideDetails(JobRunJobLogConfigurationOverrideDetailsArgs.builder()
                    .enableAutoLogCreation(var_.job_run_job_log_configuration_override_details_enable_auto_log_creation())
                    .enableLogging(var_.job_run_job_log_configuration_override_details_enable_logging())
                    .logGroupId(oci_logging_log_group.test_log_group().id())
                    .logId(oci_logging_log.test_log().id())
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_job_run = oci.data_science.JobRun("testJobRun",
        compartment_id=var["compartment_id"],
        job_id=oci_datascience_job["test_job"]["id"],
        project_id=oci_datascience_project["test_project"]["id"],
        asynchronous=var["asynchronous"],
        defined_tags={
            "Operations.CostCenter": "42",
        },
        display_name=var["job_run_display_name"],
        freeform_tags={
            "Department": "Finance",
        },
        job_configuration_override_details=oci.data_science.JobRunJobConfigurationOverrideDetailsArgs(
            job_type=var["job_run_job_configuration_override_details_job_type"],
            command_line_arguments=var["job_run_job_configuration_override_details_command_line_arguments"],
            environment_variables=var["job_run_job_configuration_override_details_environment_variables"],
            maximum_runtime_in_minutes=var["job_run_job_configuration_override_details_maximum_runtime_in_minutes"],
        ),
        job_log_configuration_override_details=oci.data_science.JobRunJobLogConfigurationOverrideDetailsArgs(
            enable_auto_log_creation=var["job_run_job_log_configuration_override_details_enable_auto_log_creation"],
            enable_logging=var["job_run_job_log_configuration_override_details_enable_logging"],
            log_group_id=oci_logging_log_group["test_log_group"]["id"],
            log_id=oci_logging_log["test_log"]["id"],
        ))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testJobRun = new oci.datascience.JobRun("testJobRun", {
        compartmentId: _var.compartment_id,
        jobId: oci_datascience_job.test_job.id,
        projectId: oci_datascience_project.test_project.id,
        asynchronous: _var.asynchronous,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        displayName: _var.job_run_display_name,
        freeformTags: {
            Department: "Finance",
        },
        jobConfigurationOverrideDetails: {
            jobType: _var.job_run_job_configuration_override_details_job_type,
            commandLineArguments: _var.job_run_job_configuration_override_details_command_line_arguments,
            environmentVariables: _var.job_run_job_configuration_override_details_environment_variables,
            maximumRuntimeInMinutes: _var.job_run_job_configuration_override_details_maximum_runtime_in_minutes,
        },
        jobLogConfigurationOverrideDetails: {
            enableAutoLogCreation: _var.job_run_job_log_configuration_override_details_enable_auto_log_creation,
            enableLogging: _var.job_run_job_log_configuration_override_details_enable_logging,
            logGroupId: oci_logging_log_group.test_log_group.id,
            logId: oci_logging_log.test_log.id,
        },
    });
    
    resources:
      testJobRun:
        type: oci:DataScience:JobRun
        properties:
          #Required
          compartmentId: ${var.compartment_id}
          jobId: ${oci_datascience_job.test_job.id}
          projectId: ${oci_datascience_project.test_project.id}
          #Optional
          asynchronous: ${var.asynchronous}
          definedTags:
            Operations.CostCenter: '42'
          displayName: ${var.job_run_display_name}
          freeformTags:
            Department: Finance
          jobConfigurationOverrideDetails:
            jobType: ${var.job_run_job_configuration_override_details_job_type}
            commandLineArguments: ${var.job_run_job_configuration_override_details_command_line_arguments}
            environmentVariables: ${var.job_run_job_configuration_override_details_environment_variables}
            maximumRuntimeInMinutes: ${var.job_run_job_configuration_override_details_maximum_runtime_in_minutes}
          jobLogConfigurationOverrideDetails:
            enableAutoLogCreation: ${var.job_run_job_log_configuration_override_details_enable_auto_log_creation}
            enableLogging: ${var.job_run_job_log_configuration_override_details_enable_logging}
            logGroupId: ${oci_logging_log_group.test_log_group.id}
            logId: ${oci_logging_log.test_log.id}
    

    Create JobRun Resource

    new JobRun(name: string, args: JobRunArgs, opts?: CustomResourceOptions);
    @overload
    def JobRun(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               asynchronous: Optional[bool] = None,
               compartment_id: Optional[str] = None,
               defined_tags: Optional[Mapping[str, Any]] = None,
               display_name: Optional[str] = None,
               freeform_tags: Optional[Mapping[str, Any]] = None,
               job_configuration_override_details: Optional[_datascience.JobRunJobConfigurationOverrideDetailsArgs] = None,
               job_id: Optional[str] = None,
               job_log_configuration_override_details: Optional[_datascience.JobRunJobLogConfigurationOverrideDetailsArgs] = None,
               project_id: Optional[str] = None)
    @overload
    def JobRun(resource_name: str,
               args: JobRunArgs,
               opts: Optional[ResourceOptions] = None)
    func NewJobRun(ctx *Context, name string, args JobRunArgs, opts ...ResourceOption) (*JobRun, error)
    public JobRun(string name, JobRunArgs args, CustomResourceOptions? opts = null)
    public JobRun(String name, JobRunArgs args)
    public JobRun(String name, JobRunArgs args, CustomResourceOptions options)
    
    type: oci:DataScience:JobRun
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args JobRunArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args JobRunArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args JobRunArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args JobRunArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args JobRunArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    JobRun Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The JobRun resource accepts the following input properties:

    CompartmentId string

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

    JobId string

    The OCID of the job to create a run for.

    ProjectId string

    The OCID of the project to associate the job with.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Asynchronous bool

    If set to true, do not wait for the JobRun to reach completion prior to returning. Can be useful for JobRuns with a long duration.

    DefinedTags Dictionary<string, object>

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

    DisplayName string

    (Updatable) A user-friendly display name for the resource.

    FreeformTags Dictionary<string, object>

    (Updatable) 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"}

    JobConfigurationOverrideDetails JobRunJobConfigurationOverrideDetails

    The job configuration details

    JobLogConfigurationOverrideDetails JobRunJobLogConfigurationOverrideDetails

    Logging configuration for resource.

    CompartmentId string

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

    JobId string

    The OCID of the job to create a run for.

    ProjectId string

    The OCID of the project to associate the job with.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Asynchronous bool

    If set to true, do not wait for the JobRun to reach completion prior to returning. Can be useful for JobRuns with a long duration.

    DefinedTags map[string]interface{}

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

    DisplayName string

    (Updatable) A user-friendly display name for the resource.

    FreeformTags map[string]interface{}

    (Updatable) 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"}

    JobConfigurationOverrideDetails JobRunJobConfigurationOverrideDetailsArgs

    The job configuration details

    JobLogConfigurationOverrideDetails JobRunJobLogConfigurationOverrideDetailsArgs

    Logging configuration for resource.

    compartmentId String

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

    jobId String

    The OCID of the job to create a run for.

    projectId String

    The OCID of the project to associate the job with.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    asynchronous Boolean

    If set to true, do not wait for the JobRun to reach completion prior to returning. Can be useful for JobRuns with a long duration.

    definedTags Map<String,Object>

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

    displayName String

    (Updatable) A user-friendly display name for the resource.

    freeformTags Map<String,Object>

    (Updatable) 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"}

    jobConfigurationOverrideDetails JobRunJobConfigurationOverrideDetails

    The job configuration details

    jobLogConfigurationOverrideDetails JobRunJobLogConfigurationOverrideDetails

    Logging configuration for resource.

    compartmentId string

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

    jobId string

    The OCID of the job to create a run for.

    projectId string

    The OCID of the project to associate the job with.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    asynchronous boolean

    If set to true, do not wait for the JobRun to reach completion prior to returning. Can be useful for JobRuns with a long duration.

    definedTags {[key: string]: any}

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

    displayName string

    (Updatable) A user-friendly display name for the resource.

    freeformTags {[key: string]: any}

    (Updatable) 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"}

    jobConfigurationOverrideDetails JobRunJobConfigurationOverrideDetails

    The job configuration details

    jobLogConfigurationOverrideDetails JobRunJobLogConfigurationOverrideDetails

    Logging configuration for resource.

    compartment_id str

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

    job_id str

    The OCID of the job to create a run for.

    project_id str

    The OCID of the project to associate the job with.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    asynchronous bool

    If set to true, do not wait for the JobRun to reach completion prior to returning. Can be useful for JobRuns with a long duration.

    defined_tags Mapping[str, Any]

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

    display_name str

    (Updatable) A user-friendly display name for the resource.

    freeform_tags Mapping[str, Any]

    (Updatable) 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"}

    job_configuration_override_details JobRunJobConfigurationOverrideDetailsArgs

    The job configuration details

    job_log_configuration_override_details JobRunJobLogConfigurationOverrideDetailsArgs

    Logging configuration for resource.

    compartmentId String

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

    jobId String

    The OCID of the job to create a run for.

    projectId String

    The OCID of the project to associate the job with.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    asynchronous Boolean

    If set to true, do not wait for the JobRun to reach completion prior to returning. Can be useful for JobRuns with a long duration.

    definedTags Map<Any>

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

    displayName String

    (Updatable) A user-friendly display name for the resource.

    freeformTags Map<Any>

    (Updatable) 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"}

    jobConfigurationOverrideDetails Property Map

    The job configuration details

    jobLogConfigurationOverrideDetails Property Map

    Logging configuration for resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the JobRun resource produces the following output properties:

    CreatedBy string

    The OCID of the user who created the job run.

    Id string

    The provider-assigned unique ID for this managed resource.

    JobInfrastructureConfigurationDetails List<JobRunJobInfrastructureConfigurationDetail>

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

    JobStorageMountConfigurationDetailsLists List<JobRunJobStorageMountConfigurationDetailsList>

    Collection of JobStorageMountConfigurationDetails.

    LifecycleDetails string

    Details of the state of the job run.

    LogDetails List<JobRunLogDetail>

    Customer logging details for job run.

    State string

    The state of the job run.

    TimeAccepted string

    The date and time the job run was accepted in the timestamp format defined by RFC3339.

    TimeFinished string

    The date and time the job run request was finished in the timestamp format defined by RFC3339.

    TimeStarted string

    The date and time the job run request was started in the timestamp format defined by RFC3339.

    CreatedBy string

    The OCID of the user who created the job run.

    Id string

    The provider-assigned unique ID for this managed resource.

    JobInfrastructureConfigurationDetails []JobRunJobInfrastructureConfigurationDetail

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

    JobStorageMountConfigurationDetailsLists []JobRunJobStorageMountConfigurationDetailsList

    Collection of JobStorageMountConfigurationDetails.

    LifecycleDetails string

    Details of the state of the job run.

    LogDetails []JobRunLogDetail

    Customer logging details for job run.

    State string

    The state of the job run.

    TimeAccepted string

    The date and time the job run was accepted in the timestamp format defined by RFC3339.

    TimeFinished string

    The date and time the job run request was finished in the timestamp format defined by RFC3339.

    TimeStarted string

    The date and time the job run request was started in the timestamp format defined by RFC3339.

    createdBy String

    The OCID of the user who created the job run.

    id String

    The provider-assigned unique ID for this managed resource.

    jobInfrastructureConfigurationDetails List<JobRunJobInfrastructureConfigurationDetail>

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

    jobStorageMountConfigurationDetailsLists List<JobRunJobStorageMountConfigurationDetailsList>

    Collection of JobStorageMountConfigurationDetails.

    lifecycleDetails String

    Details of the state of the job run.

    logDetails List<JobRunLogDetail>

    Customer logging details for job run.

    state String

    The state of the job run.

    timeAccepted String

    The date and time the job run was accepted in the timestamp format defined by RFC3339.

    timeFinished String

    The date and time the job run request was finished in the timestamp format defined by RFC3339.

    timeStarted String

    The date and time the job run request was started in the timestamp format defined by RFC3339.

    createdBy string

    The OCID of the user who created the job run.

    id string

    The provider-assigned unique ID for this managed resource.

    jobInfrastructureConfigurationDetails JobRunJobInfrastructureConfigurationDetail[]

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

    jobStorageMountConfigurationDetailsLists JobRunJobStorageMountConfigurationDetailsList[]

    Collection of JobStorageMountConfigurationDetails.

    lifecycleDetails string

    Details of the state of the job run.

    logDetails JobRunLogDetail[]

    Customer logging details for job run.

    state string

    The state of the job run.

    timeAccepted string

    The date and time the job run was accepted in the timestamp format defined by RFC3339.

    timeFinished string

    The date and time the job run request was finished in the timestamp format defined by RFC3339.

    timeStarted string

    The date and time the job run request was started in the timestamp format defined by RFC3339.

    created_by str

    The OCID of the user who created the job run.

    id str

    The provider-assigned unique ID for this managed resource.

    job_infrastructure_configuration_details JobRunJobInfrastructureConfigurationDetail]

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

    job_storage_mount_configuration_details_lists JobRunJobStorageMountConfigurationDetailsList]

    Collection of JobStorageMountConfigurationDetails.

    lifecycle_details str

    Details of the state of the job run.

    log_details JobRunLogDetail]

    Customer logging details for job run.

    state str

    The state of the job run.

    time_accepted str

    The date and time the job run was accepted in the timestamp format defined by RFC3339.

    time_finished str

    The date and time the job run request was finished in the timestamp format defined by RFC3339.

    time_started str

    The date and time the job run request was started in the timestamp format defined by RFC3339.

    createdBy String

    The OCID of the user who created the job run.

    id String

    The provider-assigned unique ID for this managed resource.

    jobInfrastructureConfigurationDetails List<Property Map>

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

    jobStorageMountConfigurationDetailsLists List<Property Map>

    Collection of JobStorageMountConfigurationDetails.

    lifecycleDetails String

    Details of the state of the job run.

    logDetails List<Property Map>

    Customer logging details for job run.

    state String

    The state of the job run.

    timeAccepted String

    The date and time the job run was accepted in the timestamp format defined by RFC3339.

    timeFinished String

    The date and time the job run request was finished in the timestamp format defined by RFC3339.

    timeStarted String

    The date and time the job run request was started in the timestamp format defined by RFC3339.

    Look up Existing JobRun Resource

    Get an existing JobRun resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: JobRunState, opts?: CustomResourceOptions): JobRun
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            asynchronous: Optional[bool] = None,
            compartment_id: Optional[str] = None,
            created_by: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            job_configuration_override_details: Optional[_datascience.JobRunJobConfigurationOverrideDetailsArgs] = None,
            job_id: Optional[str] = None,
            job_infrastructure_configuration_details: Optional[Sequence[_datascience.JobRunJobInfrastructureConfigurationDetailArgs]] = None,
            job_log_configuration_override_details: Optional[_datascience.JobRunJobLogConfigurationOverrideDetailsArgs] = None,
            job_storage_mount_configuration_details_lists: Optional[Sequence[_datascience.JobRunJobStorageMountConfigurationDetailsListArgs]] = None,
            lifecycle_details: Optional[str] = None,
            log_details: Optional[Sequence[_datascience.JobRunLogDetailArgs]] = None,
            project_id: Optional[str] = None,
            state: Optional[str] = None,
            time_accepted: Optional[str] = None,
            time_finished: Optional[str] = None,
            time_started: Optional[str] = None) -> JobRun
    func GetJobRun(ctx *Context, name string, id IDInput, state *JobRunState, opts ...ResourceOption) (*JobRun, error)
    public static JobRun Get(string name, Input<string> id, JobRunState? state, CustomResourceOptions? opts = null)
    public static JobRun get(String name, Output<String> id, JobRunState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Asynchronous bool

    If set to true, do not wait for the JobRun to reach completion prior to returning. Can be useful for JobRuns with a long duration.

    CompartmentId string

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

    CreatedBy string

    The OCID of the user who created the job run.

    DefinedTags Dictionary<string, object>

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

    DisplayName string

    (Updatable) A user-friendly display name for the resource.

    FreeformTags Dictionary<string, object>

    (Updatable) 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"}

    JobConfigurationOverrideDetails JobRunJobConfigurationOverrideDetails

    The job configuration details

    JobId string

    The OCID of the job to create a run for.

    JobInfrastructureConfigurationDetails List<JobRunJobInfrastructureConfigurationDetail>

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

    JobLogConfigurationOverrideDetails JobRunJobLogConfigurationOverrideDetails

    Logging configuration for resource.

    JobStorageMountConfigurationDetailsLists List<JobRunJobStorageMountConfigurationDetailsList>

    Collection of JobStorageMountConfigurationDetails.

    LifecycleDetails string

    Details of the state of the job run.

    LogDetails List<JobRunLogDetail>

    Customer logging details for job run.

    ProjectId string

    The OCID of the project to associate the job with.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    State string

    The state of the job run.

    TimeAccepted string

    The date and time the job run was accepted in the timestamp format defined by RFC3339.

    TimeFinished string

    The date and time the job run request was finished in the timestamp format defined by RFC3339.

    TimeStarted string

    The date and time the job run request was started in the timestamp format defined by RFC3339.

    Asynchronous bool

    If set to true, do not wait for the JobRun to reach completion prior to returning. Can be useful for JobRuns with a long duration.

    CompartmentId string

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

    CreatedBy string

    The OCID of the user who created the job run.

    DefinedTags map[string]interface{}

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

    DisplayName string

    (Updatable) A user-friendly display name for the resource.

    FreeformTags map[string]interface{}

    (Updatable) 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"}

    JobConfigurationOverrideDetails JobRunJobConfigurationOverrideDetailsArgs

    The job configuration details

    JobId string

    The OCID of the job to create a run for.

    JobInfrastructureConfigurationDetails []JobRunJobInfrastructureConfigurationDetailArgs

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

    JobLogConfigurationOverrideDetails JobRunJobLogConfigurationOverrideDetailsArgs

    Logging configuration for resource.

    JobStorageMountConfigurationDetailsLists []JobRunJobStorageMountConfigurationDetailsListArgs

    Collection of JobStorageMountConfigurationDetails.

    LifecycleDetails string

    Details of the state of the job run.

    LogDetails []JobRunLogDetailArgs

    Customer logging details for job run.

    ProjectId string

    The OCID of the project to associate the job with.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    State string

    The state of the job run.

    TimeAccepted string

    The date and time the job run was accepted in the timestamp format defined by RFC3339.

    TimeFinished string

    The date and time the job run request was finished in the timestamp format defined by RFC3339.

    TimeStarted string

    The date and time the job run request was started in the timestamp format defined by RFC3339.

    asynchronous Boolean

    If set to true, do not wait for the JobRun to reach completion prior to returning. Can be useful for JobRuns with a long duration.

    compartmentId String

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

    createdBy String

    The OCID of the user who created the job run.

    definedTags Map<String,Object>

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

    displayName String

    (Updatable) A user-friendly display name for the resource.

    freeformTags Map<String,Object>

    (Updatable) 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"}

    jobConfigurationOverrideDetails JobRunJobConfigurationOverrideDetails

    The job configuration details

    jobId String

    The OCID of the job to create a run for.

    jobInfrastructureConfigurationDetails List<JobRunJobInfrastructureConfigurationDetail>

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

    jobLogConfigurationOverrideDetails JobRunJobLogConfigurationOverrideDetails

    Logging configuration for resource.

    jobStorageMountConfigurationDetailsLists List<JobRunJobStorageMountConfigurationDetailsList>

    Collection of JobStorageMountConfigurationDetails.

    lifecycleDetails String

    Details of the state of the job run.

    logDetails List<JobRunLogDetail>

    Customer logging details for job run.

    projectId String

    The OCID of the project to associate the job with.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state String

    The state of the job run.

    timeAccepted String

    The date and time the job run was accepted in the timestamp format defined by RFC3339.

    timeFinished String

    The date and time the job run request was finished in the timestamp format defined by RFC3339.

    timeStarted String

    The date and time the job run request was started in the timestamp format defined by RFC3339.

    asynchronous boolean

    If set to true, do not wait for the JobRun to reach completion prior to returning. Can be useful for JobRuns with a long duration.

    compartmentId string

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

    createdBy string

    The OCID of the user who created the job run.

    definedTags {[key: string]: any}

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

    displayName string

    (Updatable) A user-friendly display name for the resource.

    freeformTags {[key: string]: any}

    (Updatable) 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"}

    jobConfigurationOverrideDetails JobRunJobConfigurationOverrideDetails

    The job configuration details

    jobId string

    The OCID of the job to create a run for.

    jobInfrastructureConfigurationDetails JobRunJobInfrastructureConfigurationDetail[]

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

    jobLogConfigurationOverrideDetails JobRunJobLogConfigurationOverrideDetails

    Logging configuration for resource.

    jobStorageMountConfigurationDetailsLists JobRunJobStorageMountConfigurationDetailsList[]

    Collection of JobStorageMountConfigurationDetails.

    lifecycleDetails string

    Details of the state of the job run.

    logDetails JobRunLogDetail[]

    Customer logging details for job run.

    projectId string

    The OCID of the project to associate the job with.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state string

    The state of the job run.

    timeAccepted string

    The date and time the job run was accepted in the timestamp format defined by RFC3339.

    timeFinished string

    The date and time the job run request was finished in the timestamp format defined by RFC3339.

    timeStarted string

    The date and time the job run request was started in the timestamp format defined by RFC3339.

    asynchronous bool

    If set to true, do not wait for the JobRun to reach completion prior to returning. Can be useful for JobRuns with a long duration.

    compartment_id str

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

    created_by str

    The OCID of the user who created the job run.

    defined_tags Mapping[str, Any]

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

    display_name str

    (Updatable) A user-friendly display name for the resource.

    freeform_tags Mapping[str, Any]

    (Updatable) 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"}

    job_configuration_override_details JobRunJobConfigurationOverrideDetailsArgs

    The job configuration details

    job_id str

    The OCID of the job to create a run for.

    job_infrastructure_configuration_details JobRunJobInfrastructureConfigurationDetailArgs]

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

    job_log_configuration_override_details JobRunJobLogConfigurationOverrideDetailsArgs

    Logging configuration for resource.

    job_storage_mount_configuration_details_lists JobRunJobStorageMountConfigurationDetailsListArgs]

    Collection of JobStorageMountConfigurationDetails.

    lifecycle_details str

    Details of the state of the job run.

    log_details JobRunLogDetailArgs]

    Customer logging details for job run.

    project_id str

    The OCID of the project to associate the job with.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state str

    The state of the job run.

    time_accepted str

    The date and time the job run was accepted in the timestamp format defined by RFC3339.

    time_finished str

    The date and time the job run request was finished in the timestamp format defined by RFC3339.

    time_started str

    The date and time the job run request was started in the timestamp format defined by RFC3339.

    asynchronous Boolean

    If set to true, do not wait for the JobRun to reach completion prior to returning. Can be useful for JobRuns with a long duration.

    compartmentId String

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

    createdBy String

    The OCID of the user who created the job run.

    definedTags Map<Any>

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

    displayName String

    (Updatable) A user-friendly display name for the resource.

    freeformTags Map<Any>

    (Updatable) 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"}

    jobConfigurationOverrideDetails Property Map

    The job configuration details

    jobId String

    The OCID of the job to create a run for.

    jobInfrastructureConfigurationDetails List<Property Map>

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

    jobLogConfigurationOverrideDetails Property Map

    Logging configuration for resource.

    jobStorageMountConfigurationDetailsLists List<Property Map>

    Collection of JobStorageMountConfigurationDetails.

    lifecycleDetails String

    Details of the state of the job run.

    logDetails List<Property Map>

    Customer logging details for job run.

    projectId String

    The OCID of the project to associate the job with.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state String

    The state of the job run.

    timeAccepted String

    The date and time the job run was accepted in the timestamp format defined by RFC3339.

    timeFinished String

    The date and time the job run request was finished in the timestamp format defined by RFC3339.

    timeStarted String

    The date and time the job run request was started in the timestamp format defined by RFC3339.

    Supporting Types

    JobRunJobConfigurationOverrideDetails, JobRunJobConfigurationOverrideDetailsArgs

    JobType string

    The type of job.

    CommandLineArguments string

    The arguments to pass to the job.

    EnvironmentVariables Dictionary<string, object>

    Environment variables to set for the job.

    MaximumRuntimeInMinutes string

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

    JobType string

    The type of job.

    CommandLineArguments string

    The arguments to pass to the job.

    EnvironmentVariables map[string]interface{}

    Environment variables to set for the job.

    MaximumRuntimeInMinutes string

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

    jobType String

    The type of job.

    commandLineArguments String

    The arguments to pass to the job.

    environmentVariables Map<String,Object>

    Environment variables to set for the job.

    maximumRuntimeInMinutes String

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

    jobType string

    The type of job.

    commandLineArguments string

    The arguments to pass to the job.

    environmentVariables {[key: string]: any}

    Environment variables to set for the job.

    maximumRuntimeInMinutes string

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

    job_type str

    The type of job.

    command_line_arguments str

    The arguments to pass to the job.

    environment_variables Mapping[str, Any]

    Environment variables to set for the job.

    maximum_runtime_in_minutes str

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

    jobType String

    The type of job.

    commandLineArguments String

    The arguments to pass to the job.

    environmentVariables Map<Any>

    Environment variables to set for the job.

    maximumRuntimeInMinutes String

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

    JobRunJobInfrastructureConfigurationDetail, JobRunJobInfrastructureConfigurationDetailArgs

    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<JobRunJobInfrastructureConfigurationDetailJobShapeConfigDetail>

    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 []JobRunJobInfrastructureConfigurationDetailJobShapeConfigDetail

    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<JobRunJobInfrastructureConfigurationDetailJobShapeConfigDetail>

    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 JobRunJobInfrastructureConfigurationDetailJobShapeConfigDetail[]

    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 JobRunJobInfrastructureConfigurationDetailJobShapeConfigDetail]

    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

    JobRunJobInfrastructureConfigurationDetailJobShapeConfigDetail, JobRunJobInfrastructureConfigurationDetailJobShapeConfigDetailArgs

    MemoryInGbs double

    The total amount of memory available to the job run instance, in gigabytes.

    Ocpus double

    The total number of OCPUs available to the job run instance.

    MemoryInGbs float64

    The total amount of memory available to the job run instance, in gigabytes.

    Ocpus float64

    The total number of OCPUs available to the job run instance.

    memoryInGbs Double

    The total amount of memory available to the job run instance, in gigabytes.

    ocpus Double

    The total number of OCPUs available to the job run instance.

    memoryInGbs number

    The total amount of memory available to the job run instance, in gigabytes.

    ocpus number

    The total number of OCPUs available to the job run instance.

    memory_in_gbs float

    The total amount of memory available to the job run instance, in gigabytes.

    ocpus float

    The total number of OCPUs available to the job run instance.

    memoryInGbs Number

    The total amount of memory available to the job run instance, in gigabytes.

    ocpus Number

    The total number of OCPUs available to the job run instance.

    JobRunJobLogConfigurationOverrideDetails, JobRunJobLogConfigurationOverrideDetailsArgs

    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.

    JobRunJobStorageMountConfigurationDetailsList, JobRunJobStorageMountConfigurationDetailsListArgs

    Bucket string

    The object storage bucket

    DestinationDirectoryName string

    The local directory name to be mounted

    DestinationPath string

    The local path of the mounted directory, excluding directory name.

    ExportId string

    OCID of the export

    MountTargetId string

    OCID of the mount target

    Namespace string

    The object storage namespace

    Prefix string

    Prefix in the bucket to mount

    StorageType string

    The type of storage.

    Bucket string

    The object storage bucket

    DestinationDirectoryName string

    The local directory name to be mounted

    DestinationPath string

    The local path of the mounted directory, excluding directory name.

    ExportId string

    OCID of the export

    MountTargetId string

    OCID of the mount target

    Namespace string

    The object storage namespace

    Prefix string

    Prefix in the bucket to mount

    StorageType string

    The type of storage.

    bucket String

    The object storage bucket

    destinationDirectoryName String

    The local directory name to be mounted

    destinationPath String

    The local path of the mounted directory, excluding directory name.

    exportId String

    OCID of the export

    mountTargetId String

    OCID of the mount target

    namespace String

    The object storage namespace

    prefix String

    Prefix in the bucket to mount

    storageType String

    The type of storage.

    bucket string

    The object storage bucket

    destinationDirectoryName string

    The local directory name to be mounted

    destinationPath string

    The local path of the mounted directory, excluding directory name.

    exportId string

    OCID of the export

    mountTargetId string

    OCID of the mount target

    namespace string

    The object storage namespace

    prefix string

    Prefix in the bucket to mount

    storageType string

    The type of storage.

    bucket str

    The object storage bucket

    destination_directory_name str

    The local directory name to be mounted

    destination_path str

    The local path of the mounted directory, excluding directory name.

    export_id str

    OCID of the export

    mount_target_id str

    OCID of the mount target

    namespace str

    The object storage namespace

    prefix str

    Prefix in the bucket to mount

    storage_type str

    The type of storage.

    bucket String

    The object storage bucket

    destinationDirectoryName String

    The local directory name to be mounted

    destinationPath String

    The local path of the mounted directory, excluding directory name.

    exportId String

    OCID of the export

    mountTargetId String

    OCID of the mount target

    namespace String

    The object storage namespace

    prefix String

    Prefix in the bucket to mount

    storageType String

    The type of storage.

    JobRunLogDetail, JobRunLogDetailArgs

    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.

    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.

    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.

    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.

    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.

    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.

    Import

    JobRuns can be imported using the id, e.g.

     $ pulumi import oci:DataScience/jobRun:JobRun test_job_run "id"
    

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the oci Terraform Provider.

    oci logo
    Oracle Cloud Infrastructure v1.16.0 published on Thursday, Nov 2, 2023 by Pulumi