Oracle Cloud Infrastructure v2.27.0 published on Thursday, Mar 20, 2025 by Pulumi
oci.ContainerInstances.getContainerInstanceShape
Explore with Pulumi AI
This data source provides details about a specific Container Instance Shape resource in Oracle Cloud Infrastructure Container Instances service.
Get a list of shapes for creating Container Instances and their details.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testContainerInstanceShape = oci.ContainerInstances.getContainerInstanceShape({
    compartmentId: compartmentId,
    availabilityDomain: containerInstanceShapeAvailabilityDomain,
});
import pulumi
import pulumi_oci as oci
test_container_instance_shape = oci.ContainerInstances.get_container_instance_shape(compartment_id=compartment_id,
    availability_domain=container_instance_shape_availability_domain)
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.GetContainerInstanceShape(ctx, &containerinstances.GetContainerInstanceShapeArgs{
			CompartmentId:      compartmentId,
			AvailabilityDomain: pulumi.StringRef(containerInstanceShapeAvailabilityDomain),
		}, 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 testContainerInstanceShape = Oci.ContainerInstances.GetContainerInstanceShape.Invoke(new()
    {
        CompartmentId = compartmentId,
        AvailabilityDomain = containerInstanceShapeAvailabilityDomain,
    });
});
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.GetContainerInstanceShapeArgs;
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 testContainerInstanceShape = ContainerInstancesFunctions.getContainerInstanceShape(GetContainerInstanceShapeArgs.builder()
            .compartmentId(compartmentId)
            .availabilityDomain(containerInstanceShapeAvailabilityDomain)
            .build());
    }
}
variables:
  testContainerInstanceShape:
    fn::invoke:
      function: oci:ContainerInstances:getContainerInstanceShape
      arguments:
        compartmentId: ${compartmentId}
        availabilityDomain: ${containerInstanceShapeAvailabilityDomain}
Using getContainerInstanceShape
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 getContainerInstanceShape(args: GetContainerInstanceShapeArgs, opts?: InvokeOptions): Promise<GetContainerInstanceShapeResult>
function getContainerInstanceShapeOutput(args: GetContainerInstanceShapeOutputArgs, opts?: InvokeOptions): Output<GetContainerInstanceShapeResult>def get_container_instance_shape(availability_domain: Optional[str] = None,
                                 compartment_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetContainerInstanceShapeResult
def get_container_instance_shape_output(availability_domain: Optional[pulumi.Input[str]] = None,
                                 compartment_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetContainerInstanceShapeResult]func GetContainerInstanceShape(ctx *Context, args *GetContainerInstanceShapeArgs, opts ...InvokeOption) (*GetContainerInstanceShapeResult, error)
func GetContainerInstanceShapeOutput(ctx *Context, args *GetContainerInstanceShapeOutputArgs, opts ...InvokeOption) GetContainerInstanceShapeResultOutput> Note: This function is named GetContainerInstanceShape in the Go SDK.
public static class GetContainerInstanceShape 
{
    public static Task<GetContainerInstanceShapeResult> InvokeAsync(GetContainerInstanceShapeArgs args, InvokeOptions? opts = null)
    public static Output<GetContainerInstanceShapeResult> Invoke(GetContainerInstanceShapeInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetContainerInstanceShapeResult> getContainerInstanceShape(GetContainerInstanceShapeArgs args, InvokeOptions options)
public static Output<GetContainerInstanceShapeResult> getContainerInstanceShape(GetContainerInstanceShapeArgs args, InvokeOptions options)
fn::invoke:
  function: oci:ContainerInstances/getContainerInstanceShape:getContainerInstanceShape
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The ID of the compartment in which to list resources.
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- CompartmentId string
- The ID of the compartment in which to list resources.
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- compartmentId String
- The ID of the compartment in which to list resources.
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
- compartmentId string
- The ID of the compartment in which to list resources.
- availabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- compartment_id str
- The ID of the compartment in which to list resources.
- availability_domain str
- The name of the availability domain. Example: Uocm:PHX-AD-1
- compartmentId String
- The ID of the compartment in which to list resources.
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
getContainerInstanceShape Result
The following output properties are available:
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<GetContainer Instance Shape Item> 
- List of shapes.
- AvailabilityDomain string
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]GetContainer Instance Shape Item 
- List of shapes.
- AvailabilityDomain string
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<GetContainer Instance Shape Item> 
- List of shapes.
- availabilityDomain String
- compartmentId string
- id string
- The provider-assigned unique ID for this managed resource.
- items
GetContainer Instance Shape Item[] 
- List of shapes.
- availabilityDomain string
- compartment_id str
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[containerinstances.Get Container Instance Shape Item] 
- List of shapes.
- availability_domain str
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- List of shapes.
- availabilityDomain String
Supporting Types
GetContainerInstanceShapeItem    
- MemoryOptions List<GetContainer Instance Shape Item Memory Option> 
- For a flexible shape, the amount of memory available for instances that use this shape.
- Name string
- The name identifying the shape.
- NetworkingBandwidth List<GetOptions Container Instance Shape Item Networking Bandwidth Option> 
- For a flexible shape, the amount of networking bandwidth available for instances that use this shape.
- OcpuOptions List<GetContainer Instance Shape Item Ocpu Option> 
- For a flexible shape, the number of OCPUs available for instances that use this shape.
- ProcessorDescription string
- A short description of the Instance's processor (CPU).
- MemoryOptions []GetContainer Instance Shape Item Memory Option 
- For a flexible shape, the amount of memory available for instances that use this shape.
- Name string
- The name identifying the shape.
- NetworkingBandwidth []GetOptions Container Instance Shape Item Networking Bandwidth Option 
- For a flexible shape, the amount of networking bandwidth available for instances that use this shape.
- OcpuOptions []GetContainer Instance Shape Item Ocpu Option 
- For a flexible shape, the number of OCPUs available for instances that use this shape.
- ProcessorDescription string
- A short description of the Instance's processor (CPU).
- memoryOptions List<GetContainer Instance Shape Item Memory Option> 
- For a flexible shape, the amount of memory available for instances that use this shape.
- name String
- The name identifying the shape.
- networkingBandwidth List<GetOptions Container Instance Shape Item Networking Bandwidth Option> 
- For a flexible shape, the amount of networking bandwidth available for instances that use this shape.
- ocpuOptions List<GetContainer Instance Shape Item Ocpu Option> 
- For a flexible shape, the number of OCPUs available for instances that use this shape.
- processorDescription String
- A short description of the Instance's processor (CPU).
- memoryOptions GetContainer Instance Shape Item Memory Option[] 
- For a flexible shape, the amount of memory available for instances that use this shape.
- name string
- The name identifying the shape.
- networkingBandwidth GetOptions Container Instance Shape Item Networking Bandwidth Option[] 
- For a flexible shape, the amount of networking bandwidth available for instances that use this shape.
- ocpuOptions GetContainer Instance Shape Item Ocpu Option[] 
- For a flexible shape, the number of OCPUs available for instances that use this shape.
- processorDescription string
- A short description of the Instance's processor (CPU).
- memory_options Sequence[containerinstances.Get Container Instance Shape Item Memory Option] 
- For a flexible shape, the amount of memory available for instances that use this shape.
- name str
- The name identifying the shape.
- networking_bandwidth_ Sequence[containerinstances.options Get Container Instance Shape Item Networking Bandwidth Option] 
- For a flexible shape, the amount of networking bandwidth available for instances that use this shape.
- ocpu_options Sequence[containerinstances.Get Container Instance Shape Item Ocpu Option] 
- For a flexible shape, the number of OCPUs available for instances that use this shape.
- processor_description str
- A short description of the Instance's processor (CPU).
- memoryOptions List<Property Map>
- For a flexible shape, the amount of memory available for instances that use this shape.
- name String
- The name identifying the shape.
- networkingBandwidth List<Property Map>Options 
- For a flexible shape, the amount of networking bandwidth available for instances that use this shape.
- ocpuOptions List<Property Map>
- For a flexible shape, the number of OCPUs available for instances that use this shape.
- processorDescription String
- A short description of the Instance's processor (CPU).
GetContainerInstanceShapeItemMemoryOption      
- DefaultPer doubleOcpu In Gbs 
- The default amount of memory per OCPU available for this shape, in gigabytes.
- MaxIn doubleGbs 
- The maximum amount of memory, in gigabytes.
- MaxPer doubleOcpu In Gbs 
- The maximum amount of memory per OCPU available for this shape, in gigabytes.
- MinIn doubleGbs 
- The minimum amount of memory, in gigabytes.
- MinPer doubleOcpu In Gbs 
- The minimum amount of memory per OCPU available for this shape, in gigabytes.
- DefaultPer float64Ocpu In Gbs 
- The default amount of memory per OCPU available for this shape, in gigabytes.
- MaxIn float64Gbs 
- The maximum amount of memory, in gigabytes.
- MaxPer float64Ocpu In Gbs 
- The maximum amount of memory per OCPU available for this shape, in gigabytes.
- MinIn float64Gbs 
- The minimum amount of memory, in gigabytes.
- MinPer float64Ocpu In Gbs 
- The minimum amount of memory per OCPU available for this shape, in gigabytes.
- defaultPer DoubleOcpu In Gbs 
- The default amount of memory per OCPU available for this shape, in gigabytes.
- maxIn DoubleGbs 
- The maximum amount of memory, in gigabytes.
- maxPer DoubleOcpu In Gbs 
- The maximum amount of memory per OCPU available for this shape, in gigabytes.
- minIn DoubleGbs 
- The minimum amount of memory, in gigabytes.
- minPer DoubleOcpu In Gbs 
- The minimum amount of memory per OCPU available for this shape, in gigabytes.
- defaultPer numberOcpu In Gbs 
- The default amount of memory per OCPU available for this shape, in gigabytes.
- maxIn numberGbs 
- The maximum amount of memory, in gigabytes.
- maxPer numberOcpu In Gbs 
- The maximum amount of memory per OCPU available for this shape, in gigabytes.
- minIn numberGbs 
- The minimum amount of memory, in gigabytes.
- minPer numberOcpu In Gbs 
- The minimum amount of memory per OCPU available for this shape, in gigabytes.
- default_per_ floatocpu_ in_ gbs 
- The default amount of memory per OCPU available for this shape, in gigabytes.
- max_in_ floatgbs 
- The maximum amount of memory, in gigabytes.
- max_per_ floatocpu_ in_ gbs 
- The maximum amount of memory per OCPU available for this shape, in gigabytes.
- min_in_ floatgbs 
- The minimum amount of memory, in gigabytes.
- min_per_ floatocpu_ in_ gbs 
- The minimum amount of memory per OCPU available for this shape, in gigabytes.
- defaultPer NumberOcpu In Gbs 
- The default amount of memory per OCPU available for this shape, in gigabytes.
- maxIn NumberGbs 
- The maximum amount of memory, in gigabytes.
- maxPer NumberOcpu In Gbs 
- The maximum amount of memory per OCPU available for this shape, in gigabytes.
- minIn NumberGbs 
- The minimum amount of memory, in gigabytes.
- minPer NumberOcpu In Gbs 
- The minimum amount of memory per OCPU available for this shape, in gigabytes.
GetContainerInstanceShapeItemNetworkingBandwidthOption       
- DefaultPer doubleOcpu In Gbps 
- The default amount of networking bandwidth per OCPU, in gigabits per second.
- MaxIn doubleGbps 
- The maximum amount of networking bandwidth, in gigabits per second.
- MinIn doubleGbps 
- The minimum amount of networking bandwidth, in gigabits per second.
- DefaultPer float64Ocpu In Gbps 
- The default amount of networking bandwidth per OCPU, in gigabits per second.
- MaxIn float64Gbps 
- The maximum amount of networking bandwidth, in gigabits per second.
- MinIn float64Gbps 
- The minimum amount of networking bandwidth, in gigabits per second.
- defaultPer DoubleOcpu In Gbps 
- The default amount of networking bandwidth per OCPU, in gigabits per second.
- maxIn DoubleGbps 
- The maximum amount of networking bandwidth, in gigabits per second.
- minIn DoubleGbps 
- The minimum amount of networking bandwidth, in gigabits per second.
- defaultPer numberOcpu In Gbps 
- The default amount of networking bandwidth per OCPU, in gigabits per second.
- maxIn numberGbps 
- The maximum amount of networking bandwidth, in gigabits per second.
- minIn numberGbps 
- The minimum amount of networking bandwidth, in gigabits per second.
- default_per_ floatocpu_ in_ gbps 
- The default amount of networking bandwidth per OCPU, in gigabits per second.
- max_in_ floatgbps 
- The maximum amount of networking bandwidth, in gigabits per second.
- min_in_ floatgbps 
- The minimum amount of networking bandwidth, in gigabits per second.
- defaultPer NumberOcpu In Gbps 
- The default amount of networking bandwidth per OCPU, in gigabits per second.
- maxIn NumberGbps 
- The maximum amount of networking bandwidth, in gigabits per second.
- minIn NumberGbps 
- The minimum amount of networking bandwidth, in gigabits per second.
GetContainerInstanceShapeItemOcpuOption      
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.