1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. oci
  5. getBatchBatchTaskEnvironment
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
oci logo
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi

    This data source provides details about a specific Batch Task Environment resource in Oracle Cloud Infrastructure Batch service.

    Gets information about a batch task environment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testBatchTaskEnvironment = oci.oci.getBatchBatchTaskEnvironment({
        batchTaskEnvironmentId: testBatchTaskEnvironmentOciBatchBatchTaskEnvironment.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_batch_task_environment = oci.oci.get_batch_batch_task_environment(batch_task_environment_id=test_batch_task_environment_oci_batch_batch_task_environment["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/oci"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := oci.LookupBatchBatchTaskEnvironment(ctx, &oci.LookupBatchBatchTaskEnvironmentArgs{
    			BatchTaskEnvironmentId: testBatchTaskEnvironmentOciBatchBatchTaskEnvironment.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testBatchTaskEnvironment = Oci.Oci.GetBatchBatchTaskEnvironment.Invoke(new()
        {
            BatchTaskEnvironmentId = testBatchTaskEnvironmentOciBatchBatchTaskEnvironment.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.oci.OciFunctions;
    import com.pulumi.oci.oci.inputs.GetBatchBatchTaskEnvironmentArgs;
    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 testBatchTaskEnvironment = OciFunctions.getBatchBatchTaskEnvironment(GetBatchBatchTaskEnvironmentArgs.builder()
                .batchTaskEnvironmentId(testBatchTaskEnvironmentOciBatchBatchTaskEnvironment.id())
                .build());
    
        }
    }
    
    variables:
      testBatchTaskEnvironment:
        fn::invoke:
          function: oci:oci:getBatchBatchTaskEnvironment
          arguments:
            batchTaskEnvironmentId: ${testBatchTaskEnvironmentOciBatchBatchTaskEnvironment.id}
    

    Using getBatchBatchTaskEnvironment

    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 getBatchBatchTaskEnvironment(args: GetBatchBatchTaskEnvironmentArgs, opts?: InvokeOptions): Promise<GetBatchBatchTaskEnvironmentResult>
    function getBatchBatchTaskEnvironmentOutput(args: GetBatchBatchTaskEnvironmentOutputArgs, opts?: InvokeOptions): Output<GetBatchBatchTaskEnvironmentResult>
    def get_batch_batch_task_environment(batch_task_environment_id: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetBatchBatchTaskEnvironmentResult
    def get_batch_batch_task_environment_output(batch_task_environment_id: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetBatchBatchTaskEnvironmentResult]
    func LookupBatchBatchTaskEnvironment(ctx *Context, args *LookupBatchBatchTaskEnvironmentArgs, opts ...InvokeOption) (*LookupBatchBatchTaskEnvironmentResult, error)
    func LookupBatchBatchTaskEnvironmentOutput(ctx *Context, args *LookupBatchBatchTaskEnvironmentOutputArgs, opts ...InvokeOption) LookupBatchBatchTaskEnvironmentResultOutput

    > Note: This function is named LookupBatchBatchTaskEnvironment in the Go SDK.

    public static class GetBatchBatchTaskEnvironment 
    {
        public static Task<GetBatchBatchTaskEnvironmentResult> InvokeAsync(GetBatchBatchTaskEnvironmentArgs args, InvokeOptions? opts = null)
        public static Output<GetBatchBatchTaskEnvironmentResult> Invoke(GetBatchBatchTaskEnvironmentInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBatchBatchTaskEnvironmentResult> getBatchBatchTaskEnvironment(GetBatchBatchTaskEnvironmentArgs args, InvokeOptions options)
    public static Output<GetBatchBatchTaskEnvironmentResult> getBatchBatchTaskEnvironment(GetBatchBatchTaskEnvironmentArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:oci/getBatchBatchTaskEnvironment:getBatchBatchTaskEnvironment
      arguments:
        # arguments dictionary

    The following arguments are supported:

    BatchTaskEnvironmentId string
    The OCID of the batch task environment.
    BatchTaskEnvironmentId string
    The OCID of the batch task environment.
    batchTaskEnvironmentId String
    The OCID of the batch task environment.
    batchTaskEnvironmentId string
    The OCID of the batch task environment.
    batch_task_environment_id str
    The OCID of the batch task environment.
    batchTaskEnvironmentId String
    The OCID of the batch task environment.

    getBatchBatchTaskEnvironment Result

    The following output properties are available:

    BatchTaskEnvironmentId string
    CompartmentId string
    The OCID of the compartment.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    The batch task environment description.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. If not specified or provided as null or empty string, it be generated as "", where timeCreated corresponds with the resource creation time in ISO 8601 basic format, i.e. omitting separating punctuation, at second-level precision and no UTC offset. Example: batchtaskenvironment20250914115623.
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the batch task environment.
    ImageUrl string
    The URL of the ocir image.
    SecurityContexts List<GetBatchBatchTaskEnvironmentSecurityContext>
    Security context for container runtime configuration.
    State string
    The current state of the batch task environment.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the batch task environment was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the batch task environment was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    Volumes List<GetBatchBatchTaskEnvironmentVolume>
    List of volumes attached to the image. The use cases of the volumes are but not limited to: read the input of the task and write the output.
    WorkingDirectory string
    Container's working directory.
    BatchTaskEnvironmentId string
    CompartmentId string
    The OCID of the compartment.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    The batch task environment description.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. If not specified or provided as null or empty string, it be generated as "", where timeCreated corresponds with the resource creation time in ISO 8601 basic format, i.e. omitting separating punctuation, at second-level precision and no UTC offset. Example: batchtaskenvironment20250914115623.
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the batch task environment.
    ImageUrl string
    The URL of the ocir image.
    SecurityContexts []GetBatchBatchTaskEnvironmentSecurityContext
    Security context for container runtime configuration.
    State string
    The current state of the batch task environment.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the batch task environment was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the batch task environment was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    Volumes []GetBatchBatchTaskEnvironmentVolume
    List of volumes attached to the image. The use cases of the volumes are but not limited to: read the input of the task and write the output.
    WorkingDirectory string
    Container's working directory.
    batchTaskEnvironmentId String
    compartmentId String
    The OCID of the compartment.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    The batch task environment description.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. If not specified or provided as null or empty string, it be generated as "", where timeCreated corresponds with the resource creation time in ISO 8601 basic format, i.e. omitting separating punctuation, at second-level precision and no UTC offset. Example: batchtaskenvironment20250914115623.
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the batch task environment.
    imageUrl String
    The URL of the ocir image.
    securityContexts List<GetBatchBatchTaskEnvironmentSecurityContext>
    Security context for container runtime configuration.
    state String
    The current state of the batch task environment.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the batch task environment was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the batch task environment was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    volumes List<GetBatchBatchTaskEnvironmentVolume>
    List of volumes attached to the image. The use cases of the volumes are but not limited to: read the input of the task and write the output.
    workingDirectory String
    Container's working directory.
    batchTaskEnvironmentId string
    compartmentId string
    The OCID of the compartment.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description string
    The batch task environment description.
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable. If not specified or provided as null or empty string, it be generated as "", where timeCreated corresponds with the resource creation time in ISO 8601 basic format, i.e. omitting separating punctuation, at second-level precision and no UTC offset. Example: batchtaskenvironment20250914115623.
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    The OCID of the batch task environment.
    imageUrl string
    The URL of the ocir image.
    securityContexts GetBatchBatchTaskEnvironmentSecurityContext[]
    Security context for container runtime configuration.
    state string
    The current state of the batch task environment.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time the batch task environment was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    The date and time the batch task environment was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    volumes GetBatchBatchTaskEnvironmentVolume[]
    List of volumes attached to the image. The use cases of the volumes are but not limited to: read the input of the task and write the output.
    workingDirectory string
    Container's working directory.
    batch_task_environment_id str
    compartment_id str
    The OCID of the compartment.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description str
    The batch task environment description.
    display_name str
    A user-friendly name. Does not have to be unique, and it's changeable. If not specified or provided as null or empty string, it be generated as "", where timeCreated corresponds with the resource creation time in ISO 8601 basic format, i.e. omitting separating punctuation, at second-level precision and no UTC offset. Example: batchtaskenvironment20250914115623.
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    The OCID of the batch task environment.
    image_url str
    The URL of the ocir image.
    security_contexts Sequence[GetBatchBatchTaskEnvironmentSecurityContext]
    Security context for container runtime configuration.
    state str
    The current state of the batch task environment.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The date and time the batch task environment was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_updated str
    The date and time the batch task environment was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    volumes Sequence[GetBatchBatchTaskEnvironmentVolume]
    List of volumes attached to the image. The use cases of the volumes are but not limited to: read the input of the task and write the output.
    working_directory str
    Container's working directory.
    batchTaskEnvironmentId String
    compartmentId String
    The OCID of the compartment.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    The batch task environment description.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. If not specified or provided as null or empty string, it be generated as "", where timeCreated corresponds with the resource creation time in ISO 8601 basic format, i.e. omitting separating punctuation, at second-level precision and no UTC offset. Example: batchtaskenvironment20250914115623.
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the batch task environment.
    imageUrl String
    The URL of the ocir image.
    securityContexts List<Property Map>
    Security context for container runtime configuration.
    state String
    The current state of the batch task environment.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the batch task environment was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the batch task environment was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    volumes List<Property Map>
    List of volumes attached to the image. The use cases of the volumes are but not limited to: read the input of the task and write the output.
    workingDirectory String
    Container's working directory.

    Supporting Types

    GetBatchBatchTaskEnvironmentSecurityContext

    FsGroup int
    A special supplemental group ID that applies to all containers in a pod.
    RunAsGroup int
    Group ID for running processes inside the container.
    RunAsUser int
    User ID for running processes inside the container.
    FsGroup int
    A special supplemental group ID that applies to all containers in a pod.
    RunAsGroup int
    Group ID for running processes inside the container.
    RunAsUser int
    User ID for running processes inside the container.
    fsGroup Integer
    A special supplemental group ID that applies to all containers in a pod.
    runAsGroup Integer
    Group ID for running processes inside the container.
    runAsUser Integer
    User ID for running processes inside the container.
    fsGroup number
    A special supplemental group ID that applies to all containers in a pod.
    runAsGroup number
    Group ID for running processes inside the container.
    runAsUser number
    User ID for running processes inside the container.
    fs_group int
    A special supplemental group ID that applies to all containers in a pod.
    run_as_group int
    Group ID for running processes inside the container.
    run_as_user int
    User ID for running processes inside the container.
    fsGroup Number
    A special supplemental group ID that applies to all containers in a pod.
    runAsGroup Number
    Group ID for running processes inside the container.
    runAsUser Number
    User ID for running processes inside the container.

    GetBatchBatchTaskEnvironmentVolume

    LocalMountDirectoryPath string
    The local path to mount the NFS share to.
    MountTargetExportPath string
    The path to the directory on the NFS server to be mounted.
    MountTargetFqdn string
    The FQDN of the NFS server to connect to.
    Name string
    The name of the NfsVolume.
    Type string
    Discriminator for sub-entities.
    LocalMountDirectoryPath string
    The local path to mount the NFS share to.
    MountTargetExportPath string
    The path to the directory on the NFS server to be mounted.
    MountTargetFqdn string
    The FQDN of the NFS server to connect to.
    Name string
    The name of the NfsVolume.
    Type string
    Discriminator for sub-entities.
    localMountDirectoryPath String
    The local path to mount the NFS share to.
    mountTargetExportPath String
    The path to the directory on the NFS server to be mounted.
    mountTargetFqdn String
    The FQDN of the NFS server to connect to.
    name String
    The name of the NfsVolume.
    type String
    Discriminator for sub-entities.
    localMountDirectoryPath string
    The local path to mount the NFS share to.
    mountTargetExportPath string
    The path to the directory on the NFS server to be mounted.
    mountTargetFqdn string
    The FQDN of the NFS server to connect to.
    name string
    The name of the NfsVolume.
    type string
    Discriminator for sub-entities.
    local_mount_directory_path str
    The local path to mount the NFS share to.
    mount_target_export_path str
    The path to the directory on the NFS server to be mounted.
    mount_target_fqdn str
    The FQDN of the NFS server to connect to.
    name str
    The name of the NfsVolume.
    type str
    Discriminator for sub-entities.
    localMountDirectoryPath String
    The local path to mount the NFS share to.
    mountTargetExportPath String
    The path to the directory on the NFS server to be mounted.
    mountTargetFqdn String
    The FQDN of the NFS server to connect to.
    name String
    The name of the NfsVolume.
    type String
    Discriminator for sub-entities.

    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 v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate