Viewing docs for Oracle Cloud Infrastructure v4.13.0
published on Thursday, May 28, 2026 by Pulumi
published on Thursday, May 28, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.13.0
published on Thursday, May 28, 2026 by Pulumi
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 dictionarydata "oci_datascience_getcomputetargetshapes" "name" {
# arguments
}The following arguments are supported:
- Compartment
Id string - Filter results by the OCID of the compartment.
- Filters
List<Get
Compute Target Shapes Filter>
- Compartment
Id string - Filter results by the OCID of the compartment.
- Filters
[]Get
Compute Target Shapes Filter
- compartment_
id string - Filter results by the OCID of the compartment.
- filters list(object)
- compartment
Id String - Filter results by the OCID of the compartment.
- filters
List<Get
Compute Target Shapes Filter>
- compartment
Id string - Filter results by the OCID of the compartment.
- filters
Get
Compute Target Shapes Filter[]
- compartment_
id str - Filter results by the OCID of the compartment.
- filters
Sequence[Get
Compute Target Shapes Filter]
- compartment
Id String - Filter results by the OCID of the compartment.
- filters List<Property Map>
getComputeTargetShapes Result
The following output properties are available:
- Compartment
Id string - Compute
Target List<GetShapes Compute Target Shapes Compute Target Shape> - The list of compute_target_shapes.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Compute Target Shapes Filter>
- Compartment
Id string - Compute
Target []GetShapes Compute Target Shapes Compute Target Shape - The list of compute_target_shapes.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Compute Target Shapes Filter
- compartment_
id string - compute_
target_ list(object)shapes - The list of compute_target_shapes.
- id string
- The provider-assigned unique ID for this managed resource.
- filters list(object)
- compartment
Id String - compute
Target List<GetShapes Compute Target Shapes Compute Target Shape> - The list of compute_target_shapes.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Compute Target Shapes Filter>
- compartment
Id string - compute
Target GetShapes Compute Target Shapes Compute Target Shape[] - The list of compute_target_shapes.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Compute Target Shapes Filter[]
- compartment_
id str - compute_
target_ Sequence[Getshapes Compute Target Shapes Compute Target Shape] - The list of compute_target_shapes.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[Get
Compute Target Shapes Filter]
- compartment
Id String - compute
Target List<Property Map>Shapes - The list of compute_target_shapes.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
Supporting Types
GetComputeTargetShapesComputeTargetShape
- Core
Count int - The number of cores associated with this compute target shape.
- Memory
In intGbs - 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.
- Core
Count int - The number of cores associated with this compute target shape.
- Memory
In intGbs - 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.
- core_
count number - The number of cores associated with this compute target shape.
- memory_
in_ numbergbs - 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.
- core
Count Integer - The number of cores associated with this compute target shape.
- memory
In IntegerGbs - 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.
- core
Count number - The number of cores associated with this compute target shape.
- memory
In numberGbs - 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.
- core_
count int - The number of cores associated with this compute target shape.
- memory_
in_ intgbs - 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.
- core
Count Number - The number of cores associated with this compute target shape.
- memory
In NumberGbs - 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.
GetComputeTargetShapesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.13.0
published on Thursday, May 28, 2026 by Pulumi
published on Thursday, May 28, 2026 by Pulumi