1. Packages
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. DataScience
  6. getComputeTargetShapes
Viewing docs for Oracle Cloud Infrastructure v4.13.0
published on Thursday, May 28, 2026 by Pulumi
oci logo
Viewing docs for Oracle Cloud Infrastructure v4.13.0
published on Thursday, May 28, 2026 by Pulumi

    This data source provides the list of Compute Target Shapes in Oracle Cloud Infrastructure Data Science service.

    Lists the valid compute target shapes.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testComputeTargetShapes = oci.datascience.getComputeTargetShapes({
        compartmentId: compartmentId,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_compute_target_shapes = oci.datascience.get_compute_target_shapes(compartment_id=compartment_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/datascience"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := datascience.GetComputeTargetShapes(ctx, &datascience.GetComputeTargetShapesArgs{
    			CompartmentId: compartmentId,
    		}, 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 testComputeTargetShapes = Oci.DataScience.GetComputeTargetShapes.Invoke(new()
        {
            CompartmentId = compartmentId,
        });
    
    });
    
    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.GetComputeTargetShapesArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 testComputeTargetShapes = DataScienceFunctions.getComputeTargetShapes(GetComputeTargetShapesArgs.builder()
                .compartmentId(compartmentId)
                .build());
    
        }
    }
    
    variables:
      testComputeTargetShapes:
        fn::invoke:
          function: oci:DataScience:getComputeTargetShapes
          arguments:
            compartmentId: ${compartmentId}
    
    pulumi {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    data "oci_datascience_getcomputetargetshapes" "testComputeTargetShapes" {
      compartment_id = compartmentId
    }
    

    Using getComputeTargetShapes

    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 getComputeTargetShapes(args: GetComputeTargetShapesArgs, opts?: InvokeOptions): Promise<GetComputeTargetShapesResult>
    function getComputeTargetShapesOutput(args: GetComputeTargetShapesOutputArgs, opts?: InvokeOptions): Output<GetComputeTargetShapesResult>
    def get_compute_target_shapes(compartment_id: Optional[str] = None,
                                  filters: Optional[Sequence[GetComputeTargetShapesFilter]] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetComputeTargetShapesResult
    def get_compute_target_shapes_output(compartment_id: pulumi.Input[Optional[str]] = None,
                                  filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetComputeTargetShapesFilterArgs]]]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetComputeTargetShapesResult]
    func GetComputeTargetShapes(ctx *Context, args *GetComputeTargetShapesArgs, opts ...InvokeOption) (*GetComputeTargetShapesResult, error)
    func GetComputeTargetShapesOutput(ctx *Context, args *GetComputeTargetShapesOutputArgs, opts ...InvokeOption) GetComputeTargetShapesResultOutput

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

    public static class GetComputeTargetShapes 
    {
        public static Task<GetComputeTargetShapesResult> InvokeAsync(GetComputeTargetShapesArgs args, InvokeOptions? opts = null)
        public static Output<GetComputeTargetShapesResult> Invoke(GetComputeTargetShapesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetComputeTargetShapesResult> getComputeTargetShapes(GetComputeTargetShapesArgs args, InvokeOptions options)
    public static Output<GetComputeTargetShapesResult> getComputeTargetShapes(GetComputeTargetShapesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DataScience/getComputeTargetShapes:getComputeTargetShapes
      arguments:
        # arguments dictionary
    data "oci_datascience_getcomputetargetshapes" "name" {
        # arguments
    }

    The following arguments are supported:

    CompartmentId string
    Filter results by the OCID of the compartment.
    Filters List<GetComputeTargetShapesFilter>
    CompartmentId string
    Filter results by the OCID of the compartment.
    Filters []GetComputeTargetShapesFilter
    compartment_id string
    Filter results by the OCID of the compartment.
    filters list(object)
    compartmentId String
    Filter results by the OCID of the compartment.
    filters List<GetComputeTargetShapesFilter>
    compartmentId string
    Filter results by the OCID of the compartment.
    filters GetComputeTargetShapesFilter[]
    compartment_id str
    Filter results by the OCID of the compartment.
    filters Sequence[GetComputeTargetShapesFilter]
    compartmentId String
    Filter results by the OCID of the compartment.
    filters List<Property Map>

    getComputeTargetShapes Result

    The following output properties are available:

    CompartmentId string
    ComputeTargetShapes List<GetComputeTargetShapesComputeTargetShape>
    The list of compute_target_shapes.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<GetComputeTargetShapesFilter>
    CompartmentId string
    ComputeTargetShapes []GetComputeTargetShapesComputeTargetShape
    The list of compute_target_shapes.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetComputeTargetShapesFilter
    compartment_id string
    compute_target_shapes list(object)
    The list of compute_target_shapes.
    id string
    The provider-assigned unique ID for this managed resource.
    filters list(object)
    compartmentId String
    computeTargetShapes List<GetComputeTargetShapesComputeTargetShape>
    The list of compute_target_shapes.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetComputeTargetShapesFilter>
    compartmentId string
    computeTargetShapes GetComputeTargetShapesComputeTargetShape[]
    The list of compute_target_shapes.
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetComputeTargetShapesFilter[]
    compartment_id str
    compute_target_shapes Sequence[GetComputeTargetShapesComputeTargetShape]
    The list of compute_target_shapes.
    id str
    The provider-assigned unique ID for this managed resource.
    filters Sequence[GetComputeTargetShapesFilter]
    compartmentId String
    computeTargetShapes List<Property Map>
    The list of compute_target_shapes.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<Property Map>

    Supporting Types

    GetComputeTargetShapesComputeTargetShape

    CoreCount int
    The number of cores associated with this compute target shape.
    MemoryInGbs int
    The amount of memory in GBs associated with this compute target shape.
    Name string
    The name of the compute target shape.
    ShapeSeries string
    The family that the compute shape belongs to.
    CoreCount int
    The number of cores associated with this compute target shape.
    MemoryInGbs int
    The amount of memory in GBs associated with this compute target shape.
    Name string
    The name of the compute target shape.
    ShapeSeries string
    The family that the compute shape belongs to.
    core_count number
    The number of cores associated with this compute target shape.
    memory_in_gbs number
    The amount of memory in GBs associated with this compute target shape.
    name string
    The name of the compute target shape.
    shape_series string
    The family that the compute shape belongs to.
    coreCount Integer
    The number of cores associated with this compute target shape.
    memoryInGbs Integer
    The amount of memory in GBs associated with this compute target shape.
    name String
    The name of the compute target shape.
    shapeSeries String
    The family that the compute shape belongs to.
    coreCount number
    The number of cores associated with this compute target shape.
    memoryInGbs number
    The amount of memory in GBs associated with this compute target shape.
    name string
    The name of the compute target shape.
    shapeSeries string
    The family that the compute shape belongs to.
    core_count int
    The number of cores associated with this compute target shape.
    memory_in_gbs int
    The amount of memory in GBs associated with this compute target shape.
    name str
    The name of the compute target shape.
    shape_series str
    The family that the compute shape belongs to.
    coreCount Number
    The number of cores associated with this compute target shape.
    memoryInGbs Number
    The amount of memory in GBs associated with this compute target shape.
    name String
    The name of the compute target shape.
    shapeSeries String
    The family that the compute shape belongs to.

    GetComputeTargetShapesFilter

    Name string
    The name of the compute target shape.
    Values List<string>
    Regex bool
    Name string
    The name of the compute target shape.
    Values []string
    Regex bool
    name string
    The name of the compute target shape.
    values list(string)
    regex bool
    name String
    The name of the compute target shape.
    values List<String>
    regex Boolean
    name string
    The name of the compute target shape.
    values string[]
    regex boolean
    name str
    The name of the compute target shape.
    values Sequence[str]
    regex bool
    name String
    The name of the compute target 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
    Viewing docs for Oracle Cloud Infrastructure v4.13.0
    published on Thursday, May 28, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial