Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi
oci.Database.getFlexComponents
This data source provides the list of Flex Components in Oracle Cloud Infrastructure Database service.
Gets a list of the flex components that can be used to launch a new DB system. The flex component determines resources to allocate to the DB system - Database Servers and Storage Servers.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testFlexComponents = oci.Database.getFlexComponents({
compartmentId: compartmentId,
name: flexComponentName,
shape: flexComponentShape,
});
import pulumi
import pulumi_oci as oci
test_flex_components = oci.Database.get_flex_components(compartment_id=compartment_id,
name=flex_component_name,
shape=flex_component_shape)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/database"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := database.GetFlexComponents(ctx, &database.GetFlexComponentsArgs{
CompartmentId: compartmentId,
Name: pulumi.StringRef(flexComponentName),
Shape: pulumi.StringRef(flexComponentShape),
}, 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 testFlexComponents = Oci.Database.GetFlexComponents.Invoke(new()
{
CompartmentId = compartmentId,
Name = flexComponentName,
Shape = flexComponentShape,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.DatabaseFunctions;
import com.pulumi.oci.Database.inputs.GetFlexComponentsArgs;
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 testFlexComponents = DatabaseFunctions.getFlexComponents(GetFlexComponentsArgs.builder()
.compartmentId(compartmentId)
.name(flexComponentName)
.shape(flexComponentShape)
.build());
}
}
variables:
testFlexComponents:
fn::invoke:
function: oci:Database:getFlexComponents
arguments:
compartmentId: ${compartmentId}
name: ${flexComponentName}
shape: ${flexComponentShape}
Using getFlexComponents
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 getFlexComponents(args: GetFlexComponentsArgs, opts?: InvokeOptions): Promise<GetFlexComponentsResult>
function getFlexComponentsOutput(args: GetFlexComponentsOutputArgs, opts?: InvokeOptions): Output<GetFlexComponentsResult>def get_flex_components(compartment_id: Optional[str] = None,
filters: Optional[Sequence[GetFlexComponentsFilter]] = None,
name: Optional[str] = None,
shape: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFlexComponentsResult
def get_flex_components_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetFlexComponentsFilterArgs]]]] = None,
name: Optional[pulumi.Input[str]] = None,
shape: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFlexComponentsResult]func GetFlexComponents(ctx *Context, args *GetFlexComponentsArgs, opts ...InvokeOption) (*GetFlexComponentsResult, error)
func GetFlexComponentsOutput(ctx *Context, args *GetFlexComponentsOutputArgs, opts ...InvokeOption) GetFlexComponentsResultOutput> Note: This function is named GetFlexComponents in the Go SDK.
public static class GetFlexComponents
{
public static Task<GetFlexComponentsResult> InvokeAsync(GetFlexComponentsArgs args, InvokeOptions? opts = null)
public static Output<GetFlexComponentsResult> Invoke(GetFlexComponentsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFlexComponentsResult> getFlexComponents(GetFlexComponentsArgs args, InvokeOptions options)
public static Output<GetFlexComponentsResult> getFlexComponents(GetFlexComponentsArgs args, InvokeOptions options)
fn::invoke:
function: oci:Database/getFlexComponents:getFlexComponents
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The compartment OCID.
- Filters
List<Get
Flex Components Filter> - Name string
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- Shape string
- A filter to return only resources that belong to the entire shape name given. The match is not case sensitive.
- Compartment
Id string - The compartment OCID.
- Filters
[]Get
Flex Components Filter - Name string
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- Shape string
- A filter to return only resources that belong to the entire shape name given. The match is not case sensitive.
- compartment
Id String - The compartment OCID.
- filters
List<Get
Flex Components Filter> - name String
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- shape String
- A filter to return only resources that belong to the entire shape name given. The match is not case sensitive.
- compartment
Id string - The compartment OCID.
- filters
Get
Flex Components Filter[] - name string
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- shape string
- A filter to return only resources that belong to the entire shape name given. The match is not case sensitive.
- compartment_
id str - The compartment OCID.
- filters
Sequence[Get
Flex Components Filter] - name str
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- shape str
- A filter to return only resources that belong to the entire shape name given. The match is not case sensitive.
- compartment
Id String - The compartment OCID.
- filters List<Property Map>
- name String
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- shape String
- A filter to return only resources that belong to the entire shape name given. The match is not case sensitive.
getFlexComponents Result
The following output properties are available:
- Compartment
Id string - Flex
Component List<GetCollections Flex Components Flex Component Collection> - The list of flex_component_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Flex Components Filter> - Name string
- The name of the Flex Component used for the DB system.
- Shape string
- The name of the DB system shape for this Flex Component.
- Compartment
Id string - Flex
Component []GetCollections Flex Components Flex Component Collection - The list of flex_component_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Flex Components Filter - Name string
- The name of the Flex Component used for the DB system.
- Shape string
- The name of the DB system shape for this Flex Component.
- compartment
Id String - flex
Component List<GetCollections Flex Components Flex Component Collection> - The list of flex_component_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Flex Components Filter> - name String
- The name of the Flex Component used for the DB system.
- shape String
- The name of the DB system shape for this Flex Component.
- compartment
Id string - flex
Component GetCollections Flex Components Flex Component Collection[] - The list of flex_component_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Flex Components Filter[] - name string
- The name of the Flex Component used for the DB system.
- shape string
- The name of the DB system shape for this Flex Component.
- compartment_
id str - flex_
component_ Sequence[Getcollections Flex Components Flex Component Collection] - The list of flex_component_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[Get
Flex Components Filter] - name str
- The name of the Flex Component used for the DB system.
- shape str
- The name of the DB system shape for this Flex Component.
- compartment
Id String - flex
Component List<Property Map>Collections - The list of flex_component_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- name String
- The name of the Flex Component used for the DB system.
- shape String
- The name of the DB system shape for this Flex Component.
Supporting Types
GetFlexComponentsFilter
GetFlexComponentsFlexComponentCollection
GetFlexComponentsFlexComponentCollectionItem
- Available
Core intCount - The maximum number of CPU cores that can ben enabled on the DB Server for this Flex Component.
- Available
Db intStorage In Gbs - The maximum storage that can be enabled on the Storage Server for this Flex Component.
- Available
Local intStorage In Gbs - The maximum local storage that can be enabled on the DB Server for this Flex Component.
- Available
Memory intIn Gbs - The maximum memory size that can be enabled on the DB Server for this Flex Component.
- Compute
Model string - The compute model of the DB Server for this Flex Component.
- Description
Summary string - The description summary for this Flex Component.
- Hardware
Type string - The hardware type of the DB (Compute) or Storage (Cell) Server for this Flex Component.
- Minimum
Core intCount - The minimum number of CPU cores that can be enabled on the DB Server for this Flex Component.
- Name string
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- Runtime
Minimum intCore Count - The runtime minimum number of CPU cores that can be enabled for this Flex Component.
- Shape string
- A filter to return only resources that belong to the entire shape name given. The match is not case sensitive.
- Available
Core intCount - The maximum number of CPU cores that can ben enabled on the DB Server for this Flex Component.
- Available
Db intStorage In Gbs - The maximum storage that can be enabled on the Storage Server for this Flex Component.
- Available
Local intStorage In Gbs - The maximum local storage that can be enabled on the DB Server for this Flex Component.
- Available
Memory intIn Gbs - The maximum memory size that can be enabled on the DB Server for this Flex Component.
- Compute
Model string - The compute model of the DB Server for this Flex Component.
- Description
Summary string - The description summary for this Flex Component.
- Hardware
Type string - The hardware type of the DB (Compute) or Storage (Cell) Server for this Flex Component.
- Minimum
Core intCount - The minimum number of CPU cores that can be enabled on the DB Server for this Flex Component.
- Name string
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- Runtime
Minimum intCore Count - The runtime minimum number of CPU cores that can be enabled for this Flex Component.
- Shape string
- A filter to return only resources that belong to the entire shape name given. The match is not case sensitive.
- available
Core IntegerCount - The maximum number of CPU cores that can ben enabled on the DB Server for this Flex Component.
- available
Db IntegerStorage In Gbs - The maximum storage that can be enabled on the Storage Server for this Flex Component.
- available
Local IntegerStorage In Gbs - The maximum local storage that can be enabled on the DB Server for this Flex Component.
- available
Memory IntegerIn Gbs - The maximum memory size that can be enabled on the DB Server for this Flex Component.
- compute
Model String - The compute model of the DB Server for this Flex Component.
- description
Summary String - The description summary for this Flex Component.
- hardware
Type String - The hardware type of the DB (Compute) or Storage (Cell) Server for this Flex Component.
- minimum
Core IntegerCount - The minimum number of CPU cores that can be enabled on the DB Server for this Flex Component.
- name String
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- runtime
Minimum IntegerCore Count - The runtime minimum number of CPU cores that can be enabled for this Flex Component.
- shape String
- A filter to return only resources that belong to the entire shape name given. The match is not case sensitive.
- available
Core numberCount - The maximum number of CPU cores that can ben enabled on the DB Server for this Flex Component.
- available
Db numberStorage In Gbs - The maximum storage that can be enabled on the Storage Server for this Flex Component.
- available
Local numberStorage In Gbs - The maximum local storage that can be enabled on the DB Server for this Flex Component.
- available
Memory numberIn Gbs - The maximum memory size that can be enabled on the DB Server for this Flex Component.
- compute
Model string - The compute model of the DB Server for this Flex Component.
- description
Summary string - The description summary for this Flex Component.
- hardware
Type string - The hardware type of the DB (Compute) or Storage (Cell) Server for this Flex Component.
- minimum
Core numberCount - The minimum number of CPU cores that can be enabled on the DB Server for this Flex Component.
- name string
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- runtime
Minimum numberCore Count - The runtime minimum number of CPU cores that can be enabled for this Flex Component.
- shape string
- A filter to return only resources that belong to the entire shape name given. The match is not case sensitive.
- available_
core_ intcount - The maximum number of CPU cores that can ben enabled on the DB Server for this Flex Component.
- available_
db_ intstorage_ in_ gbs - The maximum storage that can be enabled on the Storage Server for this Flex Component.
- available_
local_ intstorage_ in_ gbs - The maximum local storage that can be enabled on the DB Server for this Flex Component.
- available_
memory_ intin_ gbs - The maximum memory size that can be enabled on the DB Server for this Flex Component.
- compute_
model str - The compute model of the DB Server for this Flex Component.
- description_
summary str - The description summary for this Flex Component.
- hardware_
type str - The hardware type of the DB (Compute) or Storage (Cell) Server for this Flex Component.
- minimum_
core_ intcount - The minimum number of CPU cores that can be enabled on the DB Server for this Flex Component.
- name str
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- runtime_
minimum_ intcore_ count - The runtime minimum number of CPU cores that can be enabled for this Flex Component.
- shape str
- A filter to return only resources that belong to the entire shape name given. The match is not case sensitive.
- available
Core NumberCount - The maximum number of CPU cores that can ben enabled on the DB Server for this Flex Component.
- available
Db NumberStorage In Gbs - The maximum storage that can be enabled on the Storage Server for this Flex Component.
- available
Local NumberStorage In Gbs - The maximum local storage that can be enabled on the DB Server for this Flex Component.
- available
Memory NumberIn Gbs - The maximum memory size that can be enabled on the DB Server for this Flex Component.
- compute
Model String - The compute model of the DB Server for this Flex Component.
- description
Summary String - The description summary for this Flex Component.
- hardware
Type String - The hardware type of the DB (Compute) or Storage (Cell) Server for this Flex Component.
- minimum
Core NumberCount - The minimum number of CPU cores that can be enabled on the DB Server for this Flex Component.
- name String
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- runtime
Minimum NumberCore Count - The runtime minimum number of CPU cores that can be enabled for this Flex Component.
- shape String
- A filter to return only resources that belong to the entire shape name given. The match is not case sensitive.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
