1. Packages
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. DatabaseTools
  6. getRuntimeDatabaseToolsConnectionUserCredential
Viewing docs for Oracle Cloud Infrastructure v4.11.0
published on Friday, May 15, 2026 by Pulumi
oci logo
Viewing docs for Oracle Cloud Infrastructure v4.11.0
published on Friday, May 15, 2026 by Pulumi

    This data source provides details about a specific Database Tools Connection User Credential resource in Oracle Cloud Infrastructure Database Tools Runtime service.

    Get a user credential

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDatabaseToolsConnectionUserCredential = oci.databasetools.getRuntimeDatabaseToolsConnectionUserCredential({
        credentialKey: databaseToolsConnectionUserCredentialCredentialKey,
        databaseToolsConnectionId: testDatabaseToolsConnection.id,
        userKey: databaseToolsConnectionUserCredentialUserKey,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_database_tools_connection_user_credential = oci.databasetools.get_runtime_database_tools_connection_user_credential(credential_key=database_tools_connection_user_credential_credential_key,
        database_tools_connection_id=test_database_tools_connection["id"],
        user_key=database_tools_connection_user_credential_user_key)
    
    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.GetRuntimeDatabaseToolsConnectionUserCredential(ctx, &databasetools.GetRuntimeDatabaseToolsConnectionUserCredentialArgs{
    			CredentialKey:             databaseToolsConnectionUserCredentialCredentialKey,
    			DatabaseToolsConnectionId: testDatabaseToolsConnection.Id,
    			UserKey:                   databaseToolsConnectionUserCredentialUserKey,
    		}, 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 testDatabaseToolsConnectionUserCredential = Oci.DatabaseTools.GetRuntimeDatabaseToolsConnectionUserCredential.Invoke(new()
        {
            CredentialKey = databaseToolsConnectionUserCredentialCredentialKey,
            DatabaseToolsConnectionId = testDatabaseToolsConnection.Id,
            UserKey = databaseToolsConnectionUserCredentialUserKey,
        });
    
    });
    
    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.GetRuntimeDatabaseToolsConnectionUserCredentialArgs;
    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 testDatabaseToolsConnectionUserCredential = DatabaseToolsFunctions.getRuntimeDatabaseToolsConnectionUserCredential(GetRuntimeDatabaseToolsConnectionUserCredentialArgs.builder()
                .credentialKey(databaseToolsConnectionUserCredentialCredentialKey)
                .databaseToolsConnectionId(testDatabaseToolsConnection.id())
                .userKey(databaseToolsConnectionUserCredentialUserKey)
                .build());
    
        }
    }
    
    variables:
      testDatabaseToolsConnectionUserCredential:
        fn::invoke:
          function: oci:DatabaseTools:getRuntimeDatabaseToolsConnectionUserCredential
          arguments:
            credentialKey: ${databaseToolsConnectionUserCredentialCredentialKey}
            databaseToolsConnectionId: ${testDatabaseToolsConnection.id}
            userKey: ${databaseToolsConnectionUserCredentialUserKey}
    
    Example coming soon!
    

    Using getRuntimeDatabaseToolsConnectionUserCredential

    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 getRuntimeDatabaseToolsConnectionUserCredential(args: GetRuntimeDatabaseToolsConnectionUserCredentialArgs, opts?: InvokeOptions): Promise<GetRuntimeDatabaseToolsConnectionUserCredentialResult>
    function getRuntimeDatabaseToolsConnectionUserCredentialOutput(args: GetRuntimeDatabaseToolsConnectionUserCredentialOutputArgs, opts?: InvokeOptions): Output<GetRuntimeDatabaseToolsConnectionUserCredentialResult>
    def get_runtime_database_tools_connection_user_credential(credential_key: Optional[str] = None,
                                                              database_tools_connection_id: Optional[str] = None,
                                                              user_key: Optional[str] = None,
                                                              opts: Optional[InvokeOptions] = None) -> GetRuntimeDatabaseToolsConnectionUserCredentialResult
    def get_runtime_database_tools_connection_user_credential_output(credential_key: pulumi.Input[Optional[str]] = None,
                                                              database_tools_connection_id: pulumi.Input[Optional[str]] = None,
                                                              user_key: pulumi.Input[Optional[str]] = None,
                                                              opts: Optional[InvokeOptions] = None) -> Output[GetRuntimeDatabaseToolsConnectionUserCredentialResult]
    func GetRuntimeDatabaseToolsConnectionUserCredential(ctx *Context, args *GetRuntimeDatabaseToolsConnectionUserCredentialArgs, opts ...InvokeOption) (*GetRuntimeDatabaseToolsConnectionUserCredentialResult, error)
    func GetRuntimeDatabaseToolsConnectionUserCredentialOutput(ctx *Context, args *GetRuntimeDatabaseToolsConnectionUserCredentialOutputArgs, opts ...InvokeOption) GetRuntimeDatabaseToolsConnectionUserCredentialResultOutput

    > Note: This function is named GetRuntimeDatabaseToolsConnectionUserCredential in the Go SDK.

    public static class GetRuntimeDatabaseToolsConnectionUserCredential 
    {
        public static Task<GetRuntimeDatabaseToolsConnectionUserCredentialResult> InvokeAsync(GetRuntimeDatabaseToolsConnectionUserCredentialArgs args, InvokeOptions? opts = null)
        public static Output<GetRuntimeDatabaseToolsConnectionUserCredentialResult> Invoke(GetRuntimeDatabaseToolsConnectionUserCredentialInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRuntimeDatabaseToolsConnectionUserCredentialResult> getRuntimeDatabaseToolsConnectionUserCredential(GetRuntimeDatabaseToolsConnectionUserCredentialArgs args, InvokeOptions options)
    public static Output<GetRuntimeDatabaseToolsConnectionUserCredentialResult> getRuntimeDatabaseToolsConnectionUserCredential(GetRuntimeDatabaseToolsConnectionUserCredentialArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DatabaseTools/getRuntimeDatabaseToolsConnectionUserCredential:getRuntimeDatabaseToolsConnectionUserCredential
      arguments:
        # arguments dictionary
    data "oci_databasetools_getruntimedatabasetoolsconnectionusercredential" "name" {
        # arguments
    }

    The following arguments are supported:

    CredentialKey string
    The name of the credential
    DatabaseToolsConnectionId string
    The OCID of a Database Tools connection.
    UserKey string
    The name of the database user.
    CredentialKey string
    The name of the credential
    DatabaseToolsConnectionId string
    The OCID of a Database Tools connection.
    UserKey string
    The name of the database user.
    credential_key string
    The name of the credential
    database_tools_connection_id string
    The OCID of a Database Tools connection.
    user_key string
    The name of the database user.
    credentialKey String
    The name of the credential
    databaseToolsConnectionId String
    The OCID of a Database Tools connection.
    userKey String
    The name of the database user.
    credentialKey string
    The name of the credential
    databaseToolsConnectionId string
    The OCID of a Database Tools connection.
    userKey string
    The name of the database user.
    credential_key str
    The name of the credential
    database_tools_connection_id str
    The OCID of a Database Tools connection.
    user_key str
    The name of the database user.
    credentialKey String
    The name of the credential
    databaseToolsConnectionId String
    The OCID of a Database Tools connection.
    userKey String
    The name of the database user.

    getRuntimeDatabaseToolsConnectionUserCredential Result

    The following output properties are available:

    CredentialKey string
    DatabaseToolsConnectionId string
    Enabled string
    Indicates whether this credential is enabled (TRUE) or not (FALSE)
    Id string
    The provider-assigned unique ID for this managed resource.
    Key string
    Name of the credential
    KeyType string
    Indicates whether this refers to a public synonym or not.
    Owner string
    Owner of the credential
    RelatedResources List<GetRuntimeDatabaseToolsConnectionUserCredentialRelatedResource>
    A related resource for a credential.
    UserKey string
    UserName string
    Name of the user that will be used to log in to the remote database or the remote or local operating system
    WindowsDomain string
    For a Windows target, the Windows domain to use when logging in
    CredentialKey string
    DatabaseToolsConnectionId string
    Enabled string
    Indicates whether this credential is enabled (TRUE) or not (FALSE)
    Id string
    The provider-assigned unique ID for this managed resource.
    Key string
    Name of the credential
    KeyType string
    Indicates whether this refers to a public synonym or not.
    Owner string
    Owner of the credential
    RelatedResources []GetRuntimeDatabaseToolsConnectionUserCredentialRelatedResource
    A related resource for a credential.
    UserKey string
    UserName string
    Name of the user that will be used to log in to the remote database or the remote or local operating system
    WindowsDomain string
    For a Windows target, the Windows domain to use when logging in
    credential_key string
    database_tools_connection_id string
    enabled string
    Indicates whether this credential is enabled (TRUE) or not (FALSE)
    id string
    The provider-assigned unique ID for this managed resource.
    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
    related_resources list(object)
    A related resource for a credential.
    user_key string
    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
    credentialKey String
    databaseToolsConnectionId String
    enabled String
    Indicates whether this credential is enabled (TRUE) or not (FALSE)
    id String
    The provider-assigned unique ID for this managed resource.
    key String
    Name of the credential
    keyType String
    Indicates whether this refers to a public synonym or not.
    owner String
    Owner of the credential
    relatedResources List<GetRuntimeConnectionUserCredentialRelatedResource>
    A related resource for a credential.
    userKey String
    userName String
    Name of the user that will be used to log in to the remote database or the remote or local operating system
    windowsDomain String
    For a Windows target, the Windows domain to use when logging in
    credentialKey string
    databaseToolsConnectionId string
    enabled string
    Indicates whether this credential is enabled (TRUE) or not (FALSE)
    id string
    The provider-assigned unique ID for this managed resource.
    key string
    Name of the credential
    keyType string
    Indicates whether this refers to a public synonym or not.
    owner string
    Owner of the credential
    relatedResources GetRuntimeDatabaseToolsConnectionUserCredentialRelatedResource[]
    A related resource for a credential.
    userKey string
    userName string
    Name of the user that will be used to log in to the remote database or the remote or local operating system
    windowsDomain string
    For a Windows target, the Windows domain to use when logging in
    credential_key str
    database_tools_connection_id str
    enabled str
    Indicates whether this credential is enabled (TRUE) or not (FALSE)
    id str
    The provider-assigned unique ID for this managed resource.
    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
    related_resources Sequence[GetRuntimeDatabaseToolsConnectionUserCredentialRelatedResource]
    A related resource for a credential.
    user_key str
    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
    credentialKey String
    databaseToolsConnectionId String
    enabled String
    Indicates whether this credential is enabled (TRUE) or not (FALSE)
    id String
    The provider-assigned unique ID for this managed resource.
    key String
    Name of the credential
    keyType String
    Indicates whether this refers to a public synonym or not.
    owner String
    Owner of the credential
    relatedResources List<Property Map>
    A related resource for a credential.
    userKey String
    userName String
    Name of the user that will be used to log in to the remote database or the remote or local operating system
    windowsDomain String
    For a Windows target, the Windows domain to use when logging in

    Supporting Types

    GetRuntimeDatabaseToolsConnectionUserCredentialRelatedResource

    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 oci Terraform Provider.
    oci logo
    Viewing docs for Oracle Cloud Infrastructure v4.11.0
    published on Friday, May 15, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.