1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getFlexComponents
Oracle Cloud Infrastructure v1.27.0 published on Friday, Mar 15, 2024 by Pulumi

oci.Database.getFlexComponents

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.27.0 published on Friday, Mar 15, 2024 by Pulumi

    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: _var.compartment_id,
        name: _var.flex_component_name,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_flex_components = oci.Database.get_flex_components(compartment_id=var["compartment_id"],
        name=var["flex_component_name"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/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: _var.Compartment_id,
    			Name:          pulumi.StringRef(_var.Flex_component_name),
    		}, 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 = @var.Compartment_id,
            Name = @var.Flex_component_name,
        });
    
    });
    
    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(var_.compartment_id())
                .name(var_.flex_component_name())
                .build());
    
        }
    }
    
    variables:
      testFlexComponents:
        fn::invoke:
          Function: oci:Database:getFlexComponents
          Arguments:
            compartmentId: ${var.compartment_id}
            name: ${var.flex_component_name}
    

    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[_database.GetFlexComponentsFilter]] = None,
                            name: 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[_database.GetFlexComponentsFilterArgs]]]] = None,
                            name: 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Database/getFlexComponents:getFlexComponents
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The compartment OCID.
    Filters List<GetFlexComponentsFilter>
    Name string
    A filter to return only resources that match the entire name given. The match is not case sensitive.
    CompartmentId string
    The compartment OCID.
    Filters []GetFlexComponentsFilter
    Name string
    A filter to return only resources that match the entire name given. The match is not case sensitive.
    compartmentId String
    The compartment OCID.
    filters List<GetFlexComponentsFilter>
    name String
    A filter to return only resources that match the entire name given. The match is not case sensitive.
    compartmentId string
    The compartment OCID.
    filters GetFlexComponentsFilter[]
    name string
    A filter to return only resources that match the entire name given. The match is not case sensitive.
    compartment_id str
    The compartment OCID.
    filters GetFlexComponentsFilter]
    name str
    A filter to return only resources that match the entire 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.

    getFlexComponents Result

    The following output properties are available:

    CompartmentId string
    FlexComponentCollections List<GetFlexComponentsFlexComponentCollection>
    The list of flex_component_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<GetFlexComponentsFilter>
    Name string
    The name of the Flex Component used for the DB system.
    CompartmentId string
    FlexComponentCollections []GetFlexComponentsFlexComponentCollection
    The list of flex_component_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetFlexComponentsFilter
    Name string
    The name of the Flex Component used for the DB system.
    compartmentId String
    flexComponentCollections List<GetFlexComponentsFlexComponentCollection>
    The list of flex_component_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetFlexComponentsFilter>
    name String
    The name of the Flex Component used for the DB system.
    compartmentId string
    flexComponentCollections GetFlexComponentsFlexComponentCollection[]
    The list of flex_component_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetFlexComponentsFilter[]
    name string
    The name of the Flex Component used for the DB system.
    compartment_id str
    flex_component_collections GetFlexComponentsFlexComponentCollection]
    The list of flex_component_collection.
    id str
    The provider-assigned unique ID for this managed resource.
    filters GetFlexComponentsFilter]
    name str
    The name of the Flex Component used for the DB system.
    compartmentId String
    flexComponentCollections List<Property Map>
    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.

    Supporting Types

    GetFlexComponentsFilter

    Name string
    A filter to return only resources that match the entire name given. The match is not case sensitive.
    Values List<string>
    Regex bool
    Name string
    A filter to return only resources that match the entire name given. The match is not case sensitive.
    Values []string
    Regex bool
    name String
    A filter to return only resources that match the entire name given. The match is not case sensitive.
    values List<String>
    regex Boolean
    name string
    A filter to return only resources that match the entire name given. The match is not case sensitive.
    values string[]
    regex boolean
    name str
    A filter to return only resources that match the entire name given. The match is not case sensitive.
    values Sequence[str]
    regex bool
    name String
    A filter to return only resources that match the entire name given. The match is not case sensitive.
    values List<String>
    regex Boolean

    GetFlexComponentsFlexComponentCollection

    GetFlexComponentsFlexComponentCollectionItem

    AvailableCoreCount int
    The maximum number of CPU cores that can ben enabled on the DB Server for this Flex Component.
    AvailableDbStorageInGbs int
    The maximum storage that can be enabled on the Storage Server for this Flex Component.
    MinimumCoreCount int
    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.
    AvailableCoreCount int
    The maximum number of CPU cores that can ben enabled on the DB Server for this Flex Component.
    AvailableDbStorageInGbs int
    The maximum storage that can be enabled on the Storage Server for this Flex Component.
    MinimumCoreCount int
    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.
    availableCoreCount Integer
    The maximum number of CPU cores that can ben enabled on the DB Server for this Flex Component.
    availableDbStorageInGbs Integer
    The maximum storage that can be enabled on the Storage Server for this Flex Component.
    minimumCoreCount Integer
    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.
    availableCoreCount number
    The maximum number of CPU cores that can ben enabled on the DB Server for this Flex Component.
    availableDbStorageInGbs number
    The maximum storage that can be enabled on the Storage Server for this Flex Component.
    minimumCoreCount number
    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.
    available_core_count int
    The maximum number of CPU cores that can ben enabled on the DB Server for this Flex Component.
    available_db_storage_in_gbs int
    The maximum storage that can be enabled on the Storage Server for this Flex Component.
    minimum_core_count int
    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.
    availableCoreCount Number
    The maximum number of CPU cores that can ben enabled on the DB Server for this Flex Component.
    availableDbStorageInGbs Number
    The maximum storage that can be enabled on the Storage Server for this Flex Component.
    minimumCoreCount Number
    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.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.27.0 published on Friday, Mar 15, 2024 by Pulumi