Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.ContainerEngine.getPodShapes
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides the list of Pod Shapes in Oracle Cloud Infrastructure Container Engine service.
List all the Pod Shapes in a compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testPodShapes = oci.ContainerEngine.getPodShapes({
compartmentId: compartmentId,
availabilityDomain: podShapeAvailabilityDomain,
name: podShapeName,
});
import pulumi
import pulumi_oci as oci
test_pod_shapes = oci.ContainerEngine.get_pod_shapes(compartment_id=compartment_id,
availability_domain=pod_shape_availability_domain,
name=pod_shape_name)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/ContainerEngine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ContainerEngine.GetPodShapes(ctx, &containerengine.GetPodShapesArgs{
CompartmentId: compartmentId,
AvailabilityDomain: pulumi.StringRef(podShapeAvailabilityDomain),
Name: pulumi.StringRef(podShapeName),
}, 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 testPodShapes = Oci.ContainerEngine.GetPodShapes.Invoke(new()
{
CompartmentId = compartmentId,
AvailabilityDomain = podShapeAvailabilityDomain,
Name = podShapeName,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ContainerEngine.ContainerEngineFunctions;
import com.pulumi.oci.ContainerEngine.inputs.GetPodShapesArgs;
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 testPodShapes = ContainerEngineFunctions.getPodShapes(GetPodShapesArgs.builder()
.compartmentId(compartmentId)
.availabilityDomain(podShapeAvailabilityDomain)
.name(podShapeName)
.build());
}
}
variables:
testPodShapes:
fn::invoke:
Function: oci:ContainerEngine:getPodShapes
Arguments:
compartmentId: ${compartmentId}
availabilityDomain: ${podShapeAvailabilityDomain}
name: ${podShapeName}
Using getPodShapes
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 getPodShapes(args: GetPodShapesArgs, opts?: InvokeOptions): Promise<GetPodShapesResult>
function getPodShapesOutput(args: GetPodShapesOutputArgs, opts?: InvokeOptions): Output<GetPodShapesResult>
def get_pod_shapes(availability_domain: Optional[str] = None,
compartment_id: Optional[str] = None,
filters: Optional[Sequence[_containerengine.GetPodShapesFilter]] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPodShapesResult
def get_pod_shapes_output(availability_domain: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_containerengine.GetPodShapesFilterArgs]]]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPodShapesResult]
func GetPodShapes(ctx *Context, args *GetPodShapesArgs, opts ...InvokeOption) (*GetPodShapesResult, error)
func GetPodShapesOutput(ctx *Context, args *GetPodShapesOutputArgs, opts ...InvokeOption) GetPodShapesResultOutput
> Note: This function is named GetPodShapes
in the Go SDK.
public static class GetPodShapes
{
public static Task<GetPodShapesResult> InvokeAsync(GetPodShapesArgs args, InvokeOptions? opts = null)
public static Output<GetPodShapesResult> Invoke(GetPodShapesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPodShapesResult> getPodShapes(GetPodShapesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:ContainerEngine/getPodShapes:getPodShapes
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment.
- Availability
Domain string - The availability domain of the pod shape.
- Filters
List<Get
Pod Shapes Filter> - Name string
- The name to filter on.
- Compartment
Id string - The OCID of the compartment.
- Availability
Domain string - The availability domain of the pod shape.
- Filters
[]Get
Pod Shapes Filter - Name string
- The name to filter on.
- compartment
Id String - The OCID of the compartment.
- availability
Domain String - The availability domain of the pod shape.
- filters
List<Get
Pod Shapes Filter> - name String
- The name to filter on.
- compartment
Id string - The OCID of the compartment.
- availability
Domain string - The availability domain of the pod shape.
- filters
Get
Pod Shapes Filter[] - name string
- The name to filter on.
- compartment_
id str - The OCID of the compartment.
- availability_
domain str - The availability domain of the pod shape.
- filters
Sequence[containerengine.
Get Pod Shapes Filter] - name str
- The name to filter on.
- compartment
Id String - The OCID of the compartment.
- availability
Domain String - The availability domain of the pod shape.
- filters List<Property Map>
- name String
- The name to filter on.
getPodShapes Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Pod
Shapes List<GetPod Shapes Pod Shape> - The list of pod_shapes.
- Availability
Domain string - Filters
List<Get
Pod Shapes Filter> - Name string
- The name of the identifying shape.
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Pod
Shapes []GetPod Shapes Pod Shape - The list of pod_shapes.
- Availability
Domain string - Filters
[]Get
Pod Shapes Filter - Name string
- The name of the identifying shape.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- pod
Shapes List<GetPod Shapes Pod Shape> - The list of pod_shapes.
- availability
Domain String - filters
List<Get
Pod Shapes Filter> - name String
- The name of the identifying shape.
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- pod
Shapes GetPod Shapes Pod Shape[] - The list of pod_shapes.
- availability
Domain string - filters
Get
Pod Shapes Filter[] - name string
- The name of the identifying shape.
- compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- pod_
shapes Sequence[containerengine.Get Pod Shapes Pod Shape] - The list of pod_shapes.
- availability_
domain str - filters
Sequence[containerengine.
Get Pod Shapes Filter] - name str
- The name of the identifying shape.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- pod
Shapes List<Property Map> - The list of pod_shapes.
- availability
Domain String - filters List<Property Map>
- name String
- The name of the identifying shape.
Supporting Types
GetPodShapesFilter
GetPodShapesPodShape
- Memory
Options List<GetPod Shapes Pod Shape Memory Option> - ShapeMemoryOptions.
- Name string
- The name to filter on.
- Network
Bandwidth List<GetOptions Pod Shapes Pod Shape Network Bandwidth Option> - ShapeNetworkBandwidthOptions.
- Ocpu
Options List<GetPod Shapes Pod Shape Ocpu Option> - Options for OCPU shape.
- Processor
Description string - A short description of the VM's processor (CPU).
- Memory
Options []GetPod Shapes Pod Shape Memory Option - ShapeMemoryOptions.
- Name string
- The name to filter on.
- Network
Bandwidth []GetOptions Pod Shapes Pod Shape Network Bandwidth Option - ShapeNetworkBandwidthOptions.
- Ocpu
Options []GetPod Shapes Pod Shape Ocpu Option - Options for OCPU shape.
- Processor
Description string - A short description of the VM's processor (CPU).
- memory
Options List<GetPod Shapes Pod Shape Memory Option> - ShapeMemoryOptions.
- name String
- The name to filter on.
- network
Bandwidth List<GetOptions Pod Shapes Pod Shape Network Bandwidth Option> - ShapeNetworkBandwidthOptions.
- ocpu
Options List<GetPod Shapes Pod Shape Ocpu Option> - Options for OCPU shape.
- processor
Description String - A short description of the VM's processor (CPU).
- memory
Options GetPod Shapes Pod Shape Memory Option[] - ShapeMemoryOptions.
- name string
- The name to filter on.
- network
Bandwidth GetOptions Pod Shapes Pod Shape Network Bandwidth Option[] - ShapeNetworkBandwidthOptions.
- ocpu
Options GetPod Shapes Pod Shape Ocpu Option[] - Options for OCPU shape.
- processor
Description string - A short description of the VM's processor (CPU).
- memory_
options Sequence[containerengine.Get Pod Shapes Pod Shape Memory Option] - ShapeMemoryOptions.
- name str
- The name to filter on.
- network_
bandwidth_ Sequence[containerengine.options Get Pod Shapes Pod Shape Network Bandwidth Option] - ShapeNetworkBandwidthOptions.
- ocpu_
options Sequence[containerengine.Get Pod Shapes Pod Shape Ocpu Option] - Options for OCPU shape.
- processor_
description str - A short description of the VM's processor (CPU).
- memory
Options List<Property Map> - ShapeMemoryOptions.
- name String
- The name to filter on.
- network
Bandwidth List<Property Map>Options - ShapeNetworkBandwidthOptions.
- ocpu
Options List<Property Map> - Options for OCPU shape.
- processor
Description String - A short description of the VM's processor (CPU).
GetPodShapesPodShapeMemoryOption
- 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.
GetPodShapesPodShapeNetworkBandwidthOption
- 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.
GetPodShapesPodShapeOcpuOption
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 v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi