1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. oci
  5. getBatchBatchContext
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 Context resource in Oracle Cloud Infrastructure Batch service.

    Gets information about a batch context.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testBatchContext = oci.oci.getBatchBatchContext({
        batchContextId: testBatchContextOciBatchBatchContext.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_batch_context = oci.oci.get_batch_batch_context(batch_context_id=test_batch_context_oci_batch_batch_context["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.LookupBatchBatchContext(ctx, &oci.LookupBatchBatchContextArgs{
    			BatchContextId: testBatchContextOciBatchBatchContext.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 testBatchContext = Oci.Oci.GetBatchBatchContext.Invoke(new()
        {
            BatchContextId = testBatchContextOciBatchBatchContext.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.GetBatchBatchContextArgs;
    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 testBatchContext = OciFunctions.getBatchBatchContext(GetBatchBatchContextArgs.builder()
                .batchContextId(testBatchContextOciBatchBatchContext.id())
                .build());
    
        }
    }
    
    variables:
      testBatchContext:
        fn::invoke:
          function: oci:oci:getBatchBatchContext
          arguments:
            batchContextId: ${testBatchContextOciBatchBatchContext.id}
    

    Using getBatchBatchContext

    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 getBatchBatchContext(args: GetBatchBatchContextArgs, opts?: InvokeOptions): Promise<GetBatchBatchContextResult>
    function getBatchBatchContextOutput(args: GetBatchBatchContextOutputArgs, opts?: InvokeOptions): Output<GetBatchBatchContextResult>
    def get_batch_batch_context(batch_context_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetBatchBatchContextResult
    def get_batch_batch_context_output(batch_context_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetBatchBatchContextResult]
    func LookupBatchBatchContext(ctx *Context, args *LookupBatchBatchContextArgs, opts ...InvokeOption) (*LookupBatchBatchContextResult, error)
    func LookupBatchBatchContextOutput(ctx *Context, args *LookupBatchBatchContextOutputArgs, opts ...InvokeOption) LookupBatchBatchContextResultOutput

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

    public static class GetBatchBatchContext 
    {
        public static Task<GetBatchBatchContextResult> InvokeAsync(GetBatchBatchContextArgs args, InvokeOptions? opts = null)
        public static Output<GetBatchBatchContextResult> Invoke(GetBatchBatchContextInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBatchBatchContextResult> getBatchBatchContext(GetBatchBatchContextArgs args, InvokeOptions options)
    public static Output<GetBatchBatchContextResult> getBatchBatchContext(GetBatchBatchContextArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:oci/getBatchBatchContext:getBatchBatchContext
      arguments:
        # arguments dictionary

    The following arguments are supported:

    BatchContextId string
    The OCID of the batch context.
    BatchContextId string
    The OCID of the batch context.
    batchContextId String
    The OCID of the batch context.
    batchContextId string
    The OCID of the batch context.
    batch_context_id str
    The OCID of the batch context.
    batchContextId String
    The OCID of the batch context.

    getBatchBatchContext Result

    The following output properties are available:

    BatchContextId 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
    Summarized information about the batch context.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable.
    Entitlements Dictionary<string, string>
    Mapping of concurrent/shared resources used in job tasks to their limits.
    Fleets List<GetBatchBatchContextFleet>
    List of fleet configurations related to the batch context.
    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 private endpoint's VNIC, which resides in the customer's VCN.
    JobPriorityConfigurations List<GetBatchBatchContextJobPriorityConfiguration>
    List of job priority configurations related to the batch context.
    LifecycleDetails string
    A message that describes the current state in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    LoggingConfigurations List<GetBatchBatchContextLoggingConfiguration>
    Logging configuration for batch context.
    Networks List<GetBatchBatchContextNetwork>
    Network configuration of the batch context.
    State string
    The current state of the batch context.
    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 context was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the batch context was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    BatchContextId 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
    Summarized information about the batch context.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable.
    Entitlements map[string]string
    Mapping of concurrent/shared resources used in job tasks to their limits.
    Fleets []GetBatchBatchContextFleet
    List of fleet configurations related to the batch context.
    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 private endpoint's VNIC, which resides in the customer's VCN.
    JobPriorityConfigurations []GetBatchBatchContextJobPriorityConfiguration
    List of job priority configurations related to the batch context.
    LifecycleDetails string
    A message that describes the current state in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    LoggingConfigurations []GetBatchBatchContextLoggingConfiguration
    Logging configuration for batch context.
    Networks []GetBatchBatchContextNetwork
    Network configuration of the batch context.
    State string
    The current state of the batch context.
    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 context was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the batch context was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    batchContextId 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
    Summarized information about the batch context.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable.
    entitlements Map<String,String>
    Mapping of concurrent/shared resources used in job tasks to their limits.
    fleets List<GetBatchBatchContextFleet>
    List of fleet configurations related to the batch context.
    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 private endpoint's VNIC, which resides in the customer's VCN.
    jobPriorityConfigurations List<GetBatchBatchContextJobPriorityConfiguration>
    List of job priority configurations related to the batch context.
    lifecycleDetails String
    A message that describes the current state in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    loggingConfigurations List<GetBatchBatchContextLoggingConfiguration>
    Logging configuration for batch context.
    networks List<GetBatchBatchContextNetwork>
    Network configuration of the batch context.
    state String
    The current state of the batch context.
    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 context was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the batch context was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    batchContextId 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
    Summarized information about the batch context.
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable.
    entitlements {[key: string]: string}
    Mapping of concurrent/shared resources used in job tasks to their limits.
    fleets GetBatchBatchContextFleet[]
    List of fleet configurations related to the batch context.
    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 private endpoint's VNIC, which resides in the customer's VCN.
    jobPriorityConfigurations GetBatchBatchContextJobPriorityConfiguration[]
    List of job priority configurations related to the batch context.
    lifecycleDetails string
    A message that describes the current state in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    loggingConfigurations GetBatchBatchContextLoggingConfiguration[]
    Logging configuration for batch context.
    networks GetBatchBatchContextNetwork[]
    Network configuration of the batch context.
    state string
    The current state of the batch context.
    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 context was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    The date and time the batch context was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    batch_context_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
    Summarized information about the batch context.
    display_name str
    A user-friendly name. Does not have to be unique, and it's changeable.
    entitlements Mapping[str, str]
    Mapping of concurrent/shared resources used in job tasks to their limits.
    fleets Sequence[GetBatchBatchContextFleet]
    List of fleet configurations related to the batch context.
    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 private endpoint's VNIC, which resides in the customer's VCN.
    job_priority_configurations Sequence[GetBatchBatchContextJobPriorityConfiguration]
    List of job priority configurations related to the batch context.
    lifecycle_details str
    A message that describes the current state in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    logging_configurations Sequence[GetBatchBatchContextLoggingConfiguration]
    Logging configuration for batch context.
    networks Sequence[GetBatchBatchContextNetwork]
    Network configuration of the batch context.
    state str
    The current state of the batch context.
    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 context 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 context was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    batchContextId 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
    Summarized information about the batch context.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable.
    entitlements Map<String>
    Mapping of concurrent/shared resources used in job tasks to their limits.
    fleets List<Property Map>
    List of fleet configurations related to the batch context.
    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 private endpoint's VNIC, which resides in the customer's VCN.
    jobPriorityConfigurations List<Property Map>
    List of job priority configurations related to the batch context.
    lifecycleDetails String
    A message that describes the current state in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    loggingConfigurations List<Property Map>
    Logging configuration for batch context.
    networks List<Property Map>
    Network configuration of the batch context.
    state String
    The current state of the batch context.
    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 context was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the batch context was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z

    Supporting Types

    GetBatchBatchContextFleet

    Details string
    A message that describes the current state of the service manage fleet configuration in more detail.
    MaxConcurrentTasks int
    Maximum number of concurrent tasks for the service managed fleet.
    Name string
    Name of the service managed fleet.
    Shapes List<GetBatchBatchContextFleetShape>
    Shape of the fleet. Describes hardware resources of each node in the fleet.
    State string
    The current state of the batch context.
    Type string
    Discriminator for sub-entities.
    Details string
    A message that describes the current state of the service manage fleet configuration in more detail.
    MaxConcurrentTasks int
    Maximum number of concurrent tasks for the service managed fleet.
    Name string
    Name of the service managed fleet.
    Shapes []GetBatchBatchContextFleetShape
    Shape of the fleet. Describes hardware resources of each node in the fleet.
    State string
    The current state of the batch context.
    Type string
    Discriminator for sub-entities.
    details String
    A message that describes the current state of the service manage fleet configuration in more detail.
    maxConcurrentTasks Integer
    Maximum number of concurrent tasks for the service managed fleet.
    name String
    Name of the service managed fleet.
    shapes List<GetBatchBatchContextFleetShape>
    Shape of the fleet. Describes hardware resources of each node in the fleet.
    state String
    The current state of the batch context.
    type String
    Discriminator for sub-entities.
    details string
    A message that describes the current state of the service manage fleet configuration in more detail.
    maxConcurrentTasks number
    Maximum number of concurrent tasks for the service managed fleet.
    name string
    Name of the service managed fleet.
    shapes GetBatchBatchContextFleetShape[]
    Shape of the fleet. Describes hardware resources of each node in the fleet.
    state string
    The current state of the batch context.
    type string
    Discriminator for sub-entities.
    details str
    A message that describes the current state of the service manage fleet configuration in more detail.
    max_concurrent_tasks int
    Maximum number of concurrent tasks for the service managed fleet.
    name str
    Name of the service managed fleet.
    shapes Sequence[GetBatchBatchContextFleetShape]
    Shape of the fleet. Describes hardware resources of each node in the fleet.
    state str
    The current state of the batch context.
    type str
    Discriminator for sub-entities.
    details String
    A message that describes the current state of the service manage fleet configuration in more detail.
    maxConcurrentTasks Number
    Maximum number of concurrent tasks for the service managed fleet.
    name String
    Name of the service managed fleet.
    shapes List<Property Map>
    Shape of the fleet. Describes hardware resources of each node in the fleet.
    state String
    The current state of the batch context.
    type String
    Discriminator for sub-entities.

    GetBatchBatchContextFleetShape

    MemoryInGbs int
    Amount of memory in GBs required by the shape.
    Ocpus int
    Number of OCPUs required by the shape.
    ShapeName string
    The name of the shape.
    MemoryInGbs int
    Amount of memory in GBs required by the shape.
    Ocpus int
    Number of OCPUs required by the shape.
    ShapeName string
    The name of the shape.
    memoryInGbs Integer
    Amount of memory in GBs required by the shape.
    ocpus Integer
    Number of OCPUs required by the shape.
    shapeName String
    The name of the shape.
    memoryInGbs number
    Amount of memory in GBs required by the shape.
    ocpus number
    Number of OCPUs required by the shape.
    shapeName string
    The name of the shape.
    memory_in_gbs int
    Amount of memory in GBs required by the shape.
    ocpus int
    Number of OCPUs required by the shape.
    shape_name str
    The name of the shape.
    memoryInGbs Number
    Amount of memory in GBs required by the shape.
    ocpus Number
    Number of OCPUs required by the shape.
    shapeName String
    The name of the shape.

    GetBatchBatchContextJobPriorityConfiguration

    TagKey string
    Name of the tag key.
    TagNamespace string
    Name of the corresponding tag namespace.
    Values Dictionary<string, string>
    Mapping of tag value to its priority.
    Weight int
    Weight associated with the tag key. Percentage point is the unit of measurement.
    TagKey string
    Name of the tag key.
    TagNamespace string
    Name of the corresponding tag namespace.
    Values map[string]string
    Mapping of tag value to its priority.
    Weight int
    Weight associated with the tag key. Percentage point is the unit of measurement.
    tagKey String
    Name of the tag key.
    tagNamespace String
    Name of the corresponding tag namespace.
    values Map<String,String>
    Mapping of tag value to its priority.
    weight Integer
    Weight associated with the tag key. Percentage point is the unit of measurement.
    tagKey string
    Name of the tag key.
    tagNamespace string
    Name of the corresponding tag namespace.
    values {[key: string]: string}
    Mapping of tag value to its priority.
    weight number
    Weight associated with the tag key. Percentage point is the unit of measurement.
    tag_key str
    Name of the tag key.
    tag_namespace str
    Name of the corresponding tag namespace.
    values Mapping[str, str]
    Mapping of tag value to its priority.
    weight int
    Weight associated with the tag key. Percentage point is the unit of measurement.
    tagKey String
    Name of the tag key.
    tagNamespace String
    Name of the corresponding tag namespace.
    values Map<String>
    Mapping of tag value to its priority.
    weight Number
    Weight associated with the tag key. Percentage point is the unit of measurement.

    GetBatchBatchContextLoggingConfiguration

    LogGroupId string
    The OCID of the log group.
    LogId string
    The OCID of the log.
    Type string
    Discriminator for sub-entities.
    LogGroupId string
    The OCID of the log group.
    LogId string
    The OCID of the log.
    Type string
    Discriminator for sub-entities.
    logGroupId String
    The OCID of the log group.
    logId String
    The OCID of the log.
    type String
    Discriminator for sub-entities.
    logGroupId string
    The OCID of the log group.
    logId string
    The OCID of the log.
    type string
    Discriminator for sub-entities.
    log_group_id str
    The OCID of the log group.
    log_id str
    The OCID of the log.
    type str
    Discriminator for sub-entities.
    logGroupId String
    The OCID of the log group.
    logId String
    The OCID of the log.
    type String
    Discriminator for sub-entities.

    GetBatchBatchContextNetwork

    NsgIds List<string>
    A list of OCIDs of associated network security groups.
    SubnetId string
    OCID of associated subnet.
    Vnics List<GetBatchBatchContextNetworkVnic>
    A list of private endpoint's VNICs.
    NsgIds []string
    A list of OCIDs of associated network security groups.
    SubnetId string
    OCID of associated subnet.
    Vnics []GetBatchBatchContextNetworkVnic
    A list of private endpoint's VNICs.
    nsgIds List<String>
    A list of OCIDs of associated network security groups.
    subnetId String
    OCID of associated subnet.
    vnics List<GetBatchBatchContextNetworkVnic>
    A list of private endpoint's VNICs.
    nsgIds string[]
    A list of OCIDs of associated network security groups.
    subnetId string
    OCID of associated subnet.
    vnics GetBatchBatchContextNetworkVnic[]
    A list of private endpoint's VNICs.
    nsg_ids Sequence[str]
    A list of OCIDs of associated network security groups.
    subnet_id str
    OCID of associated subnet.
    vnics Sequence[GetBatchBatchContextNetworkVnic]
    A list of private endpoint's VNICs.
    nsgIds List<String>
    A list of OCIDs of associated network security groups.
    subnetId String
    OCID of associated subnet.
    vnics List<Property Map>
    A list of private endpoint's VNICs.

    GetBatchBatchContextNetworkVnic

    Id string
    The OCID of the private endpoint's VNIC, which resides in the customer's VCN.
    SourceIps List<string>
    A list of private IP addresses (in the customer's VCN) that represent access points for the service.
    Id string
    The OCID of the private endpoint's VNIC, which resides in the customer's VCN.
    SourceIps []string
    A list of private IP addresses (in the customer's VCN) that represent access points for the service.
    id String
    The OCID of the private endpoint's VNIC, which resides in the customer's VCN.
    sourceIps List<String>
    A list of private IP addresses (in the customer's VCN) that represent access points for the service.
    id string
    The OCID of the private endpoint's VNIC, which resides in the customer's VCN.
    sourceIps string[]
    A list of private IP addresses (in the customer's VCN) that represent access points for the service.
    id str
    The OCID of the private endpoint's VNIC, which resides in the customer's VCN.
    source_ips Sequence[str]
    A list of private IP addresses (in the customer's VCN) that represent access points for the service.
    id String
    The OCID of the private endpoint's VNIC, which resides in the customer's VCN.
    sourceIps List<String>
    A list of private IP addresses (in the customer's VCN) that represent access points for the service.

    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