Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Psql.getDefaultConfiguration
Explore with Pulumi AI
This data source provides details about a specific Default Configuration resource in Oracle Cloud Infrastructure Psql service.
Gets a default configuration by identifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDefaultConfiguration = oci.Psql.getDefaultConfiguration({
    defaultConfigurationId: testDefaultConfigurationOciPsqlDefaultConfiguration.id,
});
import pulumi
import pulumi_oci as oci
test_default_configuration = oci.Psql.get_default_configuration(default_configuration_id=test_default_configuration_oci_psql_default_configuration["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/psql"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := psql.GetDefaultConfiguration(ctx, &psql.GetDefaultConfigurationArgs{
			DefaultConfigurationId: testDefaultConfigurationOciPsqlDefaultConfiguration.Id,
		}, 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 testDefaultConfiguration = Oci.Psql.GetDefaultConfiguration.Invoke(new()
    {
        DefaultConfigurationId = testDefaultConfigurationOciPsqlDefaultConfiguration.Id,
    });
});
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.GetDefaultConfigurationArgs;
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 testDefaultConfiguration = PsqlFunctions.getDefaultConfiguration(GetDefaultConfigurationArgs.builder()
            .defaultConfigurationId(testDefaultConfigurationOciPsqlDefaultConfiguration.id())
            .build());
    }
}
variables:
  testDefaultConfiguration:
    fn::invoke:
      function: oci:Psql:getDefaultConfiguration
      arguments:
        defaultConfigurationId: ${testDefaultConfigurationOciPsqlDefaultConfiguration.id}
Using getDefaultConfiguration
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 getDefaultConfiguration(args: GetDefaultConfigurationArgs, opts?: InvokeOptions): Promise<GetDefaultConfigurationResult>
function getDefaultConfigurationOutput(args: GetDefaultConfigurationOutputArgs, opts?: InvokeOptions): Output<GetDefaultConfigurationResult>def get_default_configuration(default_configuration_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetDefaultConfigurationResult
def get_default_configuration_output(default_configuration_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetDefaultConfigurationResult]func GetDefaultConfiguration(ctx *Context, args *GetDefaultConfigurationArgs, opts ...InvokeOption) (*GetDefaultConfigurationResult, error)
func GetDefaultConfigurationOutput(ctx *Context, args *GetDefaultConfigurationOutputArgs, opts ...InvokeOption) GetDefaultConfigurationResultOutput> Note: This function is named GetDefaultConfiguration in the Go SDK.
public static class GetDefaultConfiguration 
{
    public static Task<GetDefaultConfigurationResult> InvokeAsync(GetDefaultConfigurationArgs args, InvokeOptions? opts = null)
    public static Output<GetDefaultConfigurationResult> Invoke(GetDefaultConfigurationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDefaultConfigurationResult> getDefaultConfiguration(GetDefaultConfigurationArgs args, InvokeOptions options)
public static Output<GetDefaultConfigurationResult> getDefaultConfiguration(GetDefaultConfigurationArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Psql/getDefaultConfiguration:getDefaultConfiguration
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DefaultConfiguration stringId 
- A unique identifier for the configuration.
- DefaultConfiguration stringId 
- A unique identifier for the configuration.
- defaultConfiguration StringId 
- A unique identifier for the configuration.
- defaultConfiguration stringId 
- A unique identifier for the configuration.
- default_configuration_ strid 
- A unique identifier for the configuration.
- defaultConfiguration StringId 
- A unique identifier for the configuration.
getDefaultConfiguration Result
The following output properties are available:
- ConfigurationDetails List<GetDefault Configuration Configuration Detail> 
- List of default configuration values for databases.
- DbVersion string
- Version of the PostgreSQL database.
- DefaultConfiguration stringId 
- Description string
- A description for the configuration.
- DisplayName string
- A user-friendly display name for the configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- InstanceMemory intSize In Gbs 
- Memory size in gigabytes with 1GB increment.
- InstanceOcpu intCount 
- CPU core count.
- IsFlexible bool
- True if the configuration supports flexible shapes, false otherwise.
- LifecycleDetails 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 name of the shape for the configuration. Example: VM.Standard.E4.Flex
- State string
- The current state of the configuration.
- TimeCreated string
- The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
- ConfigurationDetails []GetDefault Configuration Configuration Detail 
- List of default configuration values for databases.
- DbVersion string
- Version of the PostgreSQL database.
- DefaultConfiguration stringId 
- Description string
- A description for the configuration.
- DisplayName string
- A user-friendly display name for the configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- InstanceMemory intSize In Gbs 
- Memory size in gigabytes with 1GB increment.
- InstanceOcpu intCount 
- CPU core count.
- IsFlexible bool
- True if the configuration supports flexible shapes, false otherwise.
- LifecycleDetails 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 name of the shape for the configuration. Example: VM.Standard.E4.Flex
- State string
- The current state of the configuration.
- TimeCreated string
- The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
- configurationDetails List<GetDefault Configuration Configuration Detail> 
- List of default configuration values for databases.
- dbVersion String
- Version of the PostgreSQL database.
- defaultConfiguration StringId 
- description String
- A description for the configuration.
- displayName String
- A user-friendly display name for the configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- instanceMemory IntegerSize In Gbs 
- Memory size in gigabytes with 1GB increment.
- instanceOcpu IntegerCount 
- CPU core count.
- isFlexible Boolean
- True if the configuration supports flexible shapes, false otherwise.
- lifecycleDetails 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 name of the shape for the configuration. Example: VM.Standard.E4.Flex
- state String
- The current state of the configuration.
- timeCreated String
- The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
- configurationDetails GetDefault Configuration Configuration Detail[] 
- List of default configuration values for databases.
- dbVersion string
- Version of the PostgreSQL database.
- defaultConfiguration stringId 
- description string
- A description for the configuration.
- displayName string
- A user-friendly display name for the configuration.
- id string
- The provider-assigned unique ID for this managed resource.
- instanceMemory numberSize In Gbs 
- Memory size in gigabytes with 1GB increment.
- instanceOcpu numberCount 
- CPU core count.
- isFlexible boolean
- True if the configuration supports flexible shapes, false otherwise.
- lifecycleDetails 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 name of the shape for the configuration. Example: VM.Standard.E4.Flex
- state string
- The current state of the configuration.
- timeCreated string
- The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
- configuration_details Sequence[GetDefault Configuration Configuration Detail] 
- List of default configuration values for databases.
- db_version str
- Version of the PostgreSQL database.
- default_configuration_ strid 
- description str
- A description for the configuration.
- display_name str
- A user-friendly display name for the configuration.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_memory_ intsize_ in_ gbs 
- Memory size in gigabytes with 1GB increment.
- instance_ocpu_ intcount 
- CPU core count.
- 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 name of the shape for the configuration. Example: VM.Standard.E4.Flex
- state str
- The current state of the configuration.
- 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
- configurationDetails List<Property Map>
- List of default configuration values for databases.
- dbVersion String
- Version of the PostgreSQL database.
- defaultConfiguration StringId 
- description String
- A description for the configuration.
- displayName String
- A user-friendly display name for the configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- instanceMemory NumberSize In Gbs 
- Memory size in gigabytes with 1GB increment.
- instanceOcpu NumberCount 
- CPU core count.
- isFlexible Boolean
- True if the configuration supports flexible shapes, false otherwise.
- lifecycleDetails 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 name of the shape for the configuration. Example: VM.Standard.E4.Flex
- state String
- The current state of the configuration.
- timeCreated String
- The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
Supporting Types
GetDefaultConfigurationConfigurationDetail    
- Items
List<GetDefault Configuration Configuration Detail Item> 
- List of ConfigParms object.
- Items
[]GetDefault Configuration Configuration Detail Item 
- List of ConfigParms object.
- items
List<GetDefault Configuration Configuration Detail Item> 
- List of ConfigParms object.
- items
GetDefault Configuration Configuration Detail Item[] 
- List of ConfigParms object.
- items
Sequence[GetDefault Configuration Configuration Detail Item] 
- List of ConfigParms object.
- items List<Property Map>
- List of ConfigParms object.
GetDefaultConfigurationConfigurationDetailItem     
- AllowedValues string
- Range or list of allowed values.
- ConfigKey string
- The configuration variable name.
- DataType string
- Data type of the variable.
- DefaultConfig stringValue 
- Default value for the variable.
- Description string
- A description for the configuration.
- IsOverridable bool
- Whether the value can be overridden or not.
- IsRestart boolRequired 
- If true, modifying this configuration value will require a restart.
- AllowedValues string
- Range or list of allowed values.
- ConfigKey string
- The configuration variable name.
- DataType string
- Data type of the variable.
- DefaultConfig stringValue 
- Default value for the variable.
- Description string
- A description for the configuration.
- IsOverridable bool
- Whether the value can be overridden or not.
- IsRestart boolRequired 
- If true, modifying this configuration value will require a restart.
- allowedValues String
- Range or list of allowed values.
- configKey String
- The configuration variable name.
- dataType String
- Data type of the variable.
- defaultConfig StringValue 
- Default value for the variable.
- description String
- A description for the configuration.
- isOverridable Boolean
- Whether the value can be overridden or not.
- isRestart BooleanRequired 
- If true, modifying this configuration value will require a restart.
- allowedValues string
- Range or list of allowed values.
- configKey string
- The configuration variable name.
- dataType string
- Data type of the variable.
- defaultConfig stringValue 
- Default value for the variable.
- description string
- A description for the configuration.
- isOverridable boolean
- Whether the value can be overridden or not.
- isRestart 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.
- allowedValues String
- Range or list of allowed values.
- configKey String
- The configuration variable name.
- dataType String
- Data type of the variable.
- defaultConfig StringValue 
- Default value for the variable.
- description String
- A description for the configuration.
- isOverridable Boolean
- Whether the value can be overridden or not.
- isRestart BooleanRequired 
- If true, modifying this configuration value will require a restart.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.