1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataScience
  5. getJobShapes
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.DataScience.getJobShapes

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

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

List job shapes available in the specified compartment.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testJobShapes = oci.DataScience.getJobShapes({
    compartmentId: compartmentId,
});
Copy
import pulumi
import pulumi_oci as oci

test_job_shapes = oci.DataScience.get_job_shapes(compartment_id=compartment_id)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/datascience"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datascience.GetJobShapes(ctx, &datascience.GetJobShapesArgs{
			CompartmentId: compartmentId,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testJobShapes = Oci.DataScience.GetJobShapes.Invoke(new()
    {
        CompartmentId = compartmentId,
    });

});
Copy
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.GetJobShapesArgs;
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 testJobShapes = DataScienceFunctions.getJobShapes(GetJobShapesArgs.builder()
            .compartmentId(compartmentId)
            .build());

    }
}
Copy
variables:
  testJobShapes:
    fn::invoke:
      function: oci:DataScience:getJobShapes
      arguments:
        compartmentId: ${compartmentId}
Copy

Using getJobShapes

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 getJobShapes(args: GetJobShapesArgs, opts?: InvokeOptions): Promise<GetJobShapesResult>
function getJobShapesOutput(args: GetJobShapesOutputArgs, opts?: InvokeOptions): Output<GetJobShapesResult>
Copy
def get_job_shapes(compartment_id: Optional[str] = None,
                   filters: Optional[Sequence[_datascience.GetJobShapesFilter]] = None,
                   opts: Optional[InvokeOptions] = None) -> GetJobShapesResult
def get_job_shapes_output(compartment_id: Optional[pulumi.Input[str]] = None,
                   filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datascience.GetJobShapesFilterArgs]]]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetJobShapesResult]
Copy
func GetJobShapes(ctx *Context, args *GetJobShapesArgs, opts ...InvokeOption) (*GetJobShapesResult, error)
func GetJobShapesOutput(ctx *Context, args *GetJobShapesOutputArgs, opts ...InvokeOption) GetJobShapesResultOutput
Copy

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

public static class GetJobShapes 
{
    public static Task<GetJobShapesResult> InvokeAsync(GetJobShapesArgs args, InvokeOptions? opts = null)
    public static Output<GetJobShapesResult> Invoke(GetJobShapesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetJobShapesResult> getJobShapes(GetJobShapesArgs args, InvokeOptions options)
public static Output<GetJobShapesResult> getJobShapes(GetJobShapesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:DataScience/getJobShapes:getJobShapes
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
Filter results by the OCID of the compartment.
Filters Changes to this property will trigger replacement. List<GetJobShapesFilter>
CompartmentId This property is required. string
Filter results by the OCID of the compartment.
Filters Changes to this property will trigger replacement. []GetJobShapesFilter
compartmentId This property is required. String
Filter results by the OCID of the compartment.
filters Changes to this property will trigger replacement. List<GetJobShapesFilter>
compartmentId This property is required. string
Filter results by the OCID of the compartment.
filters Changes to this property will trigger replacement. GetJobShapesFilter[]
compartment_id This property is required. str
Filter results by the OCID of the compartment.
filters Changes to this property will trigger replacement. Sequence[datascience.GetJobShapesFilter]
compartmentId This property is required. String
Filter results by the OCID of the compartment.
filters Changes to this property will trigger replacement. List<Property Map>

getJobShapes Result

The following output properties are available:

CompartmentId string
Id string
The provider-assigned unique ID for this managed resource.
JobShapes List<GetJobShapesJobShape>
The list of job_shapes.
Filters List<GetJobShapesFilter>
CompartmentId string
Id string
The provider-assigned unique ID for this managed resource.
JobShapes []GetJobShapesJobShape
The list of job_shapes.
Filters []GetJobShapesFilter
compartmentId String
id String
The provider-assigned unique ID for this managed resource.
jobShapes List<GetJobShapesJobShape>
The list of job_shapes.
filters List<GetJobShapesFilter>
compartmentId string
id string
The provider-assigned unique ID for this managed resource.
jobShapes GetJobShapesJobShape[]
The list of job_shapes.
filters GetJobShapesFilter[]
compartment_id str
id str
The provider-assigned unique ID for this managed resource.
job_shapes Sequence[datascience.GetJobShapesJobShape]
The list of job_shapes.
filters Sequence[datascience.GetJobShapesFilter]
compartmentId String
id String
The provider-assigned unique ID for this managed resource.
jobShapes List<Property Map>
The list of job_shapes.
filters List<Property Map>

Supporting Types

GetJobShapesFilter

Name This property is required. string
The name of the job shape.
Values This property is required. List<string>
Regex bool
Name This property is required. string
The name of the job shape.
Values This property is required. []string
Regex bool
name This property is required. String
The name of the job shape.
values This property is required. List<String>
regex Boolean
name This property is required. string
The name of the job shape.
values This property is required. string[]
regex boolean
name This property is required. str
The name of the job shape.
values This property is required. Sequence[str]
regex bool
name This property is required. String
The name of the job shape.
values This property is required. List<String>
regex Boolean

GetJobShapesJobShape

CoreCount This property is required. int
The number of cores associated with this job run shape.
MemoryInGbs This property is required. int
The number of cores associated with this job shape.
Name This property is required. string
The name of the job shape.
ShapeSeries This property is required. string
The family that the compute shape belongs to.
CoreCount This property is required. int
The number of cores associated with this job run shape.
MemoryInGbs This property is required. int
The number of cores associated with this job shape.
Name This property is required. string
The name of the job shape.
ShapeSeries This property is required. string
The family that the compute shape belongs to.
coreCount This property is required. Integer
The number of cores associated with this job run shape.
memoryInGbs This property is required. Integer
The number of cores associated with this job shape.
name This property is required. String
The name of the job shape.
shapeSeries This property is required. String
The family that the compute shape belongs to.
coreCount This property is required. number
The number of cores associated with this job run shape.
memoryInGbs This property is required. number
The number of cores associated with this job shape.
name This property is required. string
The name of the job shape.
shapeSeries This property is required. string
The family that the compute shape belongs to.
core_count This property is required. int
The number of cores associated with this job run shape.
memory_in_gbs This property is required. int
The number of cores associated with this job shape.
name This property is required. str
The name of the job shape.
shape_series This property is required. str
The family that the compute shape belongs to.
coreCount This property is required. Number
The number of cores associated with this job run shape.
memoryInGbs This property is required. Number
The number of cores associated with this job shape.
name This property is required. String
The name of the job shape.
shapeSeries This property is required. String
The family that the compute shape belongs to.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi