oci.DataScience.getJob
Explore with Pulumi AI
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 System.Linq;
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:
getJob Result
The following output properties are available:
- Artifact
Content stringDisposition - Artifact
Content stringLength - Artifact
Content stringMd5 - Artifact
Last stringModified - 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 project.
- Dictionary<string, object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- bool
- Description string
A short description of the job.
- Display
Name string A user-friendly display name for the resource.
- Empty
Artifact bool - 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.
- Job
Artifact string - Job
Configuration List<GetDetails Job Job Configuration Detail> The job configuration details
- Job
Id string - Job
Infrastructure List<GetConfiguration Details Job Job Infrastructure Configuration Detail> The job infrastructure configuration details (shape, block storage, etc.)
- Job
Log List<GetConfiguration Details Job Job Log Configuration Detail> Logging configuration for resource.
- Job
Storage List<GetMount Configuration Details Lists Job Job Storage Mount Configuration Details List> Collection of JobStorageMountConfigurationDetails.
- Lifecycle
Details string The state of the job.
- Project
Id string The OCID of the project to associate the job with.
- State string
The state of the job.
- Time
Created 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 stringDisposition - Artifact
Content stringLength - Artifact
Content stringMd5 - Artifact
Last stringModified - 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 project.
- map[string]interface{}
Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- bool
- Description string
A short description of the job.
- Display
Name string A user-friendly display name for the resource.
- Empty
Artifact bool - 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.
- Job
Artifact string - Job
Configuration []GetDetails Job Job Configuration Detail The job configuration details
- Job
Id string - Job
Infrastructure []GetConfiguration Details Job Job Infrastructure Configuration Detail The job infrastructure configuration details (shape, block storage, etc.)
- Job
Log []GetConfiguration Details Job Job Log Configuration Detail Logging configuration for resource.
- Job
Storage []GetMount Configuration Details Lists Job Job Storage Mount Configuration Details List Collection of JobStorageMountConfigurationDetails.
- Lifecycle
Details string The state of the job.
- Project
Id string The OCID of the project to associate the job with.
- State string
The state of the job.
- Time
Created 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 StringDisposition - artifact
Content StringLength - artifact
Content StringMd5 - artifact
Last StringModified - 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 project.
- Map<String,Object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Boolean
- description String
A short description of the job.
- display
Name String A user-friendly display name for the resource.
- empty
Artifact Boolean - 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.
- job
Artifact String - job
Configuration List<GetDetails Job Job Configuration Detail> The job configuration details
- job
Id String - job
Infrastructure List<GetConfiguration Details Job Job Infrastructure Configuration Detail> The job infrastructure configuration details (shape, block storage, etc.)
- job
Log List<GetConfiguration Details Job Job Log Configuration Detail> Logging configuration for resource.
- job
Storage List<GetMount Configuration Details Lists Job Job Storage Mount Configuration Details List> Collection of JobStorageMountConfigurationDetails.
- lifecycle
Details String The state of the job.
- project
Id String The OCID of the project to associate the job with.
- state String
The state of the job.
- time
Created 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 stringDisposition - artifact
Content stringLength - artifact
Content stringMd5 - artifact
Last stringModified - 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 project.
- {[key: string]: any}
Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- boolean
- description string
A short description of the job.
- display
Name string A user-friendly display name for the resource.
- empty
Artifact boolean - {[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.
- job
Artifact string - job
Configuration GetDetails Job Job Configuration Detail[] The job configuration details
- job
Id string - job
Infrastructure GetConfiguration Details Job Job Infrastructure Configuration Detail[] The job infrastructure configuration details (shape, block storage, etc.)
- job
Log GetConfiguration Details Job Job Log Configuration Detail[] Logging configuration for resource.
- job
Storage GetMount Configuration Details Lists Job Job Storage Mount Configuration Details List[] Collection of JobStorageMountConfigurationDetails.
- lifecycle
Details string The state of the job.
- project
Id string The OCID of the project to associate the job with.
- state string
The state of the job.
- time
Created 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_ strdisposition - artifact_
content_ strlength - artifact_
content_ strmd5 - artifact_
last_ strmodified - 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.
- Mapping[str, Any]
Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- bool
- description str
A short description of the job.
- display_
name str A user-friendly display name for the resource.
- empty_
artifact bool - 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_ Getdetails Job Job Configuration Detail] The job configuration details
- job_
id str - job_
infrastructure_ Getconfiguration_ details Job Job Infrastructure Configuration Detail] The job infrastructure configuration details (shape, block storage, etc.)
- job_
log_ Getconfiguration_ details Job Job Log Configuration Detail] Logging configuration for resource.
- job_
storage_ Getmount_ configuration_ details_ lists Job Job Storage Mount Configuration Details List] Collection of JobStorageMountConfigurationDetails.
- 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
- artifact
Content StringDisposition - artifact
Content StringLength - artifact
Content StringMd5 - artifact
Last StringModified - 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 project.
- Map<Any>
Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Boolean
- description String
A short description of the job.
- display
Name String A user-friendly display name for the resource.
- empty
Artifact Boolean - 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.
- job
Artifact String - job
Configuration List<Property Map>Details The job configuration details
- job
Id String - job
Infrastructure List<Property Map>Configuration Details The job infrastructure configuration details (shape, block storage, etc.)
- job
Log List<Property Map>Configuration Details Logging configuration for resource.
- job
Storage List<Property Map>Mount Configuration Details Lists Collection of JobStorageMountConfigurationDetails.
- lifecycle
Details String The state of the job.
- project
Id String The OCID of the project to associate the job with.
- state String
The state of the job.
- time
Created 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
- 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.
GetJobJobInfrastructureConfigurationDetail
- 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 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 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 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 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 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
GetJobJobInfrastructureConfigurationDetailJobShapeConfigDetail
- 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.
GetJobJobLogConfigurationDetail
- 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 are for job runs.
- Log
Id string The log id the job run will push logs too.
- 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 are for job runs.
- Log
Id string The log id the job run will push logs too.
- 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 are for job runs.
- log
Id String The log id the job run will push logs too.
- 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 are for job runs.
- log
Id string The log id the job run will push logs too.
- 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 are for job runs.
- log_
id str The log id the job run will push logs too.
- 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 are for job runs.
- log
Id String The log id the job run will push logs too.
GetJobJobStorageMountConfigurationDetailsList
- 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.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.