Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Psql.getConfiguration
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 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/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 GetConfiguration(ctx *Context, args *GetConfigurationArgs, opts ...InvokeOption) (*GetConfigurationResult, error)
func GetConfigurationOutput(ctx *Context, args *GetConfigurationOutputArgs, opts ...InvokeOption) GetConfigurationResultOutput
> Note: This function is named GetConfiguration
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Psql/getConfiguration:getConfiguration
arguments:
# arguments dictionary
The following arguments are supported:
- Configuration
Id string - A unique identifier for the configuration.
- Configuration
Id string - A unique identifier for the configuration.
- configuration
Id String - A unique identifier for the configuration.
- configuration
Id string - A unique identifier for the configuration.
- configuration_
id str - A unique identifier for the configuration.
- configuration
Id String - A unique identifier for the configuration.
getConfiguration Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment that contains the configuration.
- Configuration
Details List<GetConfiguration Configuration Detail> - List of configuration details.
- Configuration
Id string - Db
Configuration List<GetOverrides Configuration Db Configuration Override> - Db
Version string - Version of the PostgreSQL database.
- Dictionary<string, object>
- 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.
- Display
Name string - A user-friendly display name for the configuration. Avoid entering confidential information.
- Dictionary<string, object>
- 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.
- Instance
Memory intSize In Gbs - Memory size in gigabytes with 1GB increment.
- Instance
Ocpu intCount - CPU core count.
- 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.
- Dictionary<string, object>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- 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
- Compartment
Id string - The OCID of the compartment that contains the configuration.
- Configuration
Details []GetConfiguration Configuration Detail - List of configuration details.
- Configuration
Id string - Db
Configuration []GetOverrides Configuration Db Configuration Override - Db
Version string - Version of the PostgreSQL database.
- map[string]interface{}
- 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.
- Display
Name string - A user-friendly display name for the configuration. Avoid entering confidential information.
- map[string]interface{}
- 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.
- Instance
Memory intSize In Gbs - Memory size in gigabytes with 1GB increment.
- Instance
Ocpu intCount - CPU core count.
- 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.
- map[string]interface{}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- 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
- compartment
Id String - The OCID of the compartment that contains the configuration.
- configuration
Details List<GetConfiguration Configuration Detail> - List of configuration details.
- configuration
Id String - db
Configuration List<GetOverrides Configuration Db Configuration Override> - db
Version String - Version of the PostgreSQL database.
- Map<String,Object>
- 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.
- display
Name String - A user-friendly display name for the configuration. Avoid entering confidential information.
- Map<String,Object>
- 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.
- instance
Memory IntegerSize In Gbs - Memory size in gigabytes with 1GB increment.
- instance
Ocpu IntegerCount - CPU core count.
- 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.
- Map<String,Object>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- 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
- compartment
Id string - The OCID of the compartment that contains the configuration.
- configuration
Details GetConfiguration Configuration Detail[] - List of configuration details.
- configuration
Id string - db
Configuration GetOverrides Configuration Db Configuration Override[] - db
Version string - Version of the PostgreSQL database.
- {[key: string]: any}
- 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.
- display
Name string - A user-friendly display name for the configuration. Avoid entering confidential information.
- {[key: string]: any}
- 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.
- instance
Memory numberSize In Gbs - Memory size in gigabytes with 1GB increment.
- instance
Ocpu numberCount - CPU core count.
- 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.
- {[key: string]: any}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- 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
- compartment_
id str - The OCID of the compartment that contains the configuration.
- configuration_
details Sequence[psql.Get Configuration Configuration Detail] - List of configuration details.
- configuration_
id str - db_
configuration_ Sequence[psql.overrides Get Configuration Db Configuration Override] - db_
version str - Version of the PostgreSQL database.
- Mapping[str, Any]
- 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, Any]
- 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.
- 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, Any]
- 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
- compartment
Id String - The OCID of the compartment that contains the configuration.
- configuration
Details List<Property Map> - List of configuration details.
- configuration
Id String - db
Configuration List<Property Map>Overrides - db
Version String - Version of the PostgreSQL database.
- Map<Any>
- 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.
- display
Name String - A user-friendly display name for the configuration. Avoid entering confidential information.
- Map<Any>
- 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.
- instance
Memory NumberSize In Gbs - Memory size in gigabytes with 1GB increment.
- instance
Ocpu NumberCount - CPU core count.
- 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.
- Map<Any>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- 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
GetConfigurationConfigurationDetail
- Items
List<Get
Configuration Configuration Detail Item> - List of ConfigParms object.
- Items
[]Get
Configuration Configuration Detail Item - List of ConfigParms object.
- items
List<Get
Configuration Configuration Detail Item> - List of ConfigParms object.
- items
Get
Configuration Configuration Detail Item[] - List of ConfigParms object.
- items
Sequence[psql.
Get Configuration Configuration Detail Item] - List of ConfigParms object.
- items List<Property Map>
- List of ConfigParms object.
GetConfigurationConfigurationDetailItem
- 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 configuration 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 of the database.
- Overriden
Config stringValue - User-selected configuration variable value.
- 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 configuration 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 of the database.
- Overriden
Config stringValue - User-selected configuration variable value.
- 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 configuration 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 of the database.
- overriden
Config StringValue - User-selected configuration variable value.
- 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 configuration 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 of the database.
- overriden
Config 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.
- 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 configuration 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 of the database.
- overriden
Config StringValue - User-selected configuration variable value.
GetConfigurationDbConfigurationOverride
- Items
List<Get
Configuration Db Configuration Override Item> - List of ConfigParms object.
- Items
[]Get
Configuration Db Configuration Override Item - List of ConfigParms object.
- items
List<Get
Configuration Db Configuration Override Item> - List of ConfigParms object.
- items
Get
Configuration Db Configuration Override Item[] - List of ConfigParms object.
- items
Sequence[psql.
Get Configuration Db Configuration Override Item] - List of ConfigParms object.
- items List<Property Map>
- List of ConfigParms object.
GetConfigurationDbConfigurationOverrideItem
- Config
Key string - The configuration variable name.
- Overriden
Config stringValue - User-selected configuration variable value.
- Config
Key string - The configuration variable name.
- Overriden
Config stringValue - User-selected configuration variable value.
- config
Key String - The configuration variable name.
- overriden
Config StringValue - User-selected configuration variable value.
- config
Key string - The configuration variable name.
- overriden
Config stringValue - User-selected configuration variable value.
- config_
key str - The configuration variable name.
- overriden_
config_ strvalue - User-selected configuration variable value.
- config
Key String - The configuration variable name.
- overriden
Config 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
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi