Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Database.getFlexComponents
Explore with Pulumi AI
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/v2/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:
- CompartmentId string
- The compartment OCID.
- Filters
List<GetFlex 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.
- CompartmentId string
- The compartment OCID.
- Filters
[]GetFlex 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.
- compartmentId String
- The compartment OCID.
- filters
List<GetFlex 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.
- compartmentId string
- The compartment OCID.
- filters
GetFlex 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[GetFlex 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.
- compartmentId 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:
- CompartmentId string
- FlexComponent 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<GetFlex 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.
- CompartmentId string
- FlexComponent []GetCollections Flex Components Flex Component Collection 
- The list of flex_component_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]GetFlex 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.
- compartmentId String
- flexComponent 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<GetFlex 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.
- compartmentId string
- flexComponent GetCollections Flex Components Flex Component Collection[] 
- The list of flex_component_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
GetFlex 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[GetFlex 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.
- compartmentId String
- flexComponent 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      
- AvailableCore intCount 
- The maximum number of CPU cores that can ben enabled on the DB Server for this Flex Component.
- AvailableDb intStorage In Gbs 
- The maximum storage that can be enabled on the Storage Server for this Flex Component.
- AvailableLocal intStorage In Gbs 
- The maximum local storage that can be enabled on the DB Server for this Flex Component.
- AvailableMemory intIn Gbs 
- The maximum memory size that can be enabled on the DB Server for this Flex Component.
- ComputeModel string
- The compute model of the DB Server for this Flex Component.
- DescriptionSummary string
- The description summary for this Flex Component.
- HardwareType string
- The hardware type of the DB (Compute) or Storage (Cell) Server for this Flex Component.
- MinimumCore 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.
- RuntimeMinimum 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.
- AvailableCore intCount 
- The maximum number of CPU cores that can ben enabled on the DB Server for this Flex Component.
- AvailableDb intStorage In Gbs 
- The maximum storage that can be enabled on the Storage Server for this Flex Component.
- AvailableLocal intStorage In Gbs 
- The maximum local storage that can be enabled on the DB Server for this Flex Component.
- AvailableMemory intIn Gbs 
- The maximum memory size that can be enabled on the DB Server for this Flex Component.
- ComputeModel string
- The compute model of the DB Server for this Flex Component.
- DescriptionSummary string
- The description summary for this Flex Component.
- HardwareType string
- The hardware type of the DB (Compute) or Storage (Cell) Server for this Flex Component.
- MinimumCore 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.
- RuntimeMinimum 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.
- availableCore IntegerCount 
- The maximum number of CPU cores that can ben enabled on the DB Server for this Flex Component.
- availableDb IntegerStorage In Gbs 
- The maximum storage that can be enabled on the Storage Server for this Flex Component.
- availableLocal IntegerStorage In Gbs 
- The maximum local storage that can be enabled on the DB Server for this Flex Component.
- availableMemory IntegerIn Gbs 
- The maximum memory size that can be enabled on the DB Server for this Flex Component.
- computeModel String
- The compute model of the DB Server for this Flex Component.
- descriptionSummary String
- The description summary for this Flex Component.
- hardwareType String
- The hardware type of the DB (Compute) or Storage (Cell) Server for this Flex Component.
- minimumCore 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.
- runtimeMinimum 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.
- availableCore numberCount 
- The maximum number of CPU cores that can ben enabled on the DB Server for this Flex Component.
- availableDb numberStorage In Gbs 
- The maximum storage that can be enabled on the Storage Server for this Flex Component.
- availableLocal numberStorage In Gbs 
- The maximum local storage that can be enabled on the DB Server for this Flex Component.
- availableMemory numberIn Gbs 
- The maximum memory size that can be enabled on the DB Server for this Flex Component.
- computeModel string
- The compute model of the DB Server for this Flex Component.
- descriptionSummary string
- The description summary for this Flex Component.
- hardwareType string
- The hardware type of the DB (Compute) or Storage (Cell) Server for this Flex Component.
- minimumCore 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.
- runtimeMinimum 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.
- availableCore NumberCount 
- The maximum number of CPU cores that can ben enabled on the DB Server for this Flex Component.
- availableDb NumberStorage In Gbs 
- The maximum storage that can be enabled on the Storage Server for this Flex Component.
- availableLocal NumberStorage In Gbs 
- The maximum local storage that can be enabled on the DB Server for this Flex Component.
- availableMemory NumberIn Gbs 
- The maximum memory size that can be enabled on the DB Server for this Flex Component.
- computeModel String
- The compute model of the DB Server for this Flex Component.
- descriptionSummary String
- The description summary for this Flex Component.
- hardwareType String
- The hardware type of the DB (Compute) or Storage (Cell) Server for this Flex Component.
- minimumCore 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.
- runtimeMinimum 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.