Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Psql.getConfiguration
Explore with Pulumi AI
This data source provides details about a specific Configuration resource in Oracle Cloud Infrastructure Psql service.
Gets a configuration by identifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testConfiguration = oci.Psql.getConfiguration({
    configurationId: testConfigurationOciPsqlConfiguration.id,
});
import pulumi
import pulumi_oci as oci
test_configuration = oci.Psql.get_configuration(configuration_id=test_configuration_oci_psql_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.GetConfiguration(ctx, &psql.GetConfigurationArgs{
			ConfigurationId: testConfigurationOciPsqlConfiguration.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 testConfiguration = Oci.Psql.GetConfiguration.Invoke(new()
    {
        ConfigurationId = testConfigurationOciPsqlConfiguration.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.GetConfigurationArgs;
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 testConfiguration = PsqlFunctions.getConfiguration(GetConfigurationArgs.builder()
            .configurationId(testConfigurationOciPsqlConfiguration.id())
            .build());
    }
}
variables:
  testConfiguration:
    fn::invoke:
      function: oci:Psql:getConfiguration
      arguments:
        configurationId: ${testConfigurationOciPsqlConfiguration.id}
Using getConfiguration
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 getConfiguration(args: GetConfigurationArgs, opts?: InvokeOptions): Promise<GetConfigurationResult>
function getConfigurationOutput(args: GetConfigurationOutputArgs, opts?: InvokeOptions): Output<GetConfigurationResult>def get_configuration(configuration_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetConfigurationResult
def get_configuration_output(configuration_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetConfigurationResult]func LookupConfiguration(ctx *Context, args *LookupConfigurationArgs, opts ...InvokeOption) (*LookupConfigurationResult, error)
func LookupConfigurationOutput(ctx *Context, args *LookupConfigurationOutputArgs, opts ...InvokeOption) LookupConfigurationResultOutput> Note: This function is named LookupConfiguration in the Go SDK.
public static class GetConfiguration 
{
    public static Task<GetConfigurationResult> InvokeAsync(GetConfigurationArgs args, InvokeOptions? opts = null)
    public static Output<GetConfigurationResult> Invoke(GetConfigurationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetConfigurationResult> getConfiguration(GetConfigurationArgs args, InvokeOptions options)
public static Output<GetConfigurationResult> getConfiguration(GetConfigurationArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Psql/getConfiguration:getConfiguration
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ConfigurationId string
- A unique identifier for the configuration.
- ConfigurationId string
- A unique identifier for the configuration.
- configurationId String
- A unique identifier for the configuration.
- configurationId string
- A unique identifier for the configuration.
- configuration_id str
- A unique identifier for the configuration.
- configurationId String
- A unique identifier for the configuration.
getConfiguration Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment that contains the configuration.
- ConfigType string
- The type of configuration. Either user-created or a default configuration.
- ConfigurationDetails List<GetConfiguration Configuration Detail> 
- List of configuration details.
- ConfigurationId string
- DbConfiguration List<GetOverrides Configuration Db Configuration Override> 
- DbVersion string
- Version of the PostgreSQL database.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Description string
- A description for the configuration.
- DisplayName string
- A user-friendly display name for the configuration. Avoid entering confidential information.
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Id string
- A unique identifier for the configuration. Immutable on creation.
- InstanceMemory intSize In Gbs 
- Memory size in gigabytes with 1GB increment.
- InstanceOcpu intCount 
- CPU core count.
- IsFlexible bool
- Whether the configuration supports flexible shapes.
- 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.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
- CompartmentId string
- The OCID of the compartment that contains the configuration.
- ConfigType string
- The type of configuration. Either user-created or a default configuration.
- ConfigurationDetails []GetConfiguration Configuration Detail 
- List of configuration details.
- ConfigurationId string
- DbConfiguration []GetOverrides Configuration Db Configuration Override 
- DbVersion string
- Version of the PostgreSQL database.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Description string
- A description for the configuration.
- DisplayName string
- A user-friendly display name for the configuration. Avoid entering confidential information.
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Id string
- A unique identifier for the configuration. Immutable on creation.
- InstanceMemory intSize In Gbs 
- Memory size in gigabytes with 1GB increment.
- InstanceOcpu intCount 
- CPU core count.
- IsFlexible bool
- Whether the configuration supports flexible shapes.
- 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.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
- compartmentId String
- The OCID of the compartment that contains the configuration.
- configType String
- The type of configuration. Either user-created or a default configuration.
- configurationDetails List<GetConfiguration Configuration Detail> 
- List of configuration details.
- configurationId String
- dbConfiguration List<GetOverrides Configuration Db Configuration Override> 
- dbVersion String
- Version of the PostgreSQL database.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description String
- A description for the configuration.
- displayName String
- A user-friendly display name for the configuration. Avoid entering confidential information.
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id String
- A unique identifier for the configuration. Immutable on creation.
- instanceMemory IntegerSize In Gbs 
- Memory size in gigabytes with 1GB increment.
- instanceOcpu IntegerCount 
- CPU core count.
- isFlexible Boolean
- Whether the configuration supports flexible shapes.
- 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.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
- compartmentId string
- The OCID of the compartment that contains the configuration.
- configType string
- The type of configuration. Either user-created or a default configuration.
- configurationDetails GetConfiguration Configuration Detail[] 
- List of configuration details.
- configurationId string
- dbConfiguration GetOverrides Configuration Db Configuration Override[] 
- dbVersion string
- Version of the PostgreSQL database.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description string
- A description for the configuration.
- displayName string
- A user-friendly display name for the configuration. Avoid entering confidential information.
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id string
- A unique identifier for the configuration. Immutable on creation.
- instanceMemory numberSize In Gbs 
- Memory size in gigabytes with 1GB increment.
- instanceOcpu numberCount 
- CPU core count.
- isFlexible boolean
- Whether the configuration supports flexible shapes.
- 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.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated string
- The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
- compartment_id str
- The OCID of the compartment that contains the configuration.
- config_type str
- The type of configuration. Either user-created or a default configuration.
- configuration_details Sequence[GetConfiguration Configuration Detail] 
- List of configuration details.
- configuration_id str
- db_configuration_ Sequence[Getoverrides Configuration Db Configuration Override] 
- db_version str
- Version of the PostgreSQL database.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description str
- A description for the configuration.
- display_name str
- A user-friendly display name for the configuration. Avoid entering confidential information.
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id str
- A unique identifier for the configuration. Immutable on creation.
- instance_memory_ intsize_ in_ gbs 
- Memory size in gigabytes with 1GB increment.
- instance_ocpu_ intcount 
- CPU core count.
- is_flexible bool
- Whether the configuration supports flexible shapes.
- 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.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- 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
- compartmentId String
- The OCID of the compartment that contains the configuration.
- configType String
- The type of configuration. Either user-created or a default configuration.
- configurationDetails List<Property Map>
- List of configuration details.
- configurationId String
- dbConfiguration List<Property Map>Overrides 
- dbVersion String
- Version of the PostgreSQL database.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description String
- A description for the configuration.
- displayName String
- A user-friendly display name for the configuration. Avoid entering confidential information.
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id String
- A unique identifier for the configuration. Immutable on creation.
- instanceMemory NumberSize In Gbs 
- Memory size in gigabytes with 1GB increment.
- instanceOcpu NumberCount 
- CPU core count.
- isFlexible Boolean
- Whether the configuration supports flexible shapes.
- 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.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- 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
GetConfigurationConfigurationDetail   
- Items
List<GetConfiguration Configuration Detail Item> 
- List of ConfigParms object.
- Items
[]GetConfiguration Configuration Detail Item 
- List of ConfigParms object.
- items
List<GetConfiguration Configuration Detail Item> 
- List of ConfigParms object.
- items
GetConfiguration Configuration Detail Item[] 
- List of ConfigParms object.
- items
Sequence[GetConfiguration Configuration Detail Item] 
- List of ConfigParms object.
- items List<Property Map>
- List of ConfigParms object.
GetConfigurationConfigurationDetailItem    
- 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 configuration 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 of the database.
- OverridenConfig stringValue 
- User-selected configuration variable value.
- 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 configuration 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 of the database.
- OverridenConfig stringValue 
- User-selected configuration variable value.
- 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 configuration 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 of the database.
- overridenConfig StringValue 
- User-selected configuration variable value.
- 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 configuration 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 of the database.
- overridenConfig stringValue 
- User-selected configuration variable value.
- 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 configuration 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 of the database.
- overriden_config_ strvalue 
- User-selected configuration variable value.
- 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 configuration 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 of the database.
- overridenConfig StringValue 
- User-selected configuration variable value.
GetConfigurationDbConfigurationOverride    
- Items
List<GetConfiguration Db Configuration Override Item> 
- List of ConfigParms object.
- Items
[]GetConfiguration Db Configuration Override Item 
- List of ConfigParms object.
- items
List<GetConfiguration Db Configuration Override Item> 
- List of ConfigParms object.
- items
GetConfiguration Db Configuration Override Item[] 
- List of ConfigParms object.
- items
Sequence[GetConfiguration Db Configuration Override Item] 
- List of ConfigParms object.
- items List<Property Map>
- List of ConfigParms object.
GetConfigurationDbConfigurationOverrideItem     
- ConfigKey string
- The configuration variable name.
- OverridenConfig stringValue 
- User-selected configuration variable value.
- ConfigKey string
- The configuration variable name.
- OverridenConfig stringValue 
- User-selected configuration variable value.
- configKey String
- The configuration variable name.
- overridenConfig StringValue 
- User-selected configuration variable value.
- configKey string
- The configuration variable name.
- overridenConfig stringValue 
- User-selected configuration variable value.
- config_key str
- The configuration variable name.
- overriden_config_ strvalue 
- User-selected configuration variable value.
- configKey String
- The configuration variable name.
- overridenConfig StringValue 
- User-selected configuration variable value.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.