Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Mysql.getShapes
Explore with Pulumi AI
This data source provides the list of Shapes in Oracle Cloud Infrastructure MySQL Database service.
Gets a list of the shapes you can use to create a new MySQL DB System. The shape determines the resources allocated to the DB System: CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testShapes = oci.Mysql.getShapes({
    compartmentId: compartmentId,
    availabilityDomain: shapeAvailabilityDomain,
    isSupportedFors: shapeIsSupportedFor,
    name: shapeName,
});
import pulumi
import pulumi_oci as oci
test_shapes = oci.Mysql.get_shapes(compartment_id=compartment_id,
    availability_domain=shape_availability_domain,
    is_supported_fors=shape_is_supported_for,
    name=shape_name)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/mysql"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := mysql.GetShapes(ctx, &mysql.GetShapesArgs{
			CompartmentId:      compartmentId,
			AvailabilityDomain: pulumi.StringRef(shapeAvailabilityDomain),
			IsSupportedFors:    shapeIsSupportedFor,
			Name:               pulumi.StringRef(shapeName),
		}, 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.Mysql.GetShapes.Invoke(new()
    {
        CompartmentId = compartmentId,
        AvailabilityDomain = shapeAvailabilityDomain,
        IsSupportedFors = shapeIsSupportedFor,
        Name = shapeName,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Mysql.MysqlFunctions;
import com.pulumi.oci.Mysql.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 = MysqlFunctions.getShapes(GetShapesArgs.builder()
            .compartmentId(compartmentId)
            .availabilityDomain(shapeAvailabilityDomain)
            .isSupportedFors(shapeIsSupportedFor)
            .name(shapeName)
            .build());
    }
}
variables:
  testShapes:
    fn::invoke:
      function: oci:Mysql:getShapes
      arguments:
        compartmentId: ${compartmentId}
        availabilityDomain: ${shapeAvailabilityDomain}
        isSupportedFors: ${shapeIsSupportedFor}
        name: ${shapeName}
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(availability_domain: Optional[str] = None,
               compartment_id: Optional[str] = None,
               filters: Optional[Sequence[GetShapesFilter]] = None,
               is_supported_fors: Optional[Sequence[str]] = None,
               name: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetShapesResult
def get_shapes_output(availability_domain: Optional[pulumi.Input[str]] = None,
               compartment_id: Optional[pulumi.Input[str]] = None,
               filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetShapesFilterArgs]]]] = None,
               is_supported_fors: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
               name: 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:Mysql/getShapes:getShapes
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The compartment OCID.
- AvailabilityDomain string
- The name of the Availability Domain.
- Filters
List<GetShapes Filter> 
- IsSupported List<string>Fors 
- Return shapes that are supported by the service feature.
- Name string
- Name
- CompartmentId string
- The compartment OCID.
- AvailabilityDomain string
- The name of the Availability Domain.
- Filters
[]GetShapes Filter 
- IsSupported []stringFors 
- Return shapes that are supported by the service feature.
- Name string
- Name
- compartmentId String
- The compartment OCID.
- availabilityDomain String
- The name of the Availability Domain.
- filters
List<GetShapes Filter> 
- isSupported List<String>Fors 
- Return shapes that are supported by the service feature.
- name String
- Name
- compartmentId string
- The compartment OCID.
- availabilityDomain string
- The name of the Availability Domain.
- filters
GetShapes Filter[] 
- isSupported string[]Fors 
- Return shapes that are supported by the service feature.
- name string
- Name
- compartment_id str
- The compartment OCID.
- availability_domain str
- The name of the Availability Domain.
- filters
Sequence[GetShapes Filter] 
- is_supported_ Sequence[str]fors 
- Return shapes that are supported by the service feature.
- name str
- Name
- compartmentId String
- The compartment OCID.
- availabilityDomain String
- The name of the Availability Domain.
- filters List<Property Map>
- isSupported List<String>Fors 
- Return shapes that are supported by the service feature.
- name String
- Name
getShapes Result
The following output properties are available:
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Shapes
List<GetShapes Shape> 
- The list of shapes.
- AvailabilityDomain string
- Filters
List<GetShapes Filter> 
- IsSupported List<string>Fors 
- What service features the shape is supported for.
- Name string
- The name of the shape used for the DB System.
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Shapes
[]GetShapes Shape 
- The list of shapes.
- AvailabilityDomain string
- Filters
[]GetShapes Filter 
- IsSupported []stringFors 
- What service features the shape is supported for.
- Name string
- The name of the shape used for the DB System.
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- shapes
List<GetShapes Shape> 
- The list of shapes.
- availabilityDomain String
- filters
List<GetShapes Filter> 
- isSupported List<String>Fors 
- What service features the shape is supported for.
- name String
- The name of the shape used for the DB System.
- compartmentId string
- id string
- The provider-assigned unique ID for this managed resource.
- shapes
GetShapes Shape[] 
- The list of shapes.
- availabilityDomain string
- filters
GetShapes Filter[] 
- isSupported string[]Fors 
- What service features the shape is supported for.
- name string
- The name of the shape used for the DB System.
- compartment_id str
- id str
- The provider-assigned unique ID for this managed resource.
- shapes
Sequence[GetShapes Shape] 
- The list of shapes.
- availability_domain str
- filters
Sequence[GetShapes Filter] 
- is_supported_ Sequence[str]fors 
- What service features the shape is supported for.
- name str
- The name of the shape used for the DB System.
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- shapes List<Property Map>
- The list of shapes.
- availabilityDomain String
- filters List<Property Map>
- isSupported List<String>Fors 
- What service features the shape is supported for.
- name String
- The name of the shape used for the DB System.
Supporting Types
GetShapesFilter  
GetShapesShape  
- CpuCore intCount 
- The number of CPU Cores the Instance provides. These are "OCPU"s.
- IsSupported List<string>Fors 
- Return shapes that are supported by the service feature.
- MemorySize intIn Gbs 
- The amount of RAM the Instance provides. This is an IEC base-2 number.
- Name string
- Name
- CpuCore intCount 
- The number of CPU Cores the Instance provides. These are "OCPU"s.
- IsSupported []stringFors 
- Return shapes that are supported by the service feature.
- MemorySize intIn Gbs 
- The amount of RAM the Instance provides. This is an IEC base-2 number.
- Name string
- Name
- cpuCore IntegerCount 
- The number of CPU Cores the Instance provides. These are "OCPU"s.
- isSupported List<String>Fors 
- Return shapes that are supported by the service feature.
- memorySize IntegerIn Gbs 
- The amount of RAM the Instance provides. This is an IEC base-2 number.
- name String
- Name
- cpuCore numberCount 
- The number of CPU Cores the Instance provides. These are "OCPU"s.
- isSupported string[]Fors 
- Return shapes that are supported by the service feature.
- memorySize numberIn Gbs 
- The amount of RAM the Instance provides. This is an IEC base-2 number.
- name string
- Name
- cpu_core_ intcount 
- The number of CPU Cores the Instance provides. These are "OCPU"s.
- is_supported_ Sequence[str]fors 
- Return shapes that are supported by the service feature.
- memory_size_ intin_ gbs 
- The amount of RAM the Instance provides. This is an IEC base-2 number.
- name str
- Name
- cpuCore NumberCount 
- The number of CPU Cores the Instance provides. These are "OCPU"s.
- isSupported List<String>Fors 
- Return shapes that are supported by the service feature.
- memorySize NumberIn Gbs 
- The amount of RAM the Instance provides. This is an IEC base-2 number.
- name String
- Name
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.