oci.DataScience.getJobRun
Explore with Pulumi AI
This data source provides details about a specific Job Run resource in Oracle Cloud Infrastructure Data Science service.
Gets a job run.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testJobRun = Oci.DataScience.GetJobRun.Invoke(new()
{
JobRunId = oci_datascience_job_run.Test_job_run.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.GetJobRun(ctx, &datascience.GetJobRunArgs{
JobRunId: oci_datascience_job_run.Test_job_run.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.GetJobRunArgs;
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 testJobRun = DataScienceFunctions.getJobRun(GetJobRunArgs.builder()
.jobRunId(oci_datascience_job_run.test_job_run().id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_job_run = oci.DataScience.get_job_run(job_run_id=oci_datascience_job_run["test_job_run"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testJobRun = oci.DataScience.getJobRun({
jobRunId: oci_datascience_job_run.test_job_run.id,
});
variables:
testJobRun:
fn::invoke:
Function: oci:DataScience:getJobRun
Arguments:
jobRunId: ${oci_datascience_job_run.test_job_run.id}
Using getJobRun
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 getJobRun(args: GetJobRunArgs, opts?: InvokeOptions): Promise<GetJobRunResult>
function getJobRunOutput(args: GetJobRunOutputArgs, opts?: InvokeOptions): Output<GetJobRunResult>
def get_job_run(job_run_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetJobRunResult
def get_job_run_output(job_run_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetJobRunResult]
func GetJobRun(ctx *Context, args *GetJobRunArgs, opts ...InvokeOption) (*GetJobRunResult, error)
func GetJobRunOutput(ctx *Context, args *GetJobRunOutputArgs, opts ...InvokeOption) GetJobRunResultOutput
> Note: This function is named GetJobRun
in the Go SDK.
public static class GetJobRun
{
public static Task<GetJobRunResult> InvokeAsync(GetJobRunArgs args, InvokeOptions? opts = null)
public static Output<GetJobRunResult> Invoke(GetJobRunInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetJobRunResult> getJobRun(GetJobRunArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DataScience/getJobRun:getJobRun
arguments:
# arguments dictionary
The following arguments are supported:
- job_
run_ strid The OCID of the job run.
getJobRun Result
The following output properties are available:
- Asynchronous bool
- Compartment
Id string The OCID of the compartment where you want to create the job.
- Created
By string The OCID of the user who created the job run.
- Dictionary<string, object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string A user-friendly display name for the resource.
- 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 run.
- Job
Configuration List<GetOverride Details Job Run Job Configuration Override Detail> The job configuration details
- Job
Id string The OCID of the job run.
- Job
Infrastructure List<GetConfiguration Details Job Run Job Infrastructure Configuration Detail> The job infrastructure configuration details (shape, block storage, etc.)
- Job
Log List<GetConfiguration Override Details Job Run Job Log Configuration Override Detail> Logging configuration for resource.
- Job
Run stringId - Job
Storage List<GetMount Configuration Details Lists Job Run Job Storage Mount Configuration Details List> Collection of JobStorageMountConfigurationDetails.
- Lifecycle
Details string Details of the state of the job run.
- Log
Details List<GetJob Run Log Detail> Customer logging details for job run.
- Project
Id string The OCID of the project to associate the job with.
- State string
The state of the job run.
- Time
Accepted string The date and time the job run was accepted in the timestamp format defined by RFC3339.
- Time
Finished string The date and time the job run request was finished in the timestamp format defined by RFC3339.
- Time
Started string The date and time the job run request was started in the timestamp format defined by RFC3339.
- Asynchronous bool
- Compartment
Id string The OCID of the compartment where you want to create the job.
- Created
By string The OCID of the user who created the job run.
- map[string]interface{}
Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string A user-friendly display name for the resource.
- 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 run.
- Job
Configuration []GetOverride Details Job Run Job Configuration Override Detail The job configuration details
- Job
Id string The OCID of the job run.
- Job
Infrastructure []GetConfiguration Details Job Run Job Infrastructure Configuration Detail The job infrastructure configuration details (shape, block storage, etc.)
- Job
Log []GetConfiguration Override Details Job Run Job Log Configuration Override Detail Logging configuration for resource.
- Job
Run stringId - Job
Storage []GetMount Configuration Details Lists Job Run Job Storage Mount Configuration Details List Collection of JobStorageMountConfigurationDetails.
- Lifecycle
Details string Details of the state of the job run.
- Log
Details []GetJob Run Log Detail Customer logging details for job run.
- Project
Id string The OCID of the project to associate the job with.
- State string
The state of the job run.
- Time
Accepted string The date and time the job run was accepted in the timestamp format defined by RFC3339.
- Time
Finished string The date and time the job run request was finished in the timestamp format defined by RFC3339.
- Time
Started string The date and time the job run request was started in the timestamp format defined by RFC3339.
- asynchronous Boolean
- compartment
Id String The OCID of the compartment where you want to create the job.
- created
By String The OCID of the user who created the job run.
- Map<String,Object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String A user-friendly display name for the resource.
- 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 run.
- job
Configuration List<GetOverride Details Job Run Job Configuration Override Detail> The job configuration details
- job
Id String The OCID of the job run.
- job
Infrastructure List<GetConfiguration Details Job Run Job Infrastructure Configuration Detail> The job infrastructure configuration details (shape, block storage, etc.)
- job
Log List<GetConfiguration Override Details Job Run Job Log Configuration Override Detail> Logging configuration for resource.
- job
Run StringId - job
Storage List<GetMount Configuration Details Lists Job Run Job Storage Mount Configuration Details List> Collection of JobStorageMountConfigurationDetails.
- lifecycle
Details String Details of the state of the job run.
- log
Details List<GetJob Run Log Detail> Customer logging details for job run.
- project
Id String The OCID of the project to associate the job with.
- state String
The state of the job run.
- time
Accepted String The date and time the job run was accepted in the timestamp format defined by RFC3339.
- time
Finished String The date and time the job run request was finished in the timestamp format defined by RFC3339.
- time
Started String The date and time the job run request was started in the timestamp format defined by RFC3339.
- asynchronous boolean
- compartment
Id string The OCID of the compartment where you want to create the job.
- created
By string The OCID of the user who created the job run.
- {[key: string]: any}
Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string A user-friendly display name for the resource.
- {[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 run.
- job
Configuration GetOverride Details Job Run Job Configuration Override Detail[] The job configuration details
- job
Id string The OCID of the job run.
- job
Infrastructure GetConfiguration Details Job Run Job Infrastructure Configuration Detail[] The job infrastructure configuration details (shape, block storage, etc.)
- job
Log GetConfiguration Override Details Job Run Job Log Configuration Override Detail[] Logging configuration for resource.
- job
Run stringId - job
Storage GetMount Configuration Details Lists Job Run Job Storage Mount Configuration Details List[] Collection of JobStorageMountConfigurationDetails.
- lifecycle
Details string Details of the state of the job run.
- log
Details GetJob Run Log Detail[] Customer logging details for job run.
- project
Id string The OCID of the project to associate the job with.
- state string
The state of the job run.
- time
Accepted string The date and time the job run was accepted in the timestamp format defined by RFC3339.
- time
Finished string The date and time the job run request was finished in the timestamp format defined by RFC3339.
- time
Started string The date and time the job run request was started in the timestamp format defined by RFC3339.
- asynchronous bool
- 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 job run.
- Mapping[str, Any]
Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str A user-friendly display name for the resource.
- 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 run.
- job_
configuration_ Getoverride_ details Job Run Job Configuration Override Detail] The job configuration details
- job_
id str The OCID of the job run.
- job_
infrastructure_ Getconfiguration_ details Job Run Job Infrastructure Configuration Detail] The job infrastructure configuration details (shape, block storage, etc.)
- job_
log_ Getconfiguration_ override_ details Job Run Job Log Configuration Override Detail] Logging configuration for resource.
- job_
run_ strid - job_
storage_ Getmount_ configuration_ details_ lists Job Run Job Storage Mount Configuration Details List] Collection of JobStorageMountConfigurationDetails.
- lifecycle_
details str Details of the state of the job run.
- log_
details GetJob Run Log Detail] Customer logging details for job run.
- project_
id str The OCID of the project to associate the job with.
- 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
- compartment
Id String The OCID of the compartment where you want to create the job.
- created
By String The OCID of the user who created the job run.
- Map<Any>
Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String A user-friendly display name for the resource.
- 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 run.
- job
Configuration List<Property Map>Override Details The job configuration details
- job
Id String The OCID of the job run.
- job
Infrastructure List<Property Map>Configuration Details The job infrastructure configuration details (shape, block storage, etc.)
- job
Log List<Property Map>Configuration Override Details Logging configuration for resource.
- job
Run StringId - job
Storage List<Property Map>Mount Configuration Details Lists Collection of JobStorageMountConfigurationDetails.
- lifecycle
Details String Details of the state of the job run.
- log
Details List<Property Map> Customer logging details for job run.
- project
Id String The OCID of the project to associate the job with.
- state String
The state of the job run.
- time
Accepted String The date and time the job run was accepted in the timestamp format defined by RFC3339.
- time
Finished String The date and time the job run request was finished in the timestamp format defined by RFC3339.
- time
Started String The date and time the job run request was started in the timestamp format defined by RFC3339.
Supporting Types
GetJobRunJobConfigurationOverrideDetail
- Command
Line stringArguments The arguments to pass to the job.
- Environment
Variables Dictionary<string, object> Environment variables to set for the job.
- Job
Type string The type of job.
- Maximum
Runtime stringIn Minutes A time bound for the execution of the job. Timer starts when the job becomes active.
- Command
Line stringArguments The arguments to pass to the job.
- Environment
Variables map[string]interface{} Environment variables to set for the job.
- Job
Type string The type of job.
- Maximum
Runtime stringIn Minutes A time bound for the execution of the job. Timer starts when the job becomes active.
- command
Line StringArguments The arguments to pass to the job.
- environment
Variables Map<String,Object> Environment variables to set for the job.
- job
Type String The type of job.
- maximum
Runtime StringIn Minutes A time bound for the execution of the job. Timer starts when the job becomes active.
- command
Line stringArguments The arguments to pass to the job.
- environment
Variables {[key: string]: any} Environment variables to set for the job.
- job
Type string The type of job.
- maximum
Runtime stringIn Minutes A time bound for the execution of the job. Timer starts when the job becomes active.
- command_
line_ strarguments 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_ strin_ minutes A time bound for the execution of the job. Timer starts when the job becomes active.
- command
Line StringArguments The arguments to pass to the job.
- environment
Variables Map<Any> Environment variables to set for the job.
- job
Type String The type of job.
- maximum
Runtime StringIn Minutes A time bound for the execution of the job. Timer starts when the job becomes active.
GetJobRunJobInfrastructureConfigurationDetail
- Block
Storage intSize In Gbs The size of the block storage volume to attach to the instance running the job
- Job
Infrastructure stringType The infrastructure type used for job run.
- Job
Shape List<GetConfig Details Job Run Job Infrastructure Configuration Detail Job Shape Config Detail> Details for the job run shape configuration. Specify only when a flex shape is selected.
- Shape
Name string The shape used to launch the job run instances.
- Subnet
Id string The subnet to create a secondary vnic in to attach to the instance running the job
- Block
Storage intSize In Gbs The size of the block storage volume to attach to the instance running the job
- Job
Infrastructure stringType The infrastructure type used for job run.
- Job
Shape []GetConfig Details Job Run Job Infrastructure Configuration Detail Job Shape Config Detail Details for the job run shape configuration. Specify only when a flex shape is selected.
- Shape
Name string The shape used to launch the job run instances.
- Subnet
Id string The subnet to create a secondary vnic in to attach to the instance running the job
- block
Storage IntegerSize In Gbs The size of the block storage volume to attach to the instance running the job
- job
Infrastructure StringType The infrastructure type used for job run.
- job
Shape List<GetConfig Details Job Run Job Infrastructure Configuration Detail Job Shape Config Detail> Details for the job run shape configuration. Specify only when a flex shape is selected.
- shape
Name String The shape used to launch the job run instances.
- subnet
Id String The subnet to create a secondary vnic in to attach to the instance running the job
- block
Storage numberSize In Gbs The size of the block storage volume to attach to the instance running the job
- job
Infrastructure stringType The infrastructure type used for job run.
- job
Shape GetConfig Details Job Run Job Infrastructure Configuration Detail Job Shape Config Detail[] Details for the job run shape configuration. Specify only when a flex shape is selected.
- shape
Name string The shape used to launch the job run instances.
- subnet
Id string The subnet to create a secondary vnic in to attach to the instance running the job
- block_
storage_ intsize_ in_ gbs The size of the block storage volume to attach to the instance running the job
- job_
infrastructure_ strtype The infrastructure type used for job run.
- job_
shape_ Getconfig_ details Job Run Job Infrastructure Configuration Detail Job Shape Config Detail] 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
- block
Storage NumberSize In Gbs The size of the block storage volume to attach to the instance running the job
- job
Infrastructure StringType The infrastructure type used for job run.
- job
Shape List<Property Map>Config Details Details for the job run shape configuration. Specify only when a flex shape is selected.
- shape
Name String The shape used to launch the job run instances.
- subnet
Id String The subnet to create a secondary vnic in to attach to the instance running the job
GetJobRunJobInfrastructureConfigurationDetailJobShapeConfigDetail
- Memory
In doubleGbs 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.
- Memory
In float64Gbs 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.
- memory
In DoubleGbs 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.
- memory
In numberGbs 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_ floatgbs 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.
- memory
In NumberGbs 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.
GetJobRunJobLogConfigurationOverrideDetail
- Enable
Auto boolLog Creation 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 stringId The log group id for where log objects will be for job runs.
- Log
Id string The log id of the log object the job run logs will be shipped to.
- Enable
Auto boolLog Creation 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 stringId The log group id for where log objects will be for job runs.
- Log
Id string The log id of the log object the job run logs will be shipped to.
- enable
Auto BooleanLog Creation If automatic on-behalf-of log object creation is enabled for job runs.
- enable
Logging Boolean If customer logging is enabled for job runs.
- log
Group StringId The log group id for where log objects will be for job runs.
- log
Id String The log id of the log object the job run logs will be shipped to.
- enable
Auto booleanLog Creation If automatic on-behalf-of log object creation is enabled for job runs.
- enable
Logging boolean If customer logging is enabled for job runs.
- log
Group stringId The log group id for where log objects will be for job runs.
- log
Id string The log id of the log object the job run logs will be shipped to.
- enable_
auto_ boollog_ creation 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_ strid The log group id for where log objects will be for job runs.
- log_
id str The log id of the log object the job run logs will be shipped to.
- enable
Auto BooleanLog Creation If automatic on-behalf-of log object creation is enabled for job runs.
- enable
Logging Boolean If customer logging is enabled for job runs.
- log
Group StringId The log group id for where log objects will be for job runs.
- log
Id String The log id of the log object the job run logs will be shipped to.
GetJobRunJobStorageMountConfigurationDetailsList
- Bucket string
The object storage bucket
- Destination
Directory stringName The local directory name to be mounted
- Destination
Path string The local path of the mounted directory, excluding directory name.
- Export
Id string OCID of the export
- Mount
Target stringId OCID of the mount target
- Namespace string
The object storage namespace
- Prefix string
Prefix in the bucket to mount
- Storage
Type string The type of storage.
- Bucket string
The object storage bucket
- Destination
Directory stringName The local directory name to be mounted
- Destination
Path string The local path of the mounted directory, excluding directory name.
- Export
Id string OCID of the export
- Mount
Target stringId OCID of the mount target
- Namespace string
The object storage namespace
- Prefix string
Prefix in the bucket to mount
- Storage
Type string The type of storage.
- bucket String
The object storage bucket
- destination
Directory StringName The local directory name to be mounted
- destination
Path String The local path of the mounted directory, excluding directory name.
- export
Id String OCID of the export
- mount
Target StringId OCID of the mount target
- namespace String
The object storage namespace
- prefix String
Prefix in the bucket to mount
- storage
Type String The type of storage.
- bucket string
The object storage bucket
- destination
Directory stringName The local directory name to be mounted
- destination
Path string The local path of the mounted directory, excluding directory name.
- export
Id string OCID of the export
- mount
Target stringId OCID of the mount target
- namespace string
The object storage namespace
- prefix string
Prefix in the bucket to mount
- storage
Type string The type of storage.
- bucket str
The object storage bucket
- destination_
directory_ strname 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_ strid 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
- destination
Directory StringName The local directory name to be mounted
- destination
Path String The local path of the mounted directory, excluding directory name.
- export
Id String OCID of the export
- mount
Target StringId OCID of the mount target
- namespace String
The object storage namespace
- prefix String
Prefix in the bucket to mount
- storage
Type String The type of storage.
GetJobRunLogDetail
- Log
Group stringId The log group id for where log objects will be for job runs.
- Log
Id string The log id of the log object the job run logs will be shipped to.
- Log
Group stringId The log group id for where log objects will be for job runs.
- Log
Id string The log id of the log object the job run logs will be shipped to.
- log
Group StringId The log group id for where log objects will be for job runs.
- log
Id String The log id of the log object the job run logs will be shipped to.
- log
Group stringId The log group id for where log objects will be for job runs.
- log
Id string The log id of the log object the job run logs will be shipped to.
- log_
group_ strid The log group id for where log objects will be for job runs.
- log_
id str The log id of the log object the job run logs will be shipped to.
- log
Group StringId The log group id for where log objects will be for job runs.
- log
Id String The log id of the log object the job run logs will be shipped to.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.