Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.Psql.getDefaultConfigurations
This data source provides the list of Default Configurations in Oracle Cloud Infrastructure Psql service.
Returns a list of default configurations.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDefaultConfigurations = oci.Psql.getDefaultConfigurations({
configurationId: testConfiguration.id,
dbVersion: defaultConfigurationDbVersion,
displayName: defaultConfigurationDisplayName,
instanceMemorySizeInGbs: defaultConfigurationInstanceMemorySizeInGbs,
instanceOcpuCount: defaultConfigurationInstanceOcpuCount,
shape: defaultConfigurationShape,
state: defaultConfigurationState,
});
import pulumi
import pulumi_oci as oci
test_default_configurations = oci.Psql.get_default_configurations(configuration_id=test_configuration["id"],
db_version=default_configuration_db_version,
display_name=default_configuration_display_name,
instance_memory_size_in_gbs=default_configuration_instance_memory_size_in_gbs,
instance_ocpu_count=default_configuration_instance_ocpu_count,
shape=default_configuration_shape,
state=default_configuration_state)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/psql"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := psql.GetDefaultConfigurations(ctx, &psql.GetDefaultConfigurationsArgs{
ConfigurationId: pulumi.StringRef(testConfiguration.Id),
DbVersion: pulumi.StringRef(defaultConfigurationDbVersion),
DisplayName: pulumi.StringRef(defaultConfigurationDisplayName),
InstanceMemorySizeInGbs: pulumi.IntRef(defaultConfigurationInstanceMemorySizeInGbs),
InstanceOcpuCount: pulumi.IntRef(defaultConfigurationInstanceOcpuCount),
Shape: pulumi.StringRef(defaultConfigurationShape),
State: pulumi.StringRef(defaultConfigurationState),
}, 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 testDefaultConfigurations = Oci.Psql.GetDefaultConfigurations.Invoke(new()
{
ConfigurationId = testConfiguration.Id,
DbVersion = defaultConfigurationDbVersion,
DisplayName = defaultConfigurationDisplayName,
InstanceMemorySizeInGbs = defaultConfigurationInstanceMemorySizeInGbs,
InstanceOcpuCount = defaultConfigurationInstanceOcpuCount,
Shape = defaultConfigurationShape,
State = defaultConfigurationState,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Psql.PsqlFunctions;
import com.pulumi.oci.Psql.inputs.GetDefaultConfigurationsArgs;
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 testDefaultConfigurations = PsqlFunctions.getDefaultConfigurations(GetDefaultConfigurationsArgs.builder()
.configurationId(testConfiguration.id())
.dbVersion(defaultConfigurationDbVersion)
.displayName(defaultConfigurationDisplayName)
.instanceMemorySizeInGbs(defaultConfigurationInstanceMemorySizeInGbs)
.instanceOcpuCount(defaultConfigurationInstanceOcpuCount)
.shape(defaultConfigurationShape)
.state(defaultConfigurationState)
.build());
}
}
variables:
testDefaultConfigurations:
fn::invoke:
function: oci:Psql:getDefaultConfigurations
arguments:
configurationId: ${testConfiguration.id}
dbVersion: ${defaultConfigurationDbVersion}
displayName: ${defaultConfigurationDisplayName}
instanceMemorySizeInGbs: ${defaultConfigurationInstanceMemorySizeInGbs}
instanceOcpuCount: ${defaultConfigurationInstanceOcpuCount}
shape: ${defaultConfigurationShape}
state: ${defaultConfigurationState}
Using getDefaultConfigurations
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 getDefaultConfigurations(args: GetDefaultConfigurationsArgs, opts?: InvokeOptions): Promise<GetDefaultConfigurationsResult>
function getDefaultConfigurationsOutput(args: GetDefaultConfigurationsOutputArgs, opts?: InvokeOptions): Output<GetDefaultConfigurationsResult>def get_default_configurations(configuration_id: Optional[str] = None,
db_version: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[GetDefaultConfigurationsFilter]] = None,
instance_memory_size_in_gbs: Optional[int] = None,
instance_ocpu_count: Optional[int] = None,
shape: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDefaultConfigurationsResult
def get_default_configurations_output(configuration_id: Optional[pulumi.Input[str]] = None,
db_version: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDefaultConfigurationsFilterArgs]]]] = None,
instance_memory_size_in_gbs: Optional[pulumi.Input[int]] = None,
instance_ocpu_count: Optional[pulumi.Input[int]] = None,
shape: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDefaultConfigurationsResult]func GetDefaultConfigurations(ctx *Context, args *GetDefaultConfigurationsArgs, opts ...InvokeOption) (*GetDefaultConfigurationsResult, error)
func GetDefaultConfigurationsOutput(ctx *Context, args *GetDefaultConfigurationsOutputArgs, opts ...InvokeOption) GetDefaultConfigurationsResultOutput> Note: This function is named GetDefaultConfigurations in the Go SDK.
public static class GetDefaultConfigurations
{
public static Task<GetDefaultConfigurationsResult> InvokeAsync(GetDefaultConfigurationsArgs args, InvokeOptions? opts = null)
public static Output<GetDefaultConfigurationsResult> Invoke(GetDefaultConfigurationsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDefaultConfigurationsResult> getDefaultConfigurations(GetDefaultConfigurationsArgs args, InvokeOptions options)
public static Output<GetDefaultConfigurationsResult> getDefaultConfigurations(GetDefaultConfigurationsArgs args, InvokeOptions options)
fn::invoke:
function: oci:Psql/getDefaultConfigurations:getDefaultConfigurations
arguments:
# arguments dictionaryThe following arguments are supported:
- Configuration
Id string - A unique identifier for the configuration.
- Db
Version string - Version of the PostgreSQL database, such as 14.9.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Default Configurations Filter> - Instance
Memory intSize In Gbs - The instance memory size in GBs for the configuration.
- Instance
Ocpu intCount - The instance ocpu count for the configuration.
- Shape string
- The compute name of the shape for the configuration.
- State string
- A filter to return only resources if their
lifecycleStatematches the givenlifecycleState.
- Configuration
Id string - A unique identifier for the configuration.
- Db
Version string - Version of the PostgreSQL database, such as 14.9.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Default Configurations Filter - Instance
Memory intSize In Gbs - The instance memory size in GBs for the configuration.
- Instance
Ocpu intCount - The instance ocpu count for the configuration.
- Shape string
- The compute name of the shape for the configuration.
- State string
- A filter to return only resources if their
lifecycleStatematches the givenlifecycleState.
- configuration
Id String - A unique identifier for the configuration.
- db
Version String - Version of the PostgreSQL database, such as 14.9.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
List<Get
Default Configurations Filter> - instance
Memory IntegerSize In Gbs - The instance memory size in GBs for the configuration.
- instance
Ocpu IntegerCount - The instance ocpu count for the configuration.
- shape String
- The compute name of the shape for the configuration.
- state String
- A filter to return only resources if their
lifecycleStatematches the givenlifecycleState.
- configuration
Id string - A unique identifier for the configuration.
- db
Version string - Version of the PostgreSQL database, such as 14.9.
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Get
Default Configurations Filter[] - instance
Memory numberSize In Gbs - The instance memory size in GBs for the configuration.
- instance
Ocpu numberCount - The instance ocpu count for the configuration.
- shape string
- The compute name of the shape for the configuration.
- state string
- A filter to return only resources if their
lifecycleStatematches the givenlifecycleState.
- configuration_
id str - A unique identifier for the configuration.
- db_
version str - Version of the PostgreSQL database, such as 14.9.
- display_
name str - A filter to return only resources that match the entire display name given.
- filters
Sequence[Get
Default Configurations Filter] - instance_
memory_ intsize_ in_ gbs - The instance memory size in GBs for the configuration.
- instance_
ocpu_ intcount - The instance ocpu count for the configuration.
- shape str
- The compute name of the shape for the configuration.
- state str
- A filter to return only resources if their
lifecycleStatematches the givenlifecycleState.
- configuration
Id String - A unique identifier for the configuration.
- db
Version String - Version of the PostgreSQL database, such as 14.9.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- instance
Memory NumberSize In Gbs - The instance memory size in GBs for the configuration.
- instance
Ocpu NumberCount - The instance ocpu count for the configuration.
- shape String
- The compute name of the shape for the configuration.
- state String
- A filter to return only resources if their
lifecycleStatematches the givenlifecycleState.
getDefaultConfigurations Result
The following output properties are available:
- Default
Configuration List<GetCollections Default Configurations Default Configuration Collection> - The list of default_configuration_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Shape string
- The name of the shape for the configuration.
- Configuration
Id string - Db
Version string - Version of the PostgreSQL database.
- Display
Name string - A user-friendly display name for the configuration.
- Filters
List<Get
Default Configurations Filter> - Instance
Memory intSize In Gbs - Memory size in gigabytes with 1GB increment.
- Instance
Ocpu intCount - CPU core count.
- State string
- The current state of the configuration.
- Default
Configuration []GetCollections Default Configurations Default Configuration Collection - The list of default_configuration_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Shape string
- The name of the shape for the configuration.
- Configuration
Id string - Db
Version string - Version of the PostgreSQL database.
- Display
Name string - A user-friendly display name for the configuration.
- Filters
[]Get
Default Configurations Filter - Instance
Memory intSize In Gbs - Memory size in gigabytes with 1GB increment.
- Instance
Ocpu intCount - CPU core count.
- State string
- The current state of the configuration.
- default
Configuration List<GetCollections Default Configurations Default Configuration Collection> - The list of default_configuration_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- shape String
- The name of the shape for the configuration.
- configuration
Id String - db
Version String - Version of the PostgreSQL database.
- display
Name String - A user-friendly display name for the configuration.
- filters
List<Get
Default Configurations Filter> - instance
Memory IntegerSize In Gbs - Memory size in gigabytes with 1GB increment.
- instance
Ocpu IntegerCount - CPU core count.
- state String
- The current state of the configuration.
- default
Configuration GetCollections Default Configurations Default Configuration Collection[] - The list of default_configuration_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- shape string
- The name of the shape for the configuration.
- configuration
Id string - db
Version string - Version of the PostgreSQL database.
- display
Name string - A user-friendly display name for the configuration.
- filters
Get
Default Configurations Filter[] - instance
Memory numberSize In Gbs - Memory size in gigabytes with 1GB increment.
- instance
Ocpu numberCount - CPU core count.
- state string
- The current state of the configuration.
- default_
configuration_ Sequence[Getcollections Default Configurations Default Configuration Collection] - The list of default_configuration_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- shape str
- The name of the shape for the configuration.
- configuration_
id str - db_
version str - Version of the PostgreSQL database.
- display_
name str - A user-friendly display name for the configuration.
- filters
Sequence[Get
Default Configurations Filter] - instance_
memory_ intsize_ in_ gbs - Memory size in gigabytes with 1GB increment.
- instance_
ocpu_ intcount - CPU core count.
- state str
- The current state of the configuration.
- default
Configuration List<Property Map>Collections - The list of default_configuration_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- shape String
- The name of the shape for the configuration.
- configuration
Id String - db
Version String - Version of the PostgreSQL database.
- display
Name String - A user-friendly display name for the configuration.
- filters List<Property Map>
- instance
Memory NumberSize In Gbs - Memory size in gigabytes with 1GB increment.
- instance
Ocpu NumberCount - CPU core count.
- state String
- The current state of the configuration.
Supporting Types
GetDefaultConfigurationsDefaultConfigurationCollection
- Items
List<Get
Default Configurations Default Configuration Collection Item> - List of ConfigParms object.
- Items
[]Get
Default Configurations Default Configuration Collection Item - List of ConfigParms object.
- items
List<Get
Default Configurations Default Configuration Collection Item> - List of ConfigParms object.
- items
Get
Default Configurations Default Configuration Collection Item[] - List of ConfigParms object.
- items
Sequence[Get
Default Configurations Default Configuration Collection Item] - List of ConfigParms object.
- items List<Property Map>
- List of ConfigParms object.
GetDefaultConfigurationsDefaultConfigurationCollectionItem
- Compatible
Shapes List<string> - Indicates the collection of compatible shapes for this configuration.
- Configuration
Details List<GetDefault Configurations Default Configuration Collection Item Configuration Detail> - List of default configuration values for databases.
- Db
Version string - Version of the PostgreSQL database, such as 14.9.
- Description string
- A description for the configuration.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Id string
- A unique identifier for the configuration.
- Instance
Memory intSize In Gbs - The instance memory size in GBs for the configuration.
- Instance
Ocpu intCount - The instance ocpu count for the configuration.
- Is
Flexible bool - True if the configuration supports flexible shapes, false otherwise.
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Shape string
- The compute name of the shape for the configuration.
- State string
- A filter to return only resources if their
lifecycleStatematches the givenlifecycleState. - Time
Created string - The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- Compatible
Shapes []string - Indicates the collection of compatible shapes for this configuration.
- Configuration
Details []GetDefault Configurations Default Configuration Collection Item Configuration Detail - List of default configuration values for databases.
- Db
Version string - Version of the PostgreSQL database, such as 14.9.
- Description string
- A description for the configuration.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Id string
- A unique identifier for the configuration.
- Instance
Memory intSize In Gbs - The instance memory size in GBs for the configuration.
- Instance
Ocpu intCount - The instance ocpu count for the configuration.
- Is
Flexible bool - True if the configuration supports flexible shapes, false otherwise.
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Shape string
- The compute name of the shape for the configuration.
- State string
- A filter to return only resources if their
lifecycleStatematches the givenlifecycleState. - Time
Created string - The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- compatible
Shapes List<String> - Indicates the collection of compatible shapes for this configuration.
- configuration
Details List<GetDefault Configurations Default Configuration Collection Item Configuration Detail> - List of default configuration values for databases.
- db
Version String - Version of the PostgreSQL database, such as 14.9.
- description String
- A description for the configuration.
- display
Name String - A filter to return only resources that match the entire display name given.
- id String
- A unique identifier for the configuration.
- instance
Memory IntegerSize In Gbs - The instance memory size in GBs for the configuration.
- instance
Ocpu IntegerCount - The instance ocpu count for the configuration.
- is
Flexible Boolean - True if the configuration supports flexible shapes, false otherwise.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- shape String
- The compute name of the shape for the configuration.
- state String
- A filter to return only resources if their
lifecycleStatematches the givenlifecycleState. - time
Created String - The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- compatible
Shapes string[] - Indicates the collection of compatible shapes for this configuration.
- configuration
Details GetDefault Configurations Default Configuration Collection Item Configuration Detail[] - List of default configuration values for databases.
- db
Version string - Version of the PostgreSQL database, such as 14.9.
- description string
- A description for the configuration.
- display
Name string - A filter to return only resources that match the entire display name given.
- id string
- A unique identifier for the configuration.
- instance
Memory numberSize In Gbs - The instance memory size in GBs for the configuration.
- instance
Ocpu numberCount - The instance ocpu count for the configuration.
- is
Flexible boolean - True if the configuration supports flexible shapes, false otherwise.
- lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- shape string
- The compute name of the shape for the configuration.
- state string
- A filter to return only resources if their
lifecycleStatematches the givenlifecycleState. - time
Created string - The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- compatible_
shapes Sequence[str] - Indicates the collection of compatible shapes for this configuration.
- configuration_
details Sequence[GetDefault Configurations Default Configuration Collection Item Configuration Detail] - List of default configuration values for databases.
- db_
version str - Version of the PostgreSQL database, such as 14.9.
- description str
- A description for the configuration.
- display_
name str - A filter to return only resources that match the entire display name given.
- id str
- A unique identifier for the configuration.
- instance_
memory_ intsize_ in_ gbs - The instance memory size in GBs for the configuration.
- instance_
ocpu_ intcount - The instance ocpu count for the configuration.
- is_
flexible bool - True if the configuration supports flexible shapes, false otherwise.
- lifecycle_
details str - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- shape str
- The compute name of the shape for the configuration.
- state str
- A filter to return only resources if their
lifecycleStatematches the givenlifecycleState. - time_
created str - The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- compatible
Shapes List<String> - Indicates the collection of compatible shapes for this configuration.
- configuration
Details List<Property Map> - List of default configuration values for databases.
- db
Version String - Version of the PostgreSQL database, such as 14.9.
- description String
- A description for the configuration.
- display
Name String - A filter to return only resources that match the entire display name given.
- id String
- A unique identifier for the configuration.
- instance
Memory NumberSize In Gbs - The instance memory size in GBs for the configuration.
- instance
Ocpu NumberCount - The instance ocpu count for the configuration.
- is
Flexible Boolean - True if the configuration supports flexible shapes, false otherwise.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- shape String
- The compute name of the shape for the configuration.
- state String
- A filter to return only resources if their
lifecycleStatematches the givenlifecycleState. - time
Created String - The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
GetDefaultConfigurationsDefaultConfigurationCollectionItemConfigurationDetail
- Items
List<Get
Default Configurations Default Configuration Collection Item Configuration Detail Item> - List of ConfigParms object.
- Items
[]Get
Default Configurations Default Configuration Collection Item Configuration Detail Item - List of ConfigParms object.
- items
List<Get
Default Configurations Default Configuration Collection Item Configuration Detail Item> - List of ConfigParms object.
- items
Get
Default Configurations Default Configuration Collection Item Configuration Detail Item[] - List of ConfigParms object.
- items
Sequence[Get
Default Configurations Default Configuration Collection Item Configuration Detail Item] - List of ConfigParms object.
- items List<Property Map>
- List of ConfigParms object.
GetDefaultConfigurationsDefaultConfigurationCollectionItemConfigurationDetailItem
- Allowed
Values string - Range or list of allowed values.
- Config
Key string - The configuration variable name.
- Data
Type string - Data type of the variable.
- Default
Config stringValue - Default value for the variable.
- Description string
- A description for the configuration.
- Is
Overridable bool - Whether the value can be overridden or not.
- Is
Restart boolRequired - If true, modifying this configuration value will require a restart.
- Allowed
Values string - Range or list of allowed values.
- Config
Key string - The configuration variable name.
- Data
Type string - Data type of the variable.
- Default
Config stringValue - Default value for the variable.
- Description string
- A description for the configuration.
- Is
Overridable bool - Whether the value can be overridden or not.
- Is
Restart boolRequired - If true, modifying this configuration value will require a restart.
- allowed
Values String - Range or list of allowed values.
- config
Key String - The configuration variable name.
- data
Type String - Data type of the variable.
- default
Config StringValue - Default value for the variable.
- description String
- A description for the configuration.
- is
Overridable Boolean - Whether the value can be overridden or not.
- is
Restart BooleanRequired - If true, modifying this configuration value will require a restart.
- allowed
Values string - Range or list of allowed values.
- config
Key string - The configuration variable name.
- data
Type string - Data type of the variable.
- default
Config stringValue - Default value for the variable.
- description string
- A description for the configuration.
- is
Overridable boolean - Whether the value can be overridden or not.
- is
Restart booleanRequired - If true, modifying this configuration value will require a restart.
- allowed_
values str - Range or list of allowed values.
- config_
key str - The configuration variable name.
- data_
type str - Data type of the variable.
- default_
config_ strvalue - Default value for the variable.
- description str
- A description for the configuration.
- is_
overridable bool - Whether the value can be overridden or not.
- is_
restart_ boolrequired - If true, modifying this configuration value will require a restart.
- allowed
Values String - Range or list of allowed values.
- config
Key String - The configuration variable name.
- data
Type String - Data type of the variable.
- default
Config StringValue - Default value for the variable.
- description String
- A description for the configuration.
- is
Overridable Boolean - Whether the value can be overridden or not.
- is
Restart BooleanRequired - If true, modifying this configuration value will require a restart.
GetDefaultConfigurationsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
