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

oci.Psql.getShapes

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 Shapes in Oracle Cloud Infrastructure Psql service.

Returns the list of shapes allowed in the region.

Example Usage

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

const testShapes = oci.Psql.getShapes({
    compartmentId: compartmentId,
    id: shapeId,
});
Copy
import pulumi
import pulumi_oci as oci

test_shapes = oci.Psql.get_shapes(compartment_id=compartment_id,
    id=shape_id)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := psql.GetShapes(ctx, &psql.GetShapesArgs{
			CompartmentId: pulumi.StringRef(compartmentId),
			Id:            pulumi.StringRef(shapeId),
		}, 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 testShapes = Oci.Psql.GetShapes.Invoke(new()
    {
        CompartmentId = compartmentId,
        Id = shapeId,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Psql.PsqlFunctions;
import com.pulumi.oci.Psql.inputs.GetShapesArgs;
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 testShapes = PsqlFunctions.getShapes(GetShapesArgs.builder()
            .compartmentId(compartmentId)
            .id(shapeId)
            .build());

    }
}
Copy
variables:
  testShapes:
    fn::invoke:
      function: oci:Psql:getShapes
      arguments:
        compartmentId: ${compartmentId}
        id: ${shapeId}
Copy

Using getShapes

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 getShapes(args: GetShapesArgs, opts?: InvokeOptions): Promise<GetShapesResult>
function getShapesOutput(args: GetShapesOutputArgs, opts?: InvokeOptions): Output<GetShapesResult>
Copy
def get_shapes(compartment_id: Optional[str] = None,
               filters: Optional[Sequence[_psql.GetShapesFilter]] = None,
               id: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetShapesResult
def get_shapes_output(compartment_id: Optional[pulumi.Input[str]] = None,
               filters: Optional[pulumi.Input[Sequence[pulumi.Input[_psql.GetShapesFilterArgs]]]] = None,
               id: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetShapesResult]
Copy
func GetShapes(ctx *Context, args *GetShapesArgs, opts ...InvokeOption) (*GetShapesResult, error)
func GetShapesOutput(ctx *Context, args *GetShapesOutputArgs, opts ...InvokeOption) GetShapesResultOutput
Copy

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

public static class GetShapes 
{
    public static Task<GetShapesResult> InvokeAsync(GetShapesArgs args, InvokeOptions? opts = null)
    public static Output<GetShapesResult> Invoke(GetShapesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetShapesResult> getShapes(GetShapesArgs args, InvokeOptions options)
public static Output<GetShapesResult> getShapes(GetShapesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Psql/getShapes:getShapes
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId string
The ID of the compartment in which to list resources.
Filters Changes to this property will trigger replacement. List<GetShapesFilter>
Id string
A filter to return the feature by the shape name.
CompartmentId string
The ID of the compartment in which to list resources.
Filters Changes to this property will trigger replacement. []GetShapesFilter
Id string
A filter to return the feature by the shape name.
compartmentId String
The ID of the compartment in which to list resources.
filters Changes to this property will trigger replacement. List<GetShapesFilter>
id String
A filter to return the feature by the shape name.
compartmentId string
The ID of the compartment in which to list resources.
filters Changes to this property will trigger replacement. GetShapesFilter[]
id string
A filter to return the feature by the shape name.
compartment_id str
The ID of the compartment in which to list resources.
filters Changes to this property will trigger replacement. Sequence[psql.GetShapesFilter]
id str
A filter to return the feature by the shape name.
compartmentId String
The ID of the compartment in which to list resources.
filters Changes to this property will trigger replacement. List<Property Map>
id String
A filter to return the feature by the shape name.

getShapes Result

The following output properties are available:

ShapeCollections List<GetShapesShapeCollection>
The list of shape_collection.
CompartmentId string
Filters List<GetShapesFilter>
Id string
A unique identifier for the shape.
ShapeCollections []GetShapesShapeCollection
The list of shape_collection.
CompartmentId string
Filters []GetShapesFilter
Id string
A unique identifier for the shape.
shapeCollections List<GetShapesShapeCollection>
The list of shape_collection.
compartmentId String
filters List<GetShapesFilter>
id String
A unique identifier for the shape.
shapeCollections GetShapesShapeCollection[]
The list of shape_collection.
compartmentId string
filters GetShapesFilter[]
id string
A unique identifier for the shape.
shape_collections Sequence[psql.GetShapesShapeCollection]
The list of shape_collection.
compartment_id str
filters Sequence[psql.GetShapesFilter]
id str
A unique identifier for the shape.
shapeCollections List<Property Map>
The list of shape_collection.
compartmentId String
filters List<Property Map>
id String
A unique identifier for the shape.

Supporting Types

GetShapesFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetShapesShapeCollection

Items This property is required. List<GetShapesShapeCollectionItem>
List of supported shapes.
Items This property is required. []GetShapesShapeCollectionItem
List of supported shapes.
items This property is required. List<GetShapesShapeCollectionItem>
List of supported shapes.
items This property is required. GetShapesShapeCollectionItem[]
List of supported shapes.
items This property is required. Sequence[psql.GetShapesShapeCollectionItem]
List of supported shapes.
items This property is required. List<Property Map>
List of supported shapes.

GetShapesShapeCollectionItem

Id This property is required. string
A filter to return the feature by the shape name.
IsFlexible This property is required. bool
Indicates if the shape is a flex shape.
MemorySizeInGbs This property is required. int
The amount of memory in gigabytes.
OcpuCount This property is required. int
The number of OCPUs.
Shape This property is required. string
The name of the Compute VM shape. Example: VM.Standard.E4.Flex
ShapeMemoryOptions This property is required. List<GetShapesShapeCollectionItemShapeMemoryOption>
Options for the the shape memory
ShapeOcpuOptions This property is required. List<GetShapesShapeCollectionItemShapeOcpuOption>
Options for the the shape OCPU
Id This property is required. string
A filter to return the feature by the shape name.
IsFlexible This property is required. bool
Indicates if the shape is a flex shape.
MemorySizeInGbs This property is required. int
The amount of memory in gigabytes.
OcpuCount This property is required. int
The number of OCPUs.
Shape This property is required. string
The name of the Compute VM shape. Example: VM.Standard.E4.Flex
ShapeMemoryOptions This property is required. []GetShapesShapeCollectionItemShapeMemoryOption
Options for the the shape memory
ShapeOcpuOptions This property is required. []GetShapesShapeCollectionItemShapeOcpuOption
Options for the the shape OCPU
id This property is required. String
A filter to return the feature by the shape name.
isFlexible This property is required. Boolean
Indicates if the shape is a flex shape.
memorySizeInGbs This property is required. Integer
The amount of memory in gigabytes.
ocpuCount This property is required. Integer
The number of OCPUs.
shape This property is required. String
The name of the Compute VM shape. Example: VM.Standard.E4.Flex
shapeMemoryOptions This property is required. List<GetShapesShapeCollectionItemShapeMemoryOption>
Options for the the shape memory
shapeOcpuOptions This property is required. List<GetShapesShapeCollectionItemShapeOcpuOption>
Options for the the shape OCPU
id This property is required. string
A filter to return the feature by the shape name.
isFlexible This property is required. boolean
Indicates if the shape is a flex shape.
memorySizeInGbs This property is required. number
The amount of memory in gigabytes.
ocpuCount This property is required. number
The number of OCPUs.
shape This property is required. string
The name of the Compute VM shape. Example: VM.Standard.E4.Flex
shapeMemoryOptions This property is required. GetShapesShapeCollectionItemShapeMemoryOption[]
Options for the the shape memory
shapeOcpuOptions This property is required. GetShapesShapeCollectionItemShapeOcpuOption[]
Options for the the shape OCPU
id This property is required. str
A filter to return the feature by the shape name.
is_flexible This property is required. bool
Indicates if the shape is a flex shape.
memory_size_in_gbs This property is required. int
The amount of memory in gigabytes.
ocpu_count This property is required. int
The number of OCPUs.
shape This property is required. str
The name of the Compute VM shape. Example: VM.Standard.E4.Flex
shape_memory_options This property is required. Sequence[psql.GetShapesShapeCollectionItemShapeMemoryOption]
Options for the the shape memory
shape_ocpu_options This property is required. Sequence[psql.GetShapesShapeCollectionItemShapeOcpuOption]
Options for the the shape OCPU
id This property is required. String
A filter to return the feature by the shape name.
isFlexible This property is required. Boolean
Indicates if the shape is a flex shape.
memorySizeInGbs This property is required. Number
The amount of memory in gigabytes.
ocpuCount This property is required. Number
The number of OCPUs.
shape This property is required. String
The name of the Compute VM shape. Example: VM.Standard.E4.Flex
shapeMemoryOptions This property is required. List<Property Map>
Options for the the shape memory
shapeOcpuOptions This property is required. List<Property Map>
Options for the the shape OCPU

GetShapesShapeCollectionItemShapeMemoryOption

DefaultPerOcpuInGbs This property is required. int
Default per OCPU configuration in GBs
MaxInGbs This property is required. int
Maximum Memory configuration in GBs
MaxPerOcpuInGbs This property is required. int
Maximum Memory configuration per OCPU in GBs
MinInGbs This property is required. int
Minimum Memory configuration in GBs
MinPerOcpuInGbs This property is required. int
Minimum Memory configuration per OCPU in GBs
DefaultPerOcpuInGbs This property is required. int
Default per OCPU configuration in GBs
MaxInGbs This property is required. int
Maximum Memory configuration in GBs
MaxPerOcpuInGbs This property is required. int
Maximum Memory configuration per OCPU in GBs
MinInGbs This property is required. int
Minimum Memory configuration in GBs
MinPerOcpuInGbs This property is required. int
Minimum Memory configuration per OCPU in GBs
defaultPerOcpuInGbs This property is required. Integer
Default per OCPU configuration in GBs
maxInGbs This property is required. Integer
Maximum Memory configuration in GBs
maxPerOcpuInGbs This property is required. Integer
Maximum Memory configuration per OCPU in GBs
minInGbs This property is required. Integer
Minimum Memory configuration in GBs
minPerOcpuInGbs This property is required. Integer
Minimum Memory configuration per OCPU in GBs
defaultPerOcpuInGbs This property is required. number
Default per OCPU configuration in GBs
maxInGbs This property is required. number
Maximum Memory configuration in GBs
maxPerOcpuInGbs This property is required. number
Maximum Memory configuration per OCPU in GBs
minInGbs This property is required. number
Minimum Memory configuration in GBs
minPerOcpuInGbs This property is required. number
Minimum Memory configuration per OCPU in GBs
default_per_ocpu_in_gbs This property is required. int
Default per OCPU configuration in GBs
max_in_gbs This property is required. int
Maximum Memory configuration in GBs
max_per_ocpu_in_gbs This property is required. int
Maximum Memory configuration per OCPU in GBs
min_in_gbs This property is required. int
Minimum Memory configuration in GBs
min_per_ocpu_in_gbs This property is required. int
Minimum Memory configuration per OCPU in GBs
defaultPerOcpuInGbs This property is required. Number
Default per OCPU configuration in GBs
maxInGbs This property is required. Number
Maximum Memory configuration in GBs
maxPerOcpuInGbs This property is required. Number
Maximum Memory configuration per OCPU in GBs
minInGbs This property is required. Number
Minimum Memory configuration in GBs
minPerOcpuInGbs This property is required. Number
Minimum Memory configuration per OCPU in GBs

GetShapesShapeCollectionItemShapeOcpuOption

Max This property is required. int
Maximum OCPU configuration
Min This property is required. int
Minimum OCPU configuration
Max This property is required. int
Maximum OCPU configuration
Min This property is required. int
Minimum OCPU configuration
max This property is required. Integer
Maximum OCPU configuration
min This property is required. Integer
Minimum OCPU configuration
max This property is required. number
Maximum OCPU configuration
min This property is required. number
Minimum OCPU configuration
max This property is required. int
Maximum OCPU configuration
min This property is required. int
Minimum OCPU configuration
max This property is required. Number
Maximum OCPU configuration
min This property is required. Number
Minimum OCPU configuration

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