Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 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,
});
import pulumi
import pulumi_oci as oci
test_flex_components = oci.Database.get_flex_components(compartment_id=compartment_id,
name=flex_component_name)
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),
}, 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,
});
});
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)
.build());
}
}
variables:
testFlexComponents:
fn::invoke:
Function: oci:Database:getFlexComponents
Arguments:
compartmentId: ${compartmentId}
name: ${flexComponentName}
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:
- 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.
- 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.
- 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.
- 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.
- compartment_
id str - The compartment OCID.
- filters
Sequence[database.
Get Flex Components Filter] - name str
- A filter to return only resources that match the entire 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.
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.
- 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.
- 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.
- 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.
- compartment_
id str - flex_
component_ Sequence[database.collections Get Flex Components Flex Component Collection] - The list of flex_component_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[database.
Get Flex Components Filter] - name str
- The name of the Flex Component used for the DB system.
- 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.
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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.