1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. oci
  5. getBatchBatchContextShapes
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 the list of Batch Context Shapes in Oracle Cloud Infrastructure Batch service.

    Lists the shapes allowed to be specified during batch context creation. Ordered by the shape name.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testBatchContextShapes = oci.oci.getBatchBatchContextShapes({
        compartmentId: compartmentId,
        availabilityDomain: batchContextShapeAvailabilityDomain,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_batch_context_shapes = oci.oci.get_batch_batch_context_shapes(compartment_id=compartment_id,
        availability_domain=batch_context_shape_availability_domain)
    
    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.GetBatchBatchContextShapes(ctx, &oci.GetBatchBatchContextShapesArgs{
    			CompartmentId:      compartmentId,
    			AvailabilityDomain: pulumi.StringRef(batchContextShapeAvailabilityDomain),
    		}, 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 testBatchContextShapes = Oci.Oci.GetBatchBatchContextShapes.Invoke(new()
        {
            CompartmentId = compartmentId,
            AvailabilityDomain = batchContextShapeAvailabilityDomain,
        });
    
    });
    
    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.GetBatchBatchContextShapesArgs;
    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 testBatchContextShapes = OciFunctions.getBatchBatchContextShapes(GetBatchBatchContextShapesArgs.builder()
                .compartmentId(compartmentId)
                .availabilityDomain(batchContextShapeAvailabilityDomain)
                .build());
    
        }
    }
    
    variables:
      testBatchContextShapes:
        fn::invoke:
          function: oci:oci:getBatchBatchContextShapes
          arguments:
            compartmentId: ${compartmentId}
            availabilityDomain: ${batchContextShapeAvailabilityDomain}
    

    Using getBatchBatchContextShapes

    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 getBatchBatchContextShapes(args: GetBatchBatchContextShapesArgs, opts?: InvokeOptions): Promise<GetBatchBatchContextShapesResult>
    function getBatchBatchContextShapesOutput(args: GetBatchBatchContextShapesOutputArgs, opts?: InvokeOptions): Output<GetBatchBatchContextShapesResult>
    def get_batch_batch_context_shapes(availability_domain: Optional[str] = None,
                                       compartment_id: Optional[str] = None,
                                       filters: Optional[Sequence[GetBatchBatchContextShapesFilter]] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetBatchBatchContextShapesResult
    def get_batch_batch_context_shapes_output(availability_domain: Optional[pulumi.Input[str]] = None,
                                       compartment_id: Optional[pulumi.Input[str]] = None,
                                       filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetBatchBatchContextShapesFilterArgs]]]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetBatchBatchContextShapesResult]
    func GetBatchBatchContextShapes(ctx *Context, args *GetBatchBatchContextShapesArgs, opts ...InvokeOption) (*GetBatchBatchContextShapesResult, error)
    func GetBatchBatchContextShapesOutput(ctx *Context, args *GetBatchBatchContextShapesOutputArgs, opts ...InvokeOption) GetBatchBatchContextShapesResultOutput

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

    public static class GetBatchBatchContextShapes 
    {
        public static Task<GetBatchBatchContextShapesResult> InvokeAsync(GetBatchBatchContextShapesArgs args, InvokeOptions? opts = null)
        public static Output<GetBatchBatchContextShapesResult> Invoke(GetBatchBatchContextShapesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBatchBatchContextShapesResult> getBatchBatchContextShapes(GetBatchBatchContextShapesArgs args, InvokeOptions options)
    public static Output<GetBatchBatchContextShapesResult> getBatchBatchContextShapes(GetBatchBatchContextShapesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:oci/getBatchBatchContextShapes:getBatchBatchContextShapes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment in which to list resources.
    AvailabilityDomain string
    The name of the availability domain.
    Filters List<GetBatchBatchContextShapesFilter>
    CompartmentId string
    The OCID of the compartment in which to list resources.
    AvailabilityDomain string
    The name of the availability domain.
    Filters []GetBatchBatchContextShapesFilter
    compartmentId String
    The OCID of the compartment in which to list resources.
    availabilityDomain String
    The name of the availability domain.
    filters List<GetBatchBatchContextShapesFilter>
    compartmentId string
    The OCID of the compartment in which to list resources.
    availabilityDomain string
    The name of the availability domain.
    filters GetBatchBatchContextShapesFilter[]
    compartment_id str
    The OCID of the compartment in which to list resources.
    availability_domain str
    The name of the availability domain.
    filters Sequence[GetBatchBatchContextShapesFilter]
    compartmentId String
    The OCID of the compartment in which to list resources.
    availabilityDomain String
    The name of the availability domain.
    filters List<Property Map>

    getBatchBatchContextShapes Result

    The following output properties are available:

    BatchContextShapeCollections List<GetBatchBatchContextShapesBatchContextShapeCollection>
    The list of batch_context_shape_collection.
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    AvailabilityDomain string
    Filters List<GetBatchBatchContextShapesFilter>
    BatchContextShapeCollections []GetBatchBatchContextShapesBatchContextShapeCollection
    The list of batch_context_shape_collection.
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    AvailabilityDomain string
    Filters []GetBatchBatchContextShapesFilter
    batchContextShapeCollections List<GetBatchBatchContextShapesBatchContextShapeCollection>
    The list of batch_context_shape_collection.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    availabilityDomain String
    filters List<GetBatchBatchContextShapesFilter>
    batchContextShapeCollections GetBatchBatchContextShapesBatchContextShapeCollection[]
    The list of batch_context_shape_collection.
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    availabilityDomain string
    filters GetBatchBatchContextShapesFilter[]
    batchContextShapeCollections List<Property Map>
    The list of batch_context_shape_collection.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    availabilityDomain String
    filters List<Property Map>

    Supporting Types

    GetBatchBatchContextShapesBatchContextShapeCollection

    items List<Property Map>
    List of shapes.

    GetBatchBatchContextShapesBatchContextShapeCollectionItem

    MemoryOptions List<GetBatchBatchContextShapesBatchContextShapeCollectionItemMemoryOption>
    The amount of memory available for container instances that use this shape.
    Name string
    The name identifying the shape.
    NetworkingBandwidthOptions List<GetBatchBatchContextShapesBatchContextShapeCollectionItemNetworkingBandwidthOption>
    For a flexible shape, the amount of networking bandwidth available for container instances that use this shape.
    OcpuOptions List<GetBatchBatchContextShapesBatchContextShapeCollectionItemOcpuOption>
    For a flexible shape, the number of OCPUs available for container instances that use this shape.
    ProcessorDescription string
    A short description of the container instance's processor (CPU).
    MemoryOptions []GetBatchBatchContextShapesBatchContextShapeCollectionItemMemoryOption
    The amount of memory available for container instances that use this shape.
    Name string
    The name identifying the shape.
    NetworkingBandwidthOptions []GetBatchBatchContextShapesBatchContextShapeCollectionItemNetworkingBandwidthOption
    For a flexible shape, the amount of networking bandwidth available for container instances that use this shape.
    OcpuOptions []GetBatchBatchContextShapesBatchContextShapeCollectionItemOcpuOption
    For a flexible shape, the number of OCPUs available for container instances that use this shape.
    ProcessorDescription string
    A short description of the container instance's processor (CPU).
    memoryOptions List<GetBatchBatchContextShapesBatchContextShapeCollectionItemMemoryOption>
    The amount of memory available for container instances that use this shape.
    name String
    The name identifying the shape.
    networkingBandwidthOptions List<GetBatchBatchContextShapesBatchContextShapeCollectionItemNetworkingBandwidthOption>
    For a flexible shape, the amount of networking bandwidth available for container instances that use this shape.
    ocpuOptions List<GetBatchBatchContextShapesBatchContextShapeCollectionItemOcpuOption>
    For a flexible shape, the number of OCPUs available for container instances that use this shape.
    processorDescription String
    A short description of the container instance's processor (CPU).
    memoryOptions GetBatchBatchContextShapesBatchContextShapeCollectionItemMemoryOption[]
    The amount of memory available for container instances that use this shape.
    name string
    The name identifying the shape.
    networkingBandwidthOptions GetBatchBatchContextShapesBatchContextShapeCollectionItemNetworkingBandwidthOption[]
    For a flexible shape, the amount of networking bandwidth available for container instances that use this shape.
    ocpuOptions GetBatchBatchContextShapesBatchContextShapeCollectionItemOcpuOption[]
    For a flexible shape, the number of OCPUs available for container instances that use this shape.
    processorDescription string
    A short description of the container instance's processor (CPU).
    memory_options Sequence[GetBatchBatchContextShapesBatchContextShapeCollectionItemMemoryOption]
    The amount of memory available for container instances that use this shape.
    name str
    The name identifying the shape.
    networking_bandwidth_options Sequence[GetBatchBatchContextShapesBatchContextShapeCollectionItemNetworkingBandwidthOption]
    For a flexible shape, the amount of networking bandwidth available for container instances that use this shape.
    ocpu_options Sequence[GetBatchBatchContextShapesBatchContextShapeCollectionItemOcpuOption]
    For a flexible shape, the number of OCPUs available for container instances that use this shape.
    processor_description str
    A short description of the container instance's processor (CPU).
    memoryOptions List<Property Map>
    The amount of memory available for container instances that use this shape.
    name String
    The name identifying the shape.
    networkingBandwidthOptions List<Property Map>
    For a flexible shape, the amount of networking bandwidth available for container instances that use this shape.
    ocpuOptions List<Property Map>
    For a flexible shape, the number of OCPUs available for container instances that use this shape.
    processorDescription String
    A short description of the container instance's processor (CPU).

    GetBatchBatchContextShapesBatchContextShapeCollectionItemMemoryOption

    DefaultPerOcpuInGbs double
    The default amount of memory per OCPU available for this shape (GB).
    MaxInGbs double
    The maximum amount of memory (GB).
    MaxPerOcpuInGbs double
    For a flexible shape, the maximum amount of memory per OCPU available for this shape (GB).
    MinInGbs double
    The minimum amount of memory (GB).
    MinPerOcpuInGbs double
    The minimum amount of memory per OCPU available for this shape (GB).
    DefaultPerOcpuInGbs float64
    The default amount of memory per OCPU available for this shape (GB).
    MaxInGbs float64
    The maximum amount of memory (GB).
    MaxPerOcpuInGbs float64
    For a flexible shape, the maximum amount of memory per OCPU available for this shape (GB).
    MinInGbs float64
    The minimum amount of memory (GB).
    MinPerOcpuInGbs float64
    The minimum amount of memory per OCPU available for this shape (GB).
    defaultPerOcpuInGbs Double
    The default amount of memory per OCPU available for this shape (GB).
    maxInGbs Double
    The maximum amount of memory (GB).
    maxPerOcpuInGbs Double
    For a flexible shape, the maximum amount of memory per OCPU available for this shape (GB).
    minInGbs Double
    The minimum amount of memory (GB).
    minPerOcpuInGbs Double
    The minimum amount of memory per OCPU available for this shape (GB).
    defaultPerOcpuInGbs number
    The default amount of memory per OCPU available for this shape (GB).
    maxInGbs number
    The maximum amount of memory (GB).
    maxPerOcpuInGbs number
    For a flexible shape, the maximum amount of memory per OCPU available for this shape (GB).
    minInGbs number
    The minimum amount of memory (GB).
    minPerOcpuInGbs number
    The minimum amount of memory per OCPU available for this shape (GB).
    default_per_ocpu_in_gbs float
    The default amount of memory per OCPU available for this shape (GB).
    max_in_gbs float
    The maximum amount of memory (GB).
    max_per_ocpu_in_gbs float
    For a flexible shape, the maximum amount of memory per OCPU available for this shape (GB).
    min_in_gbs float
    The minimum amount of memory (GB).
    min_per_ocpu_in_gbs float
    The minimum amount of memory per OCPU available for this shape (GB).
    defaultPerOcpuInGbs Number
    The default amount of memory per OCPU available for this shape (GB).
    maxInGbs Number
    The maximum amount of memory (GB).
    maxPerOcpuInGbs Number
    For a flexible shape, the maximum amount of memory per OCPU available for this shape (GB).
    minInGbs Number
    The minimum amount of memory (GB).
    minPerOcpuInGbs Number
    The minimum amount of memory per OCPU available for this shape (GB).

    GetBatchBatchContextShapesBatchContextShapeCollectionItemNetworkingBandwidthOption

    DefaultPerOcpuInGbps double
    The default amount of networking bandwidth per OCPU, in gigabits per second.
    MaxInGbps double
    The maximum amount of networking bandwidth, in gigabits per second.
    MinInGbps double
    The minimum amount of networking bandwidth, in gigabits per second.
    DefaultPerOcpuInGbps float64
    The default amount of networking bandwidth per OCPU, in gigabits per second.
    MaxInGbps float64
    The maximum amount of networking bandwidth, in gigabits per second.
    MinInGbps float64
    The minimum amount of networking bandwidth, in gigabits per second.
    defaultPerOcpuInGbps Double
    The default amount of networking bandwidth per OCPU, in gigabits per second.
    maxInGbps Double
    The maximum amount of networking bandwidth, in gigabits per second.
    minInGbps Double
    The minimum amount of networking bandwidth, in gigabits per second.
    defaultPerOcpuInGbps number
    The default amount of networking bandwidth per OCPU, in gigabits per second.
    maxInGbps number
    The maximum amount of networking bandwidth, in gigabits per second.
    minInGbps number
    The minimum amount of networking bandwidth, in gigabits per second.
    default_per_ocpu_in_gbps float
    The default amount of networking bandwidth per OCPU, in gigabits per second.
    max_in_gbps float
    The maximum amount of networking bandwidth, in gigabits per second.
    min_in_gbps float
    The minimum amount of networking bandwidth, in gigabits per second.
    defaultPerOcpuInGbps Number
    The default amount of networking bandwidth per OCPU, in gigabits per second.
    maxInGbps Number
    The maximum amount of networking bandwidth, in gigabits per second.
    minInGbps Number
    The minimum amount of networking bandwidth, in gigabits per second.

    GetBatchBatchContextShapesBatchContextShapeCollectionItemOcpuOption

    MaxOcpus double
    The maximum number of OCPUs.
    MinOcpus double
    The minimum number of OCPUs.
    MaxOcpus float64
    The maximum number of OCPUs.
    MinOcpus float64
    The minimum number of OCPUs.
    maxOcpus Double
    The maximum number of OCPUs.
    minOcpus Double
    The minimum number of OCPUs.
    maxOcpus number
    The maximum number of OCPUs.
    minOcpus number
    The minimum number of OCPUs.
    max_ocpus float
    The maximum number of OCPUs.
    min_ocpus float
    The minimum number of OCPUs.
    maxOcpus Number
    The maximum number of OCPUs.
    minOcpus Number
    The minimum number of OCPUs.

    GetBatchBatchContextShapesFilter

    Name string
    The name identifying the shape.
    Values List<string>
    Regex bool
    Name string
    The name identifying the shape.
    Values []string
    Regex bool
    name String
    The name identifying the shape.
    values List<String>
    regex Boolean
    name string
    The name identifying the shape.
    values string[]
    regex boolean
    name str
    The name identifying the shape.
    values Sequence[str]
    regex bool
    name String
    The name identifying the shape.
    values List<String>
    regex Boolean

    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