Oracle Cloud Infrastructure v0.20.0, May 31 23
Oracle Cloud Infrastructure v0.20.0, May 31 23
oci.DatabaseTools.getDatabaseToolsConnection
Explore with Pulumi AI
This data source provides details about a specific Database Tools Connection resource in Oracle Cloud Infrastructure Database Tools service.
Gets details of the specified Database Tools connection.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testDatabaseToolsConnection = Oci.DatabaseTools.GetDatabaseToolsConnection.Invoke(new()
{
DatabaseToolsConnectionId = oci_database_tools_database_tools_connection.Test_database_tools_connection.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/DatabaseTools"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DatabaseTools.GetDatabaseToolsConnection(ctx, &databasetools.GetDatabaseToolsConnectionArgs{
DatabaseToolsConnectionId: oci_database_tools_database_tools_connection.Test_database_tools_connection.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DatabaseTools.DatabaseToolsFunctions;
import com.pulumi.oci.DatabaseTools.inputs.GetDatabaseToolsConnectionArgs;
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 testDatabaseToolsConnection = DatabaseToolsFunctions.getDatabaseToolsConnection(GetDatabaseToolsConnectionArgs.builder()
.databaseToolsConnectionId(oci_database_tools_database_tools_connection.test_database_tools_connection().id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_database_tools_connection = oci.DatabaseTools.get_database_tools_connection(database_tools_connection_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDatabaseToolsConnection = oci.DatabaseTools.getDatabaseToolsConnection({
databaseToolsConnectionId: oci_database_tools_database_tools_connection.test_database_tools_connection.id,
});
variables:
testDatabaseToolsConnection:
fn::invoke:
Function: oci:DatabaseTools:getDatabaseToolsConnection
Arguments:
databaseToolsConnectionId: ${oci_database_tools_database_tools_connection.test_database_tools_connection.id}
Using getDatabaseToolsConnection
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 getDatabaseToolsConnection(args: GetDatabaseToolsConnectionArgs, opts?: InvokeOptions): Promise<GetDatabaseToolsConnectionResult>
function getDatabaseToolsConnectionOutput(args: GetDatabaseToolsConnectionOutputArgs, opts?: InvokeOptions): Output<GetDatabaseToolsConnectionResult>
def get_database_tools_connection(database_tools_connection_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDatabaseToolsConnectionResult
def get_database_tools_connection_output(database_tools_connection_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseToolsConnectionResult]
func GetDatabaseToolsConnection(ctx *Context, args *GetDatabaseToolsConnectionArgs, opts ...InvokeOption) (*GetDatabaseToolsConnectionResult, error)
func GetDatabaseToolsConnectionOutput(ctx *Context, args *GetDatabaseToolsConnectionOutputArgs, opts ...InvokeOption) GetDatabaseToolsConnectionResultOutput
> Note: This function is named GetDatabaseToolsConnection
in the Go SDK.
public static class GetDatabaseToolsConnection
{
public static Task<GetDatabaseToolsConnectionResult> InvokeAsync(GetDatabaseToolsConnectionArgs args, InvokeOptions? opts = null)
public static Output<GetDatabaseToolsConnectionResult> Invoke(GetDatabaseToolsConnectionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDatabaseToolsConnectionResult> getDatabaseToolsConnection(GetDatabaseToolsConnectionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DatabaseTools/getDatabaseToolsConnection:getDatabaseToolsConnection
arguments:
# arguments dictionary
The following arguments are supported:
- Database
Tools stringConnection Id The OCID of a Database Tools connection.
- Database
Tools stringConnection Id The OCID of a Database Tools connection.
- database
Tools StringConnection Id The OCID of a Database Tools connection.
- database
Tools stringConnection Id The OCID of a Database Tools connection.
- database_
tools_ strconnection_ id The OCID of a Database Tools connection.
- database
Tools StringConnection Id The OCID of a Database Tools connection.
getDatabaseToolsConnection Result
The following output properties are available:
- Advanced
Properties Dictionary<string, object> The advanced connection properties key-value pair (for example,
oracle.net.ssl_server_dn_match
).- Compartment
Id string The OCID of the compartment containing the Database Tools connection.
- Connection
String string The connect descriptor or Easy Connect Naming method used to connect to the database.
- Database
Tools stringConnection Id - Dictionary<string, object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string A user-friendly name. Does not have to be unique, and it's changeable. 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
The OCID of the Database Tools connection.
- Key
Stores List<GetDatabase Tools Connection Key Store> The Oracle wallet or Java Keystores containing trusted certificates for authenticating the server's public certificate and the client private key and associated certificates required for client authentication.
- Lifecycle
Details string A message describing the current state in more detail. For example, this message can be used to provide actionable information for a resource in the Failed state.
- Private
Endpoint stringId The OCID of the Database Tools private endpoint used to access the database in the customer VCN.
- List<Get
Database Tools Connection Related Resource> A related resource
- State string
The current state of the Database Tools connection.
- Dictionary<string, object>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string The time the Database Tools connection was created. An RFC3339 formatted datetime string.
- Time
Updated string The time the DatabaseToolsConnection was updated. An RFC3339 formatted datetime string.
- Type string
The Database Tools connection type.
- User
Name string The database user name.
- User
Passwords List<GetDatabase Tools Connection User Password> The user password.
- Advanced
Properties map[string]interface{} The advanced connection properties key-value pair (for example,
oracle.net.ssl_server_dn_match
).- Compartment
Id string The OCID of the compartment containing the Database Tools connection.
- Connection
String string The connect descriptor or Easy Connect Naming method used to connect to the database.
- Database
Tools stringConnection Id - map[string]interface{}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string A user-friendly name. Does not have to be unique, and it's changeable. 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
The OCID of the Database Tools connection.
- Key
Stores []GetDatabase Tools Connection Key Store The Oracle wallet or Java Keystores containing trusted certificates for authenticating the server's public certificate and the client private key and associated certificates required for client authentication.
- Lifecycle
Details string A message describing the current state in more detail. For example, this message can be used to provide actionable information for a resource in the Failed state.
- Private
Endpoint stringId The OCID of the Database Tools private endpoint used to access the database in the customer VCN.
- []Get
Database Tools Connection Related Resource A related resource
- State string
The current state of the Database Tools connection.
- map[string]interface{}
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string The time the Database Tools connection was created. An RFC3339 formatted datetime string.
- Time
Updated string The time the DatabaseToolsConnection was updated. An RFC3339 formatted datetime string.
- Type string
The Database Tools connection type.
- User
Name string The database user name.
- User
Passwords []GetDatabase Tools Connection User Password The user password.
- advanced
Properties Map<String,Object> The advanced connection properties key-value pair (for example,
oracle.net.ssl_server_dn_match
).- compartment
Id String The OCID of the compartment containing the Database Tools connection.
- connection
String String The connect descriptor or Easy Connect Naming method used to connect to the database.
- database
Tools StringConnection Id - Map<String,Object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String A user-friendly name. Does not have to be unique, and it's changeable. 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
The OCID of the Database Tools connection.
- key
Stores List<GetConnection Key Store> The Oracle wallet or Java Keystores containing trusted certificates for authenticating the server's public certificate and the client private key and associated certificates required for client authentication.
- lifecycle
Details String A message describing the current state in more detail. For example, this message can be used to provide actionable information for a resource in the Failed state.
- private
Endpoint StringId The OCID of the Database Tools private endpoint used to access the database in the customer VCN.
- List<Get
Connection Related Resource> A related resource
- state String
The current state of the Database Tools connection.
- Map<String,Object>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String The time the Database Tools connection was created. An RFC3339 formatted datetime string.
- time
Updated String The time the DatabaseToolsConnection was updated. An RFC3339 formatted datetime string.
- type String
The Database Tools connection type.
- user
Name String The database user name.
- user
Passwords List<GetConnection User Password> The user password.
- advanced
Properties {[key: string]: any} The advanced connection properties key-value pair (for example,
oracle.net.ssl_server_dn_match
).- compartment
Id string The OCID of the compartment containing the Database Tools connection.
- connection
String string The connect descriptor or Easy Connect Naming method used to connect to the database.
- database
Tools stringConnection Id - {[key: string]: any}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string A user-friendly name. Does not have to be unique, and it's changeable. 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
The OCID of the Database Tools connection.
- key
Stores GetDatabase Tools Connection Key Store[] The Oracle wallet or Java Keystores containing trusted certificates for authenticating the server's public certificate and the client private key and associated certificates required for client authentication.
- lifecycle
Details string A message describing the current state in more detail. For example, this message can be used to provide actionable information for a resource in the Failed state.
- private
Endpoint stringId The OCID of the Database Tools private endpoint used to access the database in the customer VCN.
- Get
Database Tools Connection Related Resource[] A related resource
- state string
The current state of the Database Tools connection.
- {[key: string]: any}
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string The time the Database Tools connection was created. An RFC3339 formatted datetime string.
- time
Updated string The time the DatabaseToolsConnection was updated. An RFC3339 formatted datetime string.
- type string
The Database Tools connection type.
- user
Name string The database user name.
- user
Passwords GetDatabase Tools Connection User Password[] The user password.
- advanced_
properties Mapping[str, Any] The advanced connection properties key-value pair (for example,
oracle.net.ssl_server_dn_match
).- compartment_
id str The OCID of the compartment containing the Database Tools connection.
- connection_
string str The connect descriptor or Easy Connect Naming method used to connect to the database.
- database_
tools_ strconnection_ id - Mapping[str, Any]
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display_
name str A user-friendly name. Does not have to be unique, and it's changeable. 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
The OCID of the Database Tools connection.
- key_
stores GetDatabase Tools Connection Key Store] The Oracle wallet or Java Keystores containing trusted certificates for authenticating the server's public certificate and the client private key and associated certificates required for client authentication.
- lifecycle_
details str A message describing the current state in more detail. For example, this message can be used to provide actionable information for a resource in the Failed state.
- private_
endpoint_ strid The OCID of the Database Tools private endpoint used to access the database in the customer VCN.
- Get
Database Tools Connection Related Resource] A related resource
- state str
The current state of the Database Tools connection.
- Mapping[str, Any]
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str The time the Database Tools connection was created. An RFC3339 formatted datetime string.
- time_
updated str The time the DatabaseToolsConnection was updated. An RFC3339 formatted datetime string.
- type str
The Database Tools connection type.
- user_
name str The database user name.
- user_
passwords GetDatabase Tools Connection User Password] The user password.
- advanced
Properties Map<Any> The advanced connection properties key-value pair (for example,
oracle.net.ssl_server_dn_match
).- compartment
Id String The OCID of the compartment containing the Database Tools connection.
- connection
String String The connect descriptor or Easy Connect Naming method used to connect to the database.
- database
Tools StringConnection Id - Map<Any>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String A user-friendly name. Does not have to be unique, and it's changeable. 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
The OCID of the Database Tools connection.
- key
Stores List<Property Map> The Oracle wallet or Java Keystores containing trusted certificates for authenticating the server's public certificate and the client private key and associated certificates required for client authentication.
- lifecycle
Details String A message describing the current state in more detail. For example, this message can be used to provide actionable information for a resource in the Failed state.
- private
Endpoint StringId The OCID of the Database Tools private endpoint used to access the database in the customer VCN.
- List<Property Map>
A related resource
- state String
The current state of the Database Tools connection.
- Map<Any>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String The time the Database Tools connection was created. An RFC3339 formatted datetime string.
- time
Updated String The time the DatabaseToolsConnection was updated. An RFC3339 formatted datetime string.
- type String
The Database Tools connection type.
- user
Name String The database user name.
- user
Passwords List<Property Map> The user password.
Supporting Types
GetDatabaseToolsConnectionKeyStore
- Key
Store List<GetContents Database Tools Connection Key Store Key Store Content> The key store content.
- Key
Store List<GetPasswords Database Tools Connection Key Store Key Store Password> The key store password.
- Key
Store stringType The key store type.
- Key
Store []GetContents Database Tools Connection Key Store Key Store Content The key store content.
- Key
Store []GetPasswords Database Tools Connection Key Store Key Store Password The key store password.
- Key
Store stringType The key store type.
- key
Store List<GetContents Connection Key Store Key Store Content> The key store content.
- key
Store List<GetPasswords Connection Key Store Key Store Password> The key store password.
- key
Store StringType The key store type.
- key
Store GetContents Database Tools Connection Key Store Key Store Content[] The key store content.
- key
Store GetPasswords Database Tools Connection Key Store Key Store Password[] The key store password.
- key
Store stringType The key store type.
- key_
store_ Getcontents Database Tools Connection Key Store Key Store Content] The key store content.
- key_
store_ Getpasswords Database Tools Connection Key Store Key Store Password] The key store password.
- key_
store_ strtype The key store type.
- key
Store List<Property Map>Contents The key store content.
- key
Store List<Property Map>Passwords The key store password.
- key
Store StringType The key store type.
GetDatabaseToolsConnectionKeyStoreKeyStoreContent
- secret_
id str The OCID of the secret containing the user password.
- value_
type str The value type of the user password.
GetDatabaseToolsConnectionKeyStoreKeyStorePassword
- secret_
id str The OCID of the secret containing the user password.
- value_
type str The value type of the user password.
GetDatabaseToolsConnectionRelatedResource
- Entity
Type string The resource entity type.
- Identifier string
The OCID of the related resource.
- Entity
Type string The resource entity type.
- Identifier string
The OCID of the related resource.
- entity
Type String The resource entity type.
- identifier String
The OCID of the related resource.
- entity
Type string The resource entity type.
- identifier string
The OCID of the related resource.
- entity_
type str The resource entity type.
- identifier str
The OCID of the related resource.
- entity
Type String The resource entity type.
- identifier String
The OCID of the related resource.
GetDatabaseToolsConnectionUserPassword
- secret_
id str The OCID of the secret containing the user password.
- value_
type str The value type of the user password.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.