1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Psql
  5. getDefaultConfiguration
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Psql.getDefaultConfiguration

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Psql/getDefaultConfiguration:getDefaultConfiguration
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DefaultConfigurationId string
    A unique identifier for the configuration.
    DefaultConfigurationId string
    A unique identifier for the configuration.
    defaultConfigurationId String
    A unique identifier for the configuration.
    defaultConfigurationId string
    A unique identifier for the configuration.
    default_configuration_id str
    A unique identifier for the configuration.
    defaultConfigurationId String
    A unique identifier for the configuration.

    getDefaultConfiguration Result

    The following output properties are available:

    ConfigurationDetails List<GetDefaultConfigurationConfigurationDetail>
    List of default configuration values for databases.
    DbVersion string
    Version of the PostgreSQL database.
    DefaultConfigurationId string
    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.
    InstanceMemorySizeInGbs int
    Memory size in gigabytes with 1GB increment.
    InstanceOcpuCount int
    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 []GetDefaultConfigurationConfigurationDetail
    List of default configuration values for databases.
    DbVersion string
    Version of the PostgreSQL database.
    DefaultConfigurationId string
    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.
    InstanceMemorySizeInGbs int
    Memory size in gigabytes with 1GB increment.
    InstanceOcpuCount int
    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<GetDefaultConfigurationConfigurationDetail>
    List of default configuration values for databases.
    dbVersion String
    Version of the PostgreSQL database.
    defaultConfigurationId String
    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.
    instanceMemorySizeInGbs Integer
    Memory size in gigabytes with 1GB increment.
    instanceOcpuCount Integer
    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 GetDefaultConfigurationConfigurationDetail[]
    List of default configuration values for databases.
    dbVersion string
    Version of the PostgreSQL database.
    defaultConfigurationId string
    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.
    instanceMemorySizeInGbs number
    Memory size in gigabytes with 1GB increment.
    instanceOcpuCount number
    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[psql.GetDefaultConfigurationConfigurationDetail]
    List of default configuration values for databases.
    db_version str
    Version of the PostgreSQL database.
    default_configuration_id str
    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_size_in_gbs int
    Memory size in gigabytes with 1GB increment.
    instance_ocpu_count int
    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.
    defaultConfigurationId String
    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.
    instanceMemorySizeInGbs Number
    Memory size in gigabytes with 1GB increment.
    instanceOcpuCount Number
    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<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.
    DefaultConfigValue string
    Default value for the variable.
    Description string
    A description for the configuration.
    IsOverridable bool
    Whether the value can be overridden or not.
    IsRestartRequired bool
    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.
    DefaultConfigValue string
    Default value for the variable.
    Description string
    A description for the configuration.
    IsOverridable bool
    Whether the value can be overridden or not.
    IsRestartRequired bool
    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.
    defaultConfigValue String
    Default value for the variable.
    description String
    A description for the configuration.
    isOverridable Boolean
    Whether the value can be overridden or not.
    isRestartRequired Boolean
    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.
    defaultConfigValue string
    Default value for the variable.
    description string
    A description for the configuration.
    isOverridable boolean
    Whether the value can be overridden or not.
    isRestartRequired boolean
    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_value str
    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_required bool
    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.
    defaultConfigValue String
    Default value for the variable.
    description String
    A description for the configuration.
    isOverridable Boolean
    Whether the value can be overridden or not.
    isRestartRequired Boolean
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi