Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Psql.getDefaultConfiguration
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 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/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:
- Default
Configuration stringId - A unique identifier for the configuration.
- Default
Configuration stringId - A unique identifier for the configuration.
- default
Configuration StringId - A unique identifier for the configuration.
- default
Configuration stringId - A unique identifier for the configuration.
- default_
configuration_ strid - A unique identifier for the configuration.
- default
Configuration StringId - A unique identifier for the configuration.
getDefaultConfiguration Result
The following output properties are available:
- Configuration
Details List<GetDefault Configuration Configuration Detail> - List of default configuration values for databases.
- Db
Version string - Version of the PostgreSQL database.
- Default
Configuration stringId - Description string
- A description for the configuration.
- Display
Name string - A user-friendly display name for the configuration.
- Id string
- 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. Minimum value is 1.
- 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 name of the shape for the configuration. Example:
VM.Standard.E4.Flex
- State string
- The current state of the configuration.
- 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
- Configuration
Details []GetDefault Configuration Configuration Detail - List of default configuration values for databases.
- Db
Version string - Version of the PostgreSQL database.
- Default
Configuration stringId - Description string
- A description for the configuration.
- Display
Name string - A user-friendly display name for the configuration.
- Id string
- 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. Minimum value is 1.
- 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 name of the shape for the configuration. Example:
VM.Standard.E4.Flex
- State string
- The current state of the configuration.
- 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
- configuration
Details List<GetDefault Configuration Configuration Detail> - List of default configuration values for databases.
- db
Version String - Version of the PostgreSQL database.
- default
Configuration StringId - description String
- A description for the configuration.
- display
Name String - A user-friendly display name for the configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Memory IntegerSize In Gbs - Memory size in gigabytes with 1GB increment.
- instance
Ocpu IntegerCount - CPU core count. Minimum value is 1.
- 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 name of the shape for the configuration. Example:
VM.Standard.E4.Flex
- state String
- The current state of the configuration.
- 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
- configuration
Details GetDefault Configuration Configuration Detail[] - List of default configuration values for databases.
- db
Version string - Version of the PostgreSQL database.
- default
Configuration stringId - description string
- A description for the configuration.
- display
Name string - A user-friendly display name for the configuration.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Memory numberSize In Gbs - Memory size in gigabytes with 1GB increment.
- instance
Ocpu numberCount - CPU core count. Minimum value is 1.
- 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 name of the shape for the configuration. Example:
VM.Standard.E4.Flex
- state string
- The current state of the configuration.
- 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
- configuration_
details Sequence[psql.Get Default 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. Minimum value is 1.
- 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
- configuration
Details List<Property Map> - List of default configuration values for databases.
- db
Version String - Version of the PostgreSQL database.
- default
Configuration StringId - description String
- A description for the configuration.
- display
Name String - A user-friendly display name for the configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Memory NumberSize In Gbs - Memory size in gigabytes with 1GB increment.
- instance
Ocpu NumberCount - CPU core count. Minimum value is 1.
- 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 name of the shape for the configuration. Example:
VM.Standard.E4.Flex
- state String
- The current state of the configuration.
- 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
Supporting Types
GetDefaultConfigurationConfigurationDetail
- Items
List<Get
Default Configuration Configuration Detail Item> - List of ConfigParms object.
- Items
[]Get
Default Configuration Configuration Detail Item - List of ConfigParms object.
- items
List<Get
Default Configuration Configuration Detail Item> - List of ConfigParms object.
- items
Get
Default Configuration Configuration Detail Item[] - List of ConfigParms object.
- items
Sequence[psql.
Get Default Configuration Configuration Detail Item] - List of ConfigParms object.
- items List<Property Map>
- List of ConfigParms object.
GetDefaultConfigurationConfigurationDetailItem
- 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.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi