Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Psql.getShapes
Explore with Pulumi AI
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,
});
import pulumi
import pulumi_oci as oci
test_shapes = oci.Psql.get_shapes(compartment_id=compartment_id,
    id=shape_id)
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
	})
}
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,
    });
});
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());
    }
}
variables:
  testShapes:
    fn::invoke:
      function: oci:Psql:getShapes
      arguments:
        compartmentId: ${compartmentId}
        id: ${shapeId}
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>def get_shapes(compartment_id: Optional[str] = None,
               filters: Optional[Sequence[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[GetShapesFilterArgs]]]] = None,
               id: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetShapesResult]func GetShapes(ctx *Context, args *GetShapesArgs, opts ...InvokeOption) (*GetShapesResult, error)
func GetShapesOutput(ctx *Context, args *GetShapesOutputArgs, opts ...InvokeOption) GetShapesResultOutput> 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)
}public static CompletableFuture<GetShapesResult> getShapes(GetShapesArgs args, InvokeOptions options)
public static Output<GetShapesResult> getShapes(GetShapesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Psql/getShapes:getShapes
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The ID of the compartment in which to list resources.
- Filters
List<GetShapes Filter> 
- 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
[]GetShapes Filter 
- 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
List<GetShapes Filter> 
- 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
GetShapes Filter[] 
- 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
Sequence[GetShapes Filter] 
- 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 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<GetShapes Shape Collection> 
- The list of shape_collection.
- CompartmentId string
- Filters
List<GetShapes Filter> 
- Id string
- A unique identifier for the shape.
- ShapeCollections []GetShapes Shape Collection 
- The list of shape_collection.
- CompartmentId string
- Filters
[]GetShapes Filter 
- Id string
- A unique identifier for the shape.
- shapeCollections List<GetShapes Shape Collection> 
- The list of shape_collection.
- compartmentId String
- filters
List<GetShapes Filter> 
- id String
- A unique identifier for the shape.
- shapeCollections GetShapes Shape Collection[] 
- The list of shape_collection.
- compartmentId string
- filters
GetShapes Filter[] 
- id string
- A unique identifier for the shape.
- shape_collections Sequence[GetShapes Shape Collection] 
- The list of shape_collection.
- compartment_id str
- filters
Sequence[GetShapes Filter] 
- 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  
GetShapesShapeCollection   
- Items
List<GetShapes Shape Collection Item> 
- List of supported shapes.
- Items
[]GetShapes Shape Collection Item 
- List of supported shapes.
- items
List<GetShapes Shape Collection Item> 
- List of supported shapes.
- items
GetShapes Shape Collection Item[] 
- List of supported shapes.
- items
Sequence[GetShapes Shape Collection Item] 
- List of supported shapes.
- items List<Property Map>
- List of supported shapes.
GetShapesShapeCollectionItem    
- Id string
- A filter to return the feature by the shape name.
- IsFlexible bool
- Indicates if the shape is a flex shape.
- MemorySize intIn Gbs 
- The amount of memory in gigabytes.
- OcpuCount int
- The number of OCPUs.
- Shape string
- The name of the Compute VM shape. Example: VM.Standard.E4.Flex
- ShapeMemory List<GetOptions Shapes Shape Collection Item Shape Memory Option> 
- Options for the the shape memory
- ShapeOcpu List<GetOptions Shapes Shape Collection Item Shape Ocpu Option> 
- Options for the the shape OCPU
- Id string
- A filter to return the feature by the shape name.
- IsFlexible bool
- Indicates if the shape is a flex shape.
- MemorySize intIn Gbs 
- The amount of memory in gigabytes.
- OcpuCount int
- The number of OCPUs.
- Shape string
- The name of the Compute VM shape. Example: VM.Standard.E4.Flex
- ShapeMemory []GetOptions Shapes Shape Collection Item Shape Memory Option 
- Options for the the shape memory
- ShapeOcpu []GetOptions Shapes Shape Collection Item Shape Ocpu Option 
- Options for the the shape OCPU
- id String
- A filter to return the feature by the shape name.
- isFlexible Boolean
- Indicates if the shape is a flex shape.
- memorySize IntegerIn Gbs 
- The amount of memory in gigabytes.
- ocpuCount Integer
- The number of OCPUs.
- shape String
- The name of the Compute VM shape. Example: VM.Standard.E4.Flex
- shapeMemory List<GetOptions Shapes Shape Collection Item Shape Memory Option> 
- Options for the the shape memory
- shapeOcpu List<GetOptions Shapes Shape Collection Item Shape Ocpu Option> 
- Options for the the shape OCPU
- id string
- A filter to return the feature by the shape name.
- isFlexible boolean
- Indicates if the shape is a flex shape.
- memorySize numberIn Gbs 
- The amount of memory in gigabytes.
- ocpuCount number
- The number of OCPUs.
- shape string
- The name of the Compute VM shape. Example: VM.Standard.E4.Flex
- shapeMemory GetOptions Shapes Shape Collection Item Shape Memory Option[] 
- Options for the the shape memory
- shapeOcpu GetOptions Shapes Shape Collection Item Shape Ocpu Option[] 
- Options for the the shape OCPU
- id str
- A filter to return the feature by the shape name.
- is_flexible bool
- Indicates if the shape is a flex shape.
- memory_size_ intin_ gbs 
- The amount of memory in gigabytes.
- ocpu_count int
- The number of OCPUs.
- shape str
- The name of the Compute VM shape. Example: VM.Standard.E4.Flex
- shape_memory_ Sequence[Getoptions Shapes Shape Collection Item Shape Memory Option] 
- Options for the the shape memory
- shape_ocpu_ Sequence[Getoptions Shapes Shape Collection Item Shape Ocpu Option] 
- Options for the the shape OCPU
- id String
- A filter to return the feature by the shape name.
- isFlexible Boolean
- Indicates if the shape is a flex shape.
- memorySize NumberIn Gbs 
- The amount of memory in gigabytes.
- ocpuCount Number
- The number of OCPUs.
- shape String
- The name of the Compute VM shape. Example: VM.Standard.E4.Flex
- shapeMemory List<Property Map>Options 
- Options for the the shape memory
- shapeOcpu List<Property Map>Options 
- Options for the the shape OCPU
GetShapesShapeCollectionItemShapeMemoryOption       
- DefaultPer intOcpu In Gbs 
- Default per OCPU configuration in GBs
- MaxIn intGbs 
- Maximum Memory configuration in GBs
- MaxPer intOcpu In Gbs 
- Maximum Memory configuration per OCPU in GBs
- MinIn intGbs 
- Minimum Memory configuration in GBs
- MinPer intOcpu In Gbs 
- Minimum Memory configuration per OCPU in GBs
- DefaultPer intOcpu In Gbs 
- Default per OCPU configuration in GBs
- MaxIn intGbs 
- Maximum Memory configuration in GBs
- MaxPer intOcpu In Gbs 
- Maximum Memory configuration per OCPU in GBs
- MinIn intGbs 
- Minimum Memory configuration in GBs
- MinPer intOcpu In Gbs 
- Minimum Memory configuration per OCPU in GBs
- defaultPer IntegerOcpu In Gbs 
- Default per OCPU configuration in GBs
- maxIn IntegerGbs 
- Maximum Memory configuration in GBs
- maxPer IntegerOcpu In Gbs 
- Maximum Memory configuration per OCPU in GBs
- minIn IntegerGbs 
- Minimum Memory configuration in GBs
- minPer IntegerOcpu In Gbs 
- Minimum Memory configuration per OCPU in GBs
- defaultPer numberOcpu In Gbs 
- Default per OCPU configuration in GBs
- maxIn numberGbs 
- Maximum Memory configuration in GBs
- maxPer numberOcpu In Gbs 
- Maximum Memory configuration per OCPU in GBs
- minIn numberGbs 
- Minimum Memory configuration in GBs
- minPer numberOcpu In Gbs 
- Minimum Memory configuration per OCPU in GBs
- default_per_ intocpu_ in_ gbs 
- Default per OCPU configuration in GBs
- max_in_ intgbs 
- Maximum Memory configuration in GBs
- max_per_ intocpu_ in_ gbs 
- Maximum Memory configuration per OCPU in GBs
- min_in_ intgbs 
- Minimum Memory configuration in GBs
- min_per_ intocpu_ in_ gbs 
- Minimum Memory configuration per OCPU in GBs
- defaultPer NumberOcpu In Gbs 
- Default per OCPU configuration in GBs
- maxIn NumberGbs 
- Maximum Memory configuration in GBs
- maxPer NumberOcpu In Gbs 
- Maximum Memory configuration per OCPU in GBs
- minIn NumberGbs 
- Minimum Memory configuration in GBs
- minPer NumberOcpu In Gbs 
- Minimum Memory configuration per OCPU in GBs
GetShapesShapeCollectionItemShapeOcpuOption       
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.