Viewing docs for Oracle Cloud Infrastructure v4.11.0
published on Friday, May 15, 2026 by Pulumi
published on Friday, May 15, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.11.0
published on Friday, May 15, 2026 by Pulumi
published on Friday, May 15, 2026 by Pulumi
This data source provides details about a specific Database Tools Connection Credential resource in Oracle Cloud Infrastructure Database Tools Runtime service.
Get a credential
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDatabaseToolsConnectionCredential = oci.databasetools.getRuntimeDatabaseToolsConnectionCredential({
credentialKey: databaseToolsConnectionCredentialCredentialKey,
databaseToolsConnectionId: testDatabaseToolsConnection.id,
});
import pulumi
import pulumi_oci as oci
test_database_tools_connection_credential = oci.databasetools.get_runtime_database_tools_connection_credential(credential_key=database_tools_connection_credential_credential_key,
database_tools_connection_id=test_database_tools_connection["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/databasetools"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databasetools.GetRuntimeDatabaseToolsConnectionCredential(ctx, &databasetools.GetRuntimeDatabaseToolsConnectionCredentialArgs{
CredentialKey: databaseToolsConnectionCredentialCredentialKey,
DatabaseToolsConnectionId: testDatabaseToolsConnection.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 testDatabaseToolsConnectionCredential = Oci.DatabaseTools.GetRuntimeDatabaseToolsConnectionCredential.Invoke(new()
{
CredentialKey = databaseToolsConnectionCredentialCredentialKey,
DatabaseToolsConnectionId = testDatabaseToolsConnection.Id,
});
});
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.GetRuntimeDatabaseToolsConnectionCredentialArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 testDatabaseToolsConnectionCredential = DatabaseToolsFunctions.getRuntimeDatabaseToolsConnectionCredential(GetRuntimeDatabaseToolsConnectionCredentialArgs.builder()
.credentialKey(databaseToolsConnectionCredentialCredentialKey)
.databaseToolsConnectionId(testDatabaseToolsConnection.id())
.build());
}
}
variables:
testDatabaseToolsConnectionCredential:
fn::invoke:
function: oci:DatabaseTools:getRuntimeDatabaseToolsConnectionCredential
arguments:
credentialKey: ${databaseToolsConnectionCredentialCredentialKey}
databaseToolsConnectionId: ${testDatabaseToolsConnection.id}
Example coming soon!
Using getRuntimeDatabaseToolsConnectionCredential
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 getRuntimeDatabaseToolsConnectionCredential(args: GetRuntimeDatabaseToolsConnectionCredentialArgs, opts?: InvokeOptions): Promise<GetRuntimeDatabaseToolsConnectionCredentialResult>
function getRuntimeDatabaseToolsConnectionCredentialOutput(args: GetRuntimeDatabaseToolsConnectionCredentialOutputArgs, opts?: InvokeOptions): Output<GetRuntimeDatabaseToolsConnectionCredentialResult>def get_runtime_database_tools_connection_credential(credential_key: Optional[str] = None,
database_tools_connection_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRuntimeDatabaseToolsConnectionCredentialResult
def get_runtime_database_tools_connection_credential_output(credential_key: pulumi.Input[Optional[str]] = None,
database_tools_connection_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRuntimeDatabaseToolsConnectionCredentialResult]func LookupRuntimeDatabaseToolsConnectionCredential(ctx *Context, args *LookupRuntimeDatabaseToolsConnectionCredentialArgs, opts ...InvokeOption) (*LookupRuntimeDatabaseToolsConnectionCredentialResult, error)
func LookupRuntimeDatabaseToolsConnectionCredentialOutput(ctx *Context, args *LookupRuntimeDatabaseToolsConnectionCredentialOutputArgs, opts ...InvokeOption) LookupRuntimeDatabaseToolsConnectionCredentialResultOutput> Note: This function is named LookupRuntimeDatabaseToolsConnectionCredential in the Go SDK.
public static class GetRuntimeDatabaseToolsConnectionCredential
{
public static Task<GetRuntimeDatabaseToolsConnectionCredentialResult> InvokeAsync(GetRuntimeDatabaseToolsConnectionCredentialArgs args, InvokeOptions? opts = null)
public static Output<GetRuntimeDatabaseToolsConnectionCredentialResult> Invoke(GetRuntimeDatabaseToolsConnectionCredentialInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRuntimeDatabaseToolsConnectionCredentialResult> getRuntimeDatabaseToolsConnectionCredential(GetRuntimeDatabaseToolsConnectionCredentialArgs args, InvokeOptions options)
public static Output<GetRuntimeDatabaseToolsConnectionCredentialResult> getRuntimeDatabaseToolsConnectionCredential(GetRuntimeDatabaseToolsConnectionCredentialArgs args, InvokeOptions options)
fn::invoke:
function: oci:DatabaseTools/getRuntimeDatabaseToolsConnectionCredential:getRuntimeDatabaseToolsConnectionCredential
arguments:
# arguments dictionarydata "oci_databasetools_getruntimedatabasetoolsconnectioncredential" "name" {
# arguments
}The following arguments are supported:
- Credential
Key string - The name of the credential
- Database
Tools stringConnection Id - The OCID of a Database Tools connection.
- Credential
Key string - The name of the credential
- Database
Tools stringConnection Id - The OCID of a Database Tools connection.
- credential_
key string - The name of the credential
- database_
tools_ stringconnection_ id - The OCID of a Database Tools connection.
- credential
Key String - The name of the credential
- database
Tools StringConnection Id - The OCID of a Database Tools connection.
- credential
Key string - The name of the credential
- database
Tools stringConnection Id - The OCID of a Database Tools connection.
- credential_
key str - The name of the credential
- database_
tools_ strconnection_ id - The OCID of a Database Tools connection.
- credential
Key String - The name of the credential
- database
Tools StringConnection Id - The OCID of a Database Tools connection.
getRuntimeDatabaseToolsConnectionCredential Result
The following output properties are available:
- Credential
Key string - Database
Tools stringConnection Id - Enabled string
- Indicates whether this credential is enabled (TRUE) or not (FALSE)
- Id string
- Key string
- Name of the credential
- Key
Type string - Indicates whether this refers to a public synonym or not.
- Owner string
- Owner of the credential
- Password string
-
List<Get
Runtime Database Tools Connection Credential Related Resource> - A related resource for a credential.
- Type string
- The related resource type.
- User
Name string - Name of the user that will be used to log in to the remote database or the remote or local operating system
- Windows
Domain string - For a Windows target, the Windows domain to use when logging in
- Credential
Key string - Database
Tools stringConnection Id - Enabled string
- Indicates whether this credential is enabled (TRUE) or not (FALSE)
- Id string
- Key string
- Name of the credential
- Key
Type string - Indicates whether this refers to a public synonym or not.
- Owner string
- Owner of the credential
- Password string
-
[]Get
Runtime Database Tools Connection Credential Related Resource - A related resource for a credential.
- Type string
- The related resource type.
- User
Name string - Name of the user that will be used to log in to the remote database or the remote or local operating system
- Windows
Domain string - For a Windows target, the Windows domain to use when logging in
- credential_
key string - database_
tools_ stringconnection_ id - enabled string
- Indicates whether this credential is enabled (TRUE) or not (FALSE)
- id string
- key string
- Name of the credential
- key_
type string - Indicates whether this refers to a public synonym or not.
- owner string
- Owner of the credential
- password string
- list(object)
- A related resource for a credential.
- type string
- The related resource type.
- user_
name string - Name of the user that will be used to log in to the remote database or the remote or local operating system
- windows_
domain string - For a Windows target, the Windows domain to use when logging in
- credential
Key String - database
Tools StringConnection Id - enabled String
- Indicates whether this credential is enabled (TRUE) or not (FALSE)
- id String
- key String
- Name of the credential
- key
Type String - Indicates whether this refers to a public synonym or not.
- owner String
- Owner of the credential
- password String
-
List<Get
Runtime Connection Credential Related Resource> - A related resource for a credential.
- type String
- The related resource type.
- user
Name String - Name of the user that will be used to log in to the remote database or the remote or local operating system
- windows
Domain String - For a Windows target, the Windows domain to use when logging in
- credential
Key string - database
Tools stringConnection Id - enabled string
- Indicates whether this credential is enabled (TRUE) or not (FALSE)
- id string
- key string
- Name of the credential
- key
Type string - Indicates whether this refers to a public synonym or not.
- owner string
- Owner of the credential
- password string
-
Get
Runtime Database Tools Connection Credential Related Resource[] - A related resource for a credential.
- type string
- The related resource type.
- user
Name string - Name of the user that will be used to log in to the remote database or the remote or local operating system
- windows
Domain string - For a Windows target, the Windows domain to use when logging in
- credential_
key str - database_
tools_ strconnection_ id - enabled str
- Indicates whether this credential is enabled (TRUE) or not (FALSE)
- id str
- key str
- Name of the credential
- key_
type str - Indicates whether this refers to a public synonym or not.
- owner str
- Owner of the credential
- password str
-
Sequence[Get
Runtime Database Tools Connection Credential Related Resource] - A related resource for a credential.
- type str
- The related resource type.
- user_
name str - Name of the user that will be used to log in to the remote database or the remote or local operating system
- windows_
domain str - For a Windows target, the Windows domain to use when logging in
- credential
Key String - database
Tools StringConnection Id - enabled String
- Indicates whether this credential is enabled (TRUE) or not (FALSE)
- id String
- key String
- Name of the credential
- key
Type String - Indicates whether this refers to a public synonym or not.
- owner String
- Owner of the credential
- password String
- List<Property Map>
- A related resource for a credential.
- type String
- The related resource type.
- user
Name String - Name of the user that will be used to log in to the remote database or the remote or local operating system
- windows
Domain String - For a Windows target, the Windows domain to use when logging in
Supporting Types
GetRuntimeDatabaseToolsConnectionCredentialRelatedResource
- Identifier string
- The OCID of the related resource.
- Type string
- The related resource type.
- Identifier string
- The OCID of the related resource.
- Type string
- The related resource type.
- identifier string
- The OCID of the related resource.
- type string
- The related resource type.
- identifier String
- The OCID of the related resource.
- type String
- The related resource type.
- identifier string
- The OCID of the related resource.
- type string
- The related resource type.
- identifier str
- The OCID of the related resource.
- type str
- The related resource type.
- identifier String
- The OCID of the related resource.
- type String
- The related resource type.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.11.0
published on Friday, May 15, 2026 by Pulumi
published on Friday, May 15, 2026 by Pulumi
