1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ContainerInstances
  5. getContainerInstanceShape
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.ContainerInstances.getContainerInstanceShape

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ContainerInstances/getContainerInstanceShape:getContainerInstanceShape
      arguments:
        # arguments dictionary

    The 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<GetContainerInstanceShapeItem>
    List of shapes.
    AvailabilityDomain string
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetContainerInstanceShapeItem
    List of shapes.
    AvailabilityDomain string
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetContainerInstanceShapeItem>
    List of shapes.
    availabilityDomain String
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    items GetContainerInstanceShapeItem[]
    List of shapes.
    availabilityDomain string
    compartment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[containerinstances.GetContainerInstanceShapeItem]
    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<GetContainerInstanceShapeItemMemoryOption>
    For a flexible shape, the amount of memory available for instances that use this shape.
    Name string
    The name identifying the shape.
    NetworkingBandwidthOptions List<GetContainerInstanceShapeItemNetworkingBandwidthOption>
    For a flexible shape, the amount of networking bandwidth available for instances that use this shape.
    OcpuOptions List<GetContainerInstanceShapeItemOcpuOption>
    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 []GetContainerInstanceShapeItemMemoryOption
    For a flexible shape, the amount of memory available for instances that use this shape.
    Name string
    The name identifying the shape.
    NetworkingBandwidthOptions []GetContainerInstanceShapeItemNetworkingBandwidthOption
    For a flexible shape, the amount of networking bandwidth available for instances that use this shape.
    OcpuOptions []GetContainerInstanceShapeItemOcpuOption
    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<GetContainerInstanceShapeItemMemoryOption>
    For a flexible shape, the amount of memory available for instances that use this shape.
    name String
    The name identifying the shape.
    networkingBandwidthOptions List<GetContainerInstanceShapeItemNetworkingBandwidthOption>
    For a flexible shape, the amount of networking bandwidth available for instances that use this shape.
    ocpuOptions List<GetContainerInstanceShapeItemOcpuOption>
    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 GetContainerInstanceShapeItemMemoryOption[]
    For a flexible shape, the amount of memory available for instances that use this shape.
    name string
    The name identifying the shape.
    networkingBandwidthOptions GetContainerInstanceShapeItemNetworkingBandwidthOption[]
    For a flexible shape, the amount of networking bandwidth available for instances that use this shape.
    ocpuOptions GetContainerInstanceShapeItemOcpuOption[]
    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.GetContainerInstanceShapeItemMemoryOption]
    For a flexible shape, the amount of memory available for instances that use this shape.
    name str
    The name identifying the shape.
    networking_bandwidth_options Sequence[containerinstances.GetContainerInstanceShapeItemNetworkingBandwidthOption]
    For a flexible shape, the amount of networking bandwidth available for instances that use this shape.
    ocpu_options Sequence[containerinstances.GetContainerInstanceShapeItemOcpuOption]
    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.
    networkingBandwidthOptions List<Property Map>
    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

    DefaultPerOcpuInGbs double
    The default amount of memory per OCPU available for this shape, in gigabytes.
    MaxInGbs double
    The maximum amount of memory, in gigabytes.
    MaxPerOcpuInGbs double
    The maximum amount of memory per OCPU available for this shape, in gigabytes.
    MinInGbs double
    The minimum amount of memory, in gigabytes.
    MinPerOcpuInGbs double
    The minimum amount of memory per OCPU available for this shape, in gigabytes.
    DefaultPerOcpuInGbs float64
    The default amount of memory per OCPU available for this shape, in gigabytes.
    MaxInGbs float64
    The maximum amount of memory, in gigabytes.
    MaxPerOcpuInGbs float64
    The maximum amount of memory per OCPU available for this shape, in gigabytes.
    MinInGbs float64
    The minimum amount of memory, in gigabytes.
    MinPerOcpuInGbs float64
    The minimum amount of memory per OCPU available for this shape, in gigabytes.
    defaultPerOcpuInGbs Double
    The default amount of memory per OCPU available for this shape, in gigabytes.
    maxInGbs Double
    The maximum amount of memory, in gigabytes.
    maxPerOcpuInGbs Double
    The maximum amount of memory per OCPU available for this shape, in gigabytes.
    minInGbs Double
    The minimum amount of memory, in gigabytes.
    minPerOcpuInGbs Double
    The minimum amount of memory per OCPU available for this shape, in gigabytes.
    defaultPerOcpuInGbs number
    The default amount of memory per OCPU available for this shape, in gigabytes.
    maxInGbs number
    The maximum amount of memory, in gigabytes.
    maxPerOcpuInGbs number
    The maximum amount of memory per OCPU available for this shape, in gigabytes.
    minInGbs number
    The minimum amount of memory, in gigabytes.
    minPerOcpuInGbs number
    The minimum amount of memory per OCPU available for this shape, in gigabytes.
    default_per_ocpu_in_gbs float
    The default amount of memory per OCPU available for this shape, in gigabytes.
    max_in_gbs float
    The maximum amount of memory, in gigabytes.
    max_per_ocpu_in_gbs float
    The maximum amount of memory per OCPU available for this shape, in gigabytes.
    min_in_gbs float
    The minimum amount of memory, in gigabytes.
    min_per_ocpu_in_gbs float
    The minimum amount of memory per OCPU available for this shape, in gigabytes.
    defaultPerOcpuInGbs Number
    The default amount of memory per OCPU available for this shape, in gigabytes.
    maxInGbs Number
    The maximum amount of memory, in gigabytes.
    maxPerOcpuInGbs Number
    The maximum amount of memory per OCPU available for this shape, in gigabytes.
    minInGbs Number
    The minimum amount of memory, in gigabytes.
    minPerOcpuInGbs Number
    The minimum amount of memory per OCPU available for this shape, in gigabytes.

    GetContainerInstanceShapeItemNetworkingBandwidthOption

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

    GetContainerInstanceShapeItemOcpuOption

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

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi