1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ContainerInstances
  5. getContainerInstanceShapes
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.ContainerInstances.getContainerInstanceShapes

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

This data source provides the list of Container Instance Shapes in Oracle Cloud Infrastructure Container Instances service.

Lists the shapes that can be used to create container instances.

Example Usage

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

const testContainerInstanceShapes = oci.ContainerInstances.getContainerInstanceShapes({
    compartmentId: compartmentId,
    availabilityDomain: containerInstanceShapeAvailabilityDomain,
});
Copy
import pulumi
import pulumi_oci as oci

test_container_instance_shapes = oci.ContainerInstances.get_container_instance_shapes(compartment_id=compartment_id,
    availability_domain=container_instance_shape_availability_domain)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := containerinstances.GetContainerInstanceShapes(ctx, &containerinstances.GetContainerInstanceShapesArgs{
			CompartmentId:      compartmentId,
			AvailabilityDomain: pulumi.StringRef(containerInstanceShapeAvailabilityDomain),
		}, 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 testContainerInstanceShapes = Oci.ContainerInstances.GetContainerInstanceShapes.Invoke(new()
    {
        CompartmentId = compartmentId,
        AvailabilityDomain = containerInstanceShapeAvailabilityDomain,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ContainerInstances.ContainerInstancesFunctions;
import com.pulumi.oci.ContainerInstances.inputs.GetContainerInstanceShapesArgs;
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 testContainerInstanceShapes = ContainerInstancesFunctions.getContainerInstanceShapes(GetContainerInstanceShapesArgs.builder()
            .compartmentId(compartmentId)
            .availabilityDomain(containerInstanceShapeAvailabilityDomain)
            .build());

    }
}
Copy
variables:
  testContainerInstanceShapes:
    fn::invoke:
      function: oci:ContainerInstances:getContainerInstanceShapes
      arguments:
        compartmentId: ${compartmentId}
        availabilityDomain: ${containerInstanceShapeAvailabilityDomain}
Copy

Using getContainerInstanceShapes

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 getContainerInstanceShapes(args: GetContainerInstanceShapesArgs, opts?: InvokeOptions): Promise<GetContainerInstanceShapesResult>
function getContainerInstanceShapesOutput(args: GetContainerInstanceShapesOutputArgs, opts?: InvokeOptions): Output<GetContainerInstanceShapesResult>
Copy
def get_container_instance_shapes(availability_domain: Optional[str] = None,
                                  compartment_id: Optional[str] = None,
                                  filters: Optional[Sequence[_containerinstances.GetContainerInstanceShapesFilter]] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetContainerInstanceShapesResult
def get_container_instance_shapes_output(availability_domain: Optional[pulumi.Input[str]] = None,
                                  compartment_id: Optional[pulumi.Input[str]] = None,
                                  filters: Optional[pulumi.Input[Sequence[pulumi.Input[_containerinstances.GetContainerInstanceShapesFilterArgs]]]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetContainerInstanceShapesResult]
Copy
func GetContainerInstanceShapes(ctx *Context, args *GetContainerInstanceShapesArgs, opts ...InvokeOption) (*GetContainerInstanceShapesResult, error)
func GetContainerInstanceShapesOutput(ctx *Context, args *GetContainerInstanceShapesOutputArgs, opts ...InvokeOption) GetContainerInstanceShapesResultOutput
Copy

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

public static class GetContainerInstanceShapes 
{
    public static Task<GetContainerInstanceShapesResult> InvokeAsync(GetContainerInstanceShapesArgs args, InvokeOptions? opts = null)
    public static Output<GetContainerInstanceShapesResult> Invoke(GetContainerInstanceShapesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetContainerInstanceShapesResult> getContainerInstanceShapes(GetContainerInstanceShapesArgs args, InvokeOptions options)
public static Output<GetContainerInstanceShapesResult> getContainerInstanceShapes(GetContainerInstanceShapesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:ContainerInstances/getContainerInstanceShapes:getContainerInstanceShapes
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID of the compartment in which to list resources.
AvailabilityDomain string
The name of the availability domain. Example: Uocm:PHX-AD-1
Filters Changes to this property will trigger replacement. List<GetContainerInstanceShapesFilter>
CompartmentId This property is required. string
The OCID of the compartment in which to list resources.
AvailabilityDomain string
The name of the availability domain. Example: Uocm:PHX-AD-1
Filters Changes to this property will trigger replacement. []GetContainerInstanceShapesFilter
compartmentId This property is required. String
The OCID of the compartment in which to list resources.
availabilityDomain String
The name of the availability domain. Example: Uocm:PHX-AD-1
filters Changes to this property will trigger replacement. List<GetContainerInstanceShapesFilter>
compartmentId This property is required. string
The OCID of the compartment in which to list resources.
availabilityDomain string
The name of the availability domain. Example: Uocm:PHX-AD-1
filters Changes to this property will trigger replacement. GetContainerInstanceShapesFilter[]
compartment_id This property is required. str
The OCID of the compartment in which to list resources.
availability_domain str
The name of the availability domain. Example: Uocm:PHX-AD-1
filters Changes to this property will trigger replacement. Sequence[containerinstances.GetContainerInstanceShapesFilter]
compartmentId This property is required. String
The OCID of the compartment in which to list resources.
availabilityDomain String
The name of the availability domain. Example: Uocm:PHX-AD-1
filters Changes to this property will trigger replacement. List<Property Map>

getContainerInstanceShapes Result

The following output properties are available:

CompartmentId string
ContainerInstanceShapeCollections List<GetContainerInstanceShapesContainerInstanceShapeCollection>
The list of container_instance_shape_collection.
Id string
The provider-assigned unique ID for this managed resource.
AvailabilityDomain string
Filters List<GetContainerInstanceShapesFilter>
CompartmentId string
ContainerInstanceShapeCollections []GetContainerInstanceShapesContainerInstanceShapeCollection
The list of container_instance_shape_collection.
Id string
The provider-assigned unique ID for this managed resource.
AvailabilityDomain string
Filters []GetContainerInstanceShapesFilter
compartmentId String
containerInstanceShapeCollections List<GetContainerInstanceShapesContainerInstanceShapeCollection>
The list of container_instance_shape_collection.
id String
The provider-assigned unique ID for this managed resource.
availabilityDomain String
filters List<GetContainerInstanceShapesFilter>
compartmentId string
containerInstanceShapeCollections GetContainerInstanceShapesContainerInstanceShapeCollection[]
The list of container_instance_shape_collection.
id string
The provider-assigned unique ID for this managed resource.
availabilityDomain string
filters GetContainerInstanceShapesFilter[]
compartmentId String
containerInstanceShapeCollections List<Property Map>
The list of container_instance_shape_collection.
id String
The provider-assigned unique ID for this managed resource.
availabilityDomain String
filters List<Property Map>

Supporting Types

GetContainerInstanceShapesContainerInstanceShapeCollection

items This property is required. List<Property Map>
A list of shapes.

GetContainerInstanceShapesContainerInstanceShapeCollectionItem

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

GetContainerInstanceShapesContainerInstanceShapeCollectionItemMemoryOption

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

GetContainerInstanceShapesContainerInstanceShapeCollectionItemNetworkingBandwidthOption

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

GetContainerInstanceShapesContainerInstanceShapeCollectionItemOcpuOption

Max This property is required. double
The maximum number of OCPUs.
Min This property is required. double
The minimum number of OCPUs.
Max This property is required. float64
The maximum number of OCPUs.
Min This property is required. float64
The minimum number of OCPUs.
max This property is required. Double
The maximum number of OCPUs.
min This property is required. Double
The minimum number of OCPUs.
max This property is required. number
The maximum number of OCPUs.
min This property is required. number
The minimum number of OCPUs.
max This property is required. float
The maximum number of OCPUs.
min This property is required. float
The minimum number of OCPUs.
max This property is required. Number
The maximum number of OCPUs.
min This property is required. Number
The minimum number of OCPUs.

GetContainerInstanceShapesFilter

Name This property is required. string
The name identifying the shape.
Values This property is required. List<string>
Regex bool
Name This property is required. string
The name identifying the shape.
Values This property is required. []string
Regex bool
name This property is required. String
The name identifying the shape.
values This property is required. List<String>
regex Boolean
name This property is required. string
The name identifying the shape.
values This property is required. string[]
regex boolean
name This property is required. str
The name identifying the shape.
values This property is required. Sequence[str]
regex bool
name This property is required. String
The name identifying the shape.
values This property is required. 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.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi