Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Mysql.getShapes
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 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/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[_mysql.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[_mysql.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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Mysql/getShapes:getShapes
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The compartment OCID.
- Availability
Domain string - The name of the Availability Domain.
- Filters
List<Get
Shapes Filter> - Is
Supported List<string>Fors - Return shapes that are supported by the service feature.
- Name string
- Name
- Compartment
Id string - The compartment OCID.
- Availability
Domain string - The name of the Availability Domain.
- Filters
[]Get
Shapes Filter - Is
Supported []stringFors - Return shapes that are supported by the service feature.
- Name string
- Name
- compartment
Id String - The compartment OCID.
- availability
Domain String - The name of the Availability Domain.
- filters
List<Get
Shapes Filter> - is
Supported List<String>Fors - Return shapes that are supported by the service feature.
- name String
- Name
- compartment
Id string - The compartment OCID.
- availability
Domain string - The name of the Availability Domain.
- filters
Get
Shapes Filter[] - is
Supported 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[mysql.
Get Shapes Filter] - is_
supported_ Sequence[str]fors - Return shapes that are supported by the service feature.
- name str
- Name
- compartment
Id String - The compartment OCID.
- availability
Domain String - The name of the Availability Domain.
- filters List<Property Map>
- is
Supported List<String>Fors - Return shapes that are supported by the service feature.
- name String
- Name
getShapes Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Shapes
List<Get
Shapes Shape> - The list of shapes.
- Availability
Domain string - Filters
List<Get
Shapes Filter> - Is
Supported List<string>Fors - What service features the shape is supported for.
- Name string
- The name of the shape used for the DB System.
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Shapes
[]Get
Shapes Shape - The list of shapes.
- Availability
Domain string - Filters
[]Get
Shapes Filter - Is
Supported []stringFors - What service features the shape is supported for.
- Name string
- The name of the shape used for the DB System.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- shapes
List<Get
Shapes Shape> - The list of shapes.
- availability
Domain String - filters
List<Get
Shapes Filter> - is
Supported List<String>Fors - What service features the shape is supported for.
- name String
- The name of the shape used for the DB System.
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- shapes
Get
Shapes Shape[] - The list of shapes.
- availability
Domain string - filters
Get
Shapes Filter[] - is
Supported 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[mysql.
Get Shapes Shape] - The list of shapes.
- availability_
domain str - filters
Sequence[mysql.
Get Shapes 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.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- shapes List<Property Map>
- The list of shapes.
- availability
Domain String - filters List<Property Map>
- is
Supported 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
- Cpu
Core intCount - The number of CPU Cores the Instance provides. These are "OCPU"s.
- Is
Supported List<string>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 string
- Name
- Cpu
Core intCount - The number of CPU Cores the Instance provides. These are "OCPU"s.
- Is
Supported []stringFors - 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 string
- Name
- cpu
Core IntegerCount - The number of CPU Cores the Instance provides. These are "OCPU"s.
- is
Supported List<String>Fors - Return shapes that are supported by the service feature.
- memory
Size IntegerIn Gbs - The amount of RAM the Instance provides. This is an IEC base-2 number.
- name String
- Name
- cpu
Core numberCount - The number of CPU Cores the Instance provides. These are "OCPU"s.
- is
Supported string[]Fors - Return shapes that are supported by the service feature.
- memory
Size 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
- cpu
Core NumberCount - The number of CPU Cores the Instance provides. These are "OCPU"s.
- is
Supported List<String>Fors - Return shapes that are supported by the service feature.
- memory
Size 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
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi