Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getJobShapes

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

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testJobShapes = Output.Create(Oci.DataScience.GetJobShapes.InvokeAsync(new Oci.DataScience.GetJobShapesArgs
        {
            CompartmentId = @var.Compartment_id,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/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: _var.Compartment_id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_job_shapes = oci.DataScience.get_job_shapes(compartment_id=var["compartment_id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testJobShapes = oci.DataScience.getJobShapes({
    compartmentId: _var.compartment_id,
});

Coming soon!

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>
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]
func GetJobShapes(ctx *Context, args *GetJobShapesArgs, opts ...InvokeOption) (*GetJobShapesResult, error)
func GetJobShapesOutput(ctx *Context, args *GetJobShapesOutputArgs, opts ...InvokeOption) GetJobShapesResultOutput

> 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)
}
public static CompletableFuture<GetJobShapesResult> getJobShapes(GetJobShapesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:DataScience/getJobShapes:getJobShapes
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CompartmentId string

Filter results by the OCID of the compartment.

Filters List<GetJobShapesFilter>
CompartmentId string

Filter results by the OCID of the compartment.

Filters []GetJobShapesFilter
compartmentId String

Filter results by the OCID of the compartment.

filters List<GetJobShapesFilter>
compartmentId string

Filter results by the OCID of the compartment.

filters GetJobShapesFilter[]
compartment_id str

Filter results by the OCID of the compartment.

filters GetJobShapesFilter]
compartmentId String

Filter results by the OCID of the compartment.

filters 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 GetJobShapesJobShape]

The list of job_shapes.

filters 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 string

The name of the job shape.

Values List<string>
Regex bool
Name string

The name of the job shape.

Values []string
Regex bool
name String

The name of the job shape.

values List<String>
regex Boolean
name string

The name of the job shape.

values string[]
regex boolean
name str

The name of the job shape.

values Sequence[str]
regex bool
name String

The name of the job shape.

values List<String>
regex Boolean

GetJobShapesJobShape

CoreCount int

The number of cores associated with this job run shape.

MemoryInGbs int

The number of cores associated with this job shape.

Name string

The name of the job shape.

ShapeSeries string

The family that the compute shape belongs to.

CoreCount int

The number of cores associated with this job run shape.

MemoryInGbs int

The number of cores associated with this job shape.

Name string

The name of the job shape.

ShapeSeries string

The family that the compute shape belongs to.

coreCount Integer

The number of cores associated with this job run shape.

memoryInGbs Integer

The number of cores associated with this job shape.

name String

The name of the job shape.

shapeSeries String

The family that the compute shape belongs to.

coreCount number

The number of cores associated with this job run shape.

memoryInGbs number

The number of cores associated with this job shape.

name string

The name of the job shape.

shapeSeries string

The family that the compute shape belongs to.

core_count int

The number of cores associated with this job run shape.

memory_in_gbs int

The number of cores associated with this job shape.

name str

The name of the job shape.

shape_series str

The family that the compute shape belongs to.

coreCount Number

The number of cores associated with this job run shape.

memoryInGbs Number

The number of cores associated with this job shape.

name String

The name of the job shape.

shapeSeries String

The family that the compute shape belongs to.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.