oci.DatabaseTools.getDatabaseToolsConnections
Explore with Pulumi AI
This data source provides the list of Database Tools Connections in Oracle Cloud Infrastructure Database Tools service.
Returns a list of Database Tools connections.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testDatabaseToolsConnections = Oci.DatabaseTools.GetDatabaseToolsConnections.Invoke(new()
{
CompartmentId = @var.Compartment_id,
DisplayName = @var.Database_tools_connection_display_name,
State = @var.Database_tools_connection_state,
Types = @var.Database_tools_connection_type,
});
});
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.GetDatabaseToolsConnections(ctx, &databasetools.GetDatabaseToolsConnectionsArgs{
CompartmentId: _var.Compartment_id,
DisplayName: pulumi.StringRef(_var.Database_tools_connection_display_name),
State: pulumi.StringRef(_var.Database_tools_connection_state),
Types: _var.Database_tools_connection_type,
}, 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.GetDatabaseToolsConnectionsArgs;
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 testDatabaseToolsConnections = DatabaseToolsFunctions.getDatabaseToolsConnections(GetDatabaseToolsConnectionsArgs.builder()
.compartmentId(var_.compartment_id())
.displayName(var_.database_tools_connection_display_name())
.state(var_.database_tools_connection_state())
.types(var_.database_tools_connection_type())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_database_tools_connections = oci.DatabaseTools.get_database_tools_connections(compartment_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
display_name=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
state=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
types=%!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 testDatabaseToolsConnections = oci.DatabaseTools.getDatabaseToolsConnections({
compartmentId: _var.compartment_id,
displayName: _var.database_tools_connection_display_name,
state: _var.database_tools_connection_state,
types: _var.database_tools_connection_type,
});
variables:
testDatabaseToolsConnections:
fn::invoke:
Function: oci:DatabaseTools:getDatabaseToolsConnections
Arguments:
compartmentId: ${var.compartment_id}
displayName: ${var.database_tools_connection_display_name}
state: ${var.database_tools_connection_state}
types: ${var.database_tools_connection_type}
Using getDatabaseToolsConnections
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 getDatabaseToolsConnections(args: GetDatabaseToolsConnectionsArgs, opts?: InvokeOptions): Promise<GetDatabaseToolsConnectionsResult>
function getDatabaseToolsConnectionsOutput(args: GetDatabaseToolsConnectionsOutputArgs, opts?: InvokeOptions): Output<GetDatabaseToolsConnectionsResult>
def get_database_tools_connections(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_databasetools.GetDatabaseToolsConnectionsFilter]] = None,
state: Optional[str] = None,
types: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> GetDatabaseToolsConnectionsResult
def get_database_tools_connections_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_databasetools.GetDatabaseToolsConnectionsFilterArgs]]]] = None,
state: Optional[pulumi.Input[str]] = None,
types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseToolsConnectionsResult]
func GetDatabaseToolsConnections(ctx *Context, args *GetDatabaseToolsConnectionsArgs, opts ...InvokeOption) (*GetDatabaseToolsConnectionsResult, error)
func GetDatabaseToolsConnectionsOutput(ctx *Context, args *GetDatabaseToolsConnectionsOutputArgs, opts ...InvokeOption) GetDatabaseToolsConnectionsResultOutput
> Note: This function is named GetDatabaseToolsConnections
in the Go SDK.
public static class GetDatabaseToolsConnections
{
public static Task<GetDatabaseToolsConnectionsResult> InvokeAsync(GetDatabaseToolsConnectionsArgs args, InvokeOptions? opts = null)
public static Output<GetDatabaseToolsConnectionsResult> Invoke(GetDatabaseToolsConnectionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDatabaseToolsConnectionsResult> getDatabaseToolsConnections(GetDatabaseToolsConnectionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DatabaseTools/getDatabaseToolsConnections:getDatabaseToolsConnections
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string The ID of the compartment in which to list resources.
- Display
Name string A filter to return only resources that match the entire specified display name.
- Filters
List<Get
Database Tools Connections Filter> - State string
A filter to return only resources their
lifecycleState
matches the specifiedlifecycleState
.- Types List<string>
A filter to return only resources their type matches the specified type.
- Compartment
Id string The ID of the compartment in which to list resources.
- Display
Name string A filter to return only resources that match the entire specified display name.
- Filters
[]Get
Database Tools Connections Filter - State string
A filter to return only resources their
lifecycleState
matches the specifiedlifecycleState
.- Types []string
A filter to return only resources their type matches the specified type.
- compartment
Id String The ID of the compartment in which to list resources.
- display
Name String A filter to return only resources that match the entire specified display name.
- filters
List<Get
Connections Filter> - state String
A filter to return only resources their
lifecycleState
matches the specifiedlifecycleState
.- types List<String>
A filter to return only resources their type matches the specified type.
- compartment
Id string The ID of the compartment in which to list resources.
- display
Name string A filter to return only resources that match the entire specified display name.
- filters
Get
Database Tools Connections Filter[] - state string
A filter to return only resources their
lifecycleState
matches the specifiedlifecycleState
.- types string[]
A filter to return only resources their type matches the specified type.
- compartment_
id str The ID of the compartment in which to list resources.
- display_
name str A filter to return only resources that match the entire specified display name.
- filters
Get
Database Tools Connections Filter] - state str
A filter to return only resources their
lifecycleState
matches the specifiedlifecycleState
.- types Sequence[str]
A filter to return only resources their type matches the specified type.
- compartment
Id String The ID of the compartment in which to list resources.
- display
Name String A filter to return only resources that match the entire specified display name.
- filters List<Property Map>
- state String
A filter to return only resources their
lifecycleState
matches the specifiedlifecycleState
.- types List<String>
A filter to return only resources their type matches the specified type.
getDatabaseToolsConnections Result
The following output properties are available:
- Compartment
Id string The OCID of the compartment containing the Database Tools connection.
- Database
Tools List<GetConnection Collections Database Tools Connections Database Tools Connection Collection> The list of database_tools_connection_collection.
- Id string
The provider-assigned unique ID for this managed resource.
- Display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
List<Get
Database Tools Connections Filter> - State string
The current state of the Database Tools connection.
- Types List<string>
The Database Tools connection type.
- Compartment
Id string The OCID of the compartment containing the Database Tools connection.
- Database
Tools []GetConnection Collections Database Tools Connections Database Tools Connection Collection The list of database_tools_connection_collection.
- Id string
The provider-assigned unique ID for this managed resource.
- Display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
[]Get
Database Tools Connections Filter - State string
The current state of the Database Tools connection.
- Types []string
The Database Tools connection type.
- compartment
Id String The OCID of the compartment containing the Database Tools connection.
- database
Tools List<GetConnection Collections Connections Connection Collection> The list of database_tools_connection_collection.
- id String
The provider-assigned unique ID for this managed resource.
- display
Name String A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
List<Get
Connections Filter> - state String
The current state of the Database Tools connection.
- types List<String>
The Database Tools connection type.
- compartment
Id string The OCID of the compartment containing the Database Tools connection.
- database
Tools GetConnection Collections Database Tools Connections Database Tools Connection Collection[] The list of database_tools_connection_collection.
- id string
The provider-assigned unique ID for this managed resource.
- display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Get
Database Tools Connections Filter[] - state string
The current state of the Database Tools connection.
- types string[]
The Database Tools connection type.
- compartment_
id str The OCID of the compartment containing the Database Tools connection.
- database_
tools_ Getconnection_ collections Database Tools Connections Database Tools Connection Collection] The list of database_tools_connection_collection.
- id str
The provider-assigned unique ID for this managed resource.
- display_
name str A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Get
Database Tools Connections Filter] - state str
The current state of the Database Tools connection.
- types Sequence[str]
The Database Tools connection type.
- compartment
Id String The OCID of the compartment containing the Database Tools connection.
- database
Tools List<Property Map>Connection Collections The list of database_tools_connection_collection.
- id String
The provider-assigned unique ID for this managed resource.
- display
Name String A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters List<Property Map>
- state String
The current state of the Database Tools connection.
- types List<String>
The Database Tools connection type.
Supporting Types
GetDatabaseToolsConnectionsDatabaseToolsConnectionCollection
GetDatabaseToolsConnectionsDatabaseToolsConnectionCollectionItem
- Advanced
Properties Dictionary<string, object> The advanced connection properties key-value pair (for example,
oracle.net.ssl_server_dn_match
).- Compartment
Id string The ID of the compartment in which to list resources.
- Connection
String string The connect descriptor or Easy Connect Naming method used to connect to the database.
- 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 filter to return only resources that match the entire specified display name.
- 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 Connections Database Tools Connection Collection Item 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 Connections Database Tools Connection Collection Item Related Resource> A related resource
- State string
A filter to return only resources their
lifecycleState
matches the specifiedlifecycleState
.- 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
A filter to return only resources their type matches the specified type.
- User
Name string The database user name.
- User
Passwords List<GetDatabase Tools Connections Database Tools Connection Collection Item 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 ID of the compartment in which to list resources.
- Connection
String string The connect descriptor or Easy Connect Naming method used to connect to the database.
- 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 filter to return only resources that match the entire specified display name.
- 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 Connections Database Tools Connection Collection Item 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 Connections Database Tools Connection Collection Item Related Resource A related resource
- State string
A filter to return only resources their
lifecycleState
matches the specifiedlifecycleState
.- 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
A filter to return only resources their type matches the specified type.
- User
Name string The database user name.
- User
Passwords []GetDatabase Tools Connections Database Tools Connection Collection Item 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 ID of the compartment in which to list resources.
- connection
String String The connect descriptor or Easy Connect Naming method used to connect to the database.
- 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 filter to return only resources that match the entire specified display name.
- 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<GetConnections Connection Collection Item 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
Connections Connection Collection Item Related Resource> A related resource
- state String
A filter to return only resources their
lifecycleState
matches the specifiedlifecycleState
.- 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
A filter to return only resources their type matches the specified type.
- user
Name String The database user name.
- user
Passwords List<GetConnections Connection Collection Item 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 ID of the compartment in which to list resources.
- connection
String string The connect descriptor or Easy Connect Naming method used to connect to the database.
- {[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 filter to return only resources that match the entire specified display name.
- {[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 Connections Database Tools Connection Collection Item 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 Connections Database Tools Connection Collection Item Related Resource[] A related resource
- state string
A filter to return only resources their
lifecycleState
matches the specifiedlifecycleState
.- {[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
A filter to return only resources their type matches the specified type.
- user
Name string The database user name.
- user
Passwords GetDatabase Tools Connections Database Tools Connection Collection Item 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 ID of the compartment in which to list resources.
- connection_
string str The connect descriptor or Easy Connect Naming method used to connect to the database.
- 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 filter to return only resources that match the entire specified display name.
- 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 Connections Database Tools Connection Collection Item 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 Connections Database Tools Connection Collection Item Related Resource] A related resource
- state str
A filter to return only resources their
lifecycleState
matches the specifiedlifecycleState
.- 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
A filter to return only resources their type matches the specified type.
- user_
name str The database user name.
- user_
passwords GetDatabase Tools Connections Database Tools Connection Collection Item 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 ID of the compartment in which to list resources.
- connection
String String The connect descriptor or Easy Connect Naming method used to connect to the database.
- 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 filter to return only resources that match the entire specified display name.
- 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
A filter to return only resources their
lifecycleState
matches the specifiedlifecycleState
.- 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
A filter to return only resources their type matches the specified type.
- user
Name String The database user name.
- user
Passwords List<Property Map> The user password.
GetDatabaseToolsConnectionsDatabaseToolsConnectionCollectionItemKeyStore
- Key
Store List<GetContents Database Tools Connections Database Tools Connection Collection Item Key Store Key Store Content> The key store content.
- Key
Store List<GetPasswords Database Tools Connections Database Tools Connection Collection Item Key Store Key Store Password> The key store password.
- Key
Store stringType The key store type.
- Key
Store []GetContents Database Tools Connections Database Tools Connection Collection Item Key Store Key Store Content The key store content.
- Key
Store []GetPasswords Database Tools Connections Database Tools Connection Collection Item Key Store Key Store Password The key store password.
- Key
Store stringType The key store type.
- key
Store List<GetContents Connections Connection Collection Item Key Store Key Store Content> The key store content.
- key
Store List<GetPasswords Connections Connection Collection Item Key Store Key Store Password> The key store password.
- key
Store StringType The key store type.
- key
Store GetContents Database Tools Connections Database Tools Connection Collection Item Key Store Key Store Content[] The key store content.
- key
Store GetPasswords Database Tools Connections Database Tools Connection Collection Item Key Store Key Store Password[] The key store password.
- key
Store stringType The key store type.
- key_
store_ Getcontents Database Tools Connections Database Tools Connection Collection Item Key Store Key Store Content] The key store content.
- key_
store_ Getpasswords Database Tools Connections Database Tools Connection Collection Item 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.
GetDatabaseToolsConnectionsDatabaseToolsConnectionCollectionItemKeyStoreKeyStoreContent
- secret_
id str The OCID of the secret containing the user password.
- value_
type str The value type of the user password.
GetDatabaseToolsConnectionsDatabaseToolsConnectionCollectionItemKeyStoreKeyStorePassword
- secret_
id str The OCID of the secret containing the user password.
- value_
type str The value type of the user password.
GetDatabaseToolsConnectionsDatabaseToolsConnectionCollectionItemRelatedResource
- 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.
GetDatabaseToolsConnectionsDatabaseToolsConnectionCollectionItemUserPassword
- secret_
id str The OCID of the secret containing the user password.
- value_
type str The value type of the user password.
GetDatabaseToolsConnectionsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.