oci.ContainerInstances.getContainerInstanceShapes
Explore with Pulumi AI
This data source provides the list of Container Instance Shapes in Oracle Cloud Infrastructure Container Instances service.
Get a list of shapes for creating Container Instances and their details.
Example Usage
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 = @var.Compartment_id,
AvailabilityDomain = @var.Container_instance_shape_availability_domain,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/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: _var.Compartment_id,
AvailabilityDomain: pulumi.StringRef(_var.Container_instance_shape_availability_domain),
}, nil)
if err != nil {
return err
}
return nil
})
}
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(var_.compartment_id())
.availabilityDomain(var_.container_instance_shape_availability_domain())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_container_instance_shapes = oci.ContainerInstances.get_container_instance_shapes(compartment_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
availability_domain=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testContainerInstanceShapes = oci.ContainerInstances.getContainerInstanceShapes({
compartmentId: _var.compartment_id,
availabilityDomain: _var.container_instance_shape_availability_domain,
});
variables:
testContainerInstanceShapes:
fn::invoke:
Function: oci:ContainerInstances:getContainerInstanceShapes
Arguments:
compartmentId: ${var.compartment_id}
availabilityDomain: ${var.container_instance_shape_availability_domain}
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>
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]
func GetContainerInstanceShapes(ctx *Context, args *GetContainerInstanceShapesArgs, opts ...InvokeOption) (*GetContainerInstanceShapesResult, error)
func GetContainerInstanceShapesOutput(ctx *Context, args *GetContainerInstanceShapesOutputArgs, opts ...InvokeOption) GetContainerInstanceShapesResultOutput
> 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)
}
public static CompletableFuture<GetContainerInstanceShapesResult> getContainerInstanceShapes(GetContainerInstanceShapesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:ContainerInstances/getContainerInstanceShapes:getContainerInstanceShapes
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string The ID of the compartment in which to list resources.
- Availability
Domain string The name of the availability domain. Example:
Uocm:PHX-AD-1
- Filters
List<Get
Container Instance Shapes Filter>
- Compartment
Id string The ID of the compartment in which to list resources.
- Availability
Domain string The name of the availability domain. Example:
Uocm:PHX-AD-1
- Filters
[]Get
Container Instance Shapes Filter
- compartment
Id String The ID of the compartment in which to list resources.
- availability
Domain String The name of the availability domain. Example:
Uocm:PHX-AD-1
- filters
List<Get
Container Instance Shapes Filter>
- compartment
Id string The ID of the compartment in which to list resources.
- availability
Domain string The name of the availability domain. Example:
Uocm:PHX-AD-1
- filters
Get
Container Instance Shapes Filter[]
- 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
- filters
Get
Container Instance Shapes Filter]
- compartment
Id String The ID of the compartment in which to list resources.
- availability
Domain String The name of the availability domain. Example:
Uocm:PHX-AD-1
- filters List<Property Map>
getContainerInstanceShapes Result
The following output properties are available:
- Compartment
Id string - Container
Instance List<GetShape Collections Container Instance Shapes Container Instance Shape Collection> The list of container_instance_shape_collection.
- Id string
The provider-assigned unique ID for this managed resource.
- Availability
Domain string - Filters
List<Get
Container Instance Shapes Filter>
- Compartment
Id string - Container
Instance []GetShape Collections Container Instance Shapes Container Instance Shape Collection The list of container_instance_shape_collection.
- Id string
The provider-assigned unique ID for this managed resource.
- Availability
Domain string - Filters
[]Get
Container Instance Shapes Filter
- compartment
Id String - container
Instance List<GetShape Collections Container Instance Shapes Container Instance Shape Collection> The list of container_instance_shape_collection.
- id String
The provider-assigned unique ID for this managed resource.
- availability
Domain String - filters
List<Get
Container Instance Shapes Filter>
- compartment
Id string - container
Instance GetShape Collections Container Instance Shapes Container Instance Shape Collection[] The list of container_instance_shape_collection.
- id string
The provider-assigned unique ID for this managed resource.
- availability
Domain string - filters
Get
Container Instance Shapes Filter[]
- compartment_
id str - container_
instance_ Getshape_ collections Container Instance Shapes Container Instance Shape Collection] The list of container_instance_shape_collection.
- id str
The provider-assigned unique ID for this managed resource.
- availability_
domain str - filters
Get
Container Instance Shapes Filter]
- compartment
Id String - container
Instance List<Property Map>Shape Collections The list of container_instance_shape_collection.
- id String
The provider-assigned unique ID for this managed resource.
- availability
Domain String - filters List<Property Map>
Supporting Types
GetContainerInstanceShapesContainerInstanceShapeCollection
- items List<Property Map>
List of shapes.
GetContainerInstanceShapesContainerInstanceShapeCollectionItem
- Memory
Options List<GetContainer Instance Shapes Container Instance Shape Collection 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.
- Networking
Bandwidth List<GetOptions Container Instance Shapes Container Instance Shape Collection Item Networking Bandwidth Option> For a flexible shape, the amount of networking bandwidth available for instances that use this shape.
- Ocpu
Options List<GetContainer Instance Shapes Container Instance Shape Collection Item Ocpu Option> For a flexible shape, the number of OCPUs available for instances that use this shape.
- Processor
Description string A short description of the Instance's processor (CPU).
- Memory
Options []GetContainer Instance Shapes Container Instance Shape Collection 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.
- Networking
Bandwidth []GetOptions Container Instance Shapes Container Instance Shape Collection Item Networking Bandwidth Option For a flexible shape, the amount of networking bandwidth available for instances that use this shape.
- Ocpu
Options []GetContainer Instance Shapes Container Instance Shape Collection Item Ocpu Option For a flexible shape, the number of OCPUs available for instances that use this shape.
- Processor
Description string A short description of the Instance's processor (CPU).
- memory
Options List<GetContainer Instance Shapes Container Instance Shape Collection 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.
- networking
Bandwidth List<GetOptions Container Instance Shapes Container Instance Shape Collection Item Networking Bandwidth Option> For a flexible shape, the amount of networking bandwidth available for instances that use this shape.
- ocpu
Options List<GetContainer Instance Shapes Container Instance Shape Collection Item Ocpu Option> For a flexible shape, the number of OCPUs available for instances that use this shape.
- processor
Description String A short description of the Instance's processor (CPU).
- memory
Options GetContainer Instance Shapes Container Instance Shape Collection 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.
- networking
Bandwidth GetOptions Container Instance Shapes Container Instance Shape Collection Item Networking Bandwidth Option[] For a flexible shape, the amount of networking bandwidth available for instances that use this shape.
- ocpu
Options GetContainer Instance Shapes Container Instance Shape Collection Item Ocpu Option[] For a flexible shape, the number of OCPUs available for instances that use this shape.
- processor
Description string A short description of the Instance's processor (CPU).
- memory_
options GetContainer Instance Shapes Container Instance Shape Collection 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_ Getoptions Container Instance Shapes Container Instance Shape Collection Item Networking Bandwidth Option] For a flexible shape, the amount of networking bandwidth available for instances that use this shape.
- ocpu_
options GetContainer Instance Shapes Container Instance Shape Collection 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).
- memory
Options 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.
- networking
Bandwidth List<Property Map>Options For a flexible shape, the amount of networking bandwidth available for instances that use this shape.
- ocpu
Options List<Property Map> For a flexible shape, the number of OCPUs available for instances that use this shape.
- processor
Description String A short description of the Instance's processor (CPU).
GetContainerInstanceShapesContainerInstanceShapeCollectionItemMemoryOption
- Default
Per doubleOcpu In Gbs The default amount of memory per OCPU available for this shape, in gigabytes.
- Max
In doubleGbs The maximum amount of memory, in gigabytes.
- Max
Per doubleOcpu In Gbs The maximum amount of memory per OCPU available for this shape, in gigabytes.
- Min
In doubleGbs The minimum amount of memory, in gigabytes.
- Min
Per doubleOcpu In Gbs The minimum amount of memory per OCPU available for this shape, in gigabytes.
- Default
Per float64Ocpu In Gbs The default amount of memory per OCPU available for this shape, in gigabytes.
- Max
In float64Gbs The maximum amount of memory, in gigabytes.
- Max
Per float64Ocpu In Gbs The maximum amount of memory per OCPU available for this shape, in gigabytes.
- Min
In float64Gbs The minimum amount of memory, in gigabytes.
- Min
Per float64Ocpu In Gbs The minimum amount of memory per OCPU available for this shape, in gigabytes.
- default
Per DoubleOcpu In Gbs The default amount of memory per OCPU available for this shape, in gigabytes.
- max
In DoubleGbs The maximum amount of memory, in gigabytes.
- max
Per DoubleOcpu In Gbs The maximum amount of memory per OCPU available for this shape, in gigabytes.
- min
In DoubleGbs The minimum amount of memory, in gigabytes.
- min
Per DoubleOcpu In Gbs The minimum amount of memory per OCPU available for this shape, in gigabytes.
- default
Per numberOcpu In Gbs The default amount of memory per OCPU available for this shape, in gigabytes.
- max
In numberGbs The maximum amount of memory, in gigabytes.
- max
Per numberOcpu In Gbs The maximum amount of memory per OCPU available for this shape, in gigabytes.
- min
In numberGbs The minimum amount of memory, in gigabytes.
- min
Per 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.
- default
Per NumberOcpu In Gbs The default amount of memory per OCPU available for this shape, in gigabytes.
- max
In NumberGbs The maximum amount of memory, in gigabytes.
- max
Per NumberOcpu In Gbs The maximum amount of memory per OCPU available for this shape, in gigabytes.
- min
In NumberGbs The minimum amount of memory, in gigabytes.
- min
Per NumberOcpu In Gbs The minimum amount of memory per OCPU available for this shape, in gigabytes.
GetContainerInstanceShapesContainerInstanceShapeCollectionItemNetworkingBandwidthOption
- Default
Per doubleOcpu In Gbps The default amount of networking bandwidth per OCPU, in gigabits per second.
- Max
In doubleGbps The maximum amount of networking bandwidth, in gigabits per second.
- Min
In doubleGbps The minimum amount of networking bandwidth, in gigabits per second.
- Default
Per float64Ocpu In Gbps The default amount of networking bandwidth per OCPU, in gigabits per second.
- Max
In float64Gbps The maximum amount of networking bandwidth, in gigabits per second.
- Min
In float64Gbps The minimum amount of networking bandwidth, in gigabits per second.
- default
Per DoubleOcpu In Gbps The default amount of networking bandwidth per OCPU, in gigabits per second.
- max
In DoubleGbps The maximum amount of networking bandwidth, in gigabits per second.
- min
In DoubleGbps The minimum amount of networking bandwidth, in gigabits per second.
- default
Per numberOcpu In Gbps The default amount of networking bandwidth per OCPU, in gigabits per second.
- max
In numberGbps The maximum amount of networking bandwidth, in gigabits per second.
- min
In 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.
- default
Per NumberOcpu In Gbps The default amount of networking bandwidth per OCPU, in gigabits per second.
- max
In NumberGbps The maximum amount of networking bandwidth, in gigabits per second.
- min
In NumberGbps The minimum amount of networking bandwidth, in gigabits per second.
GetContainerInstanceShapesContainerInstanceShapeCollectionItemOcpuOption
GetContainerInstanceShapesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.