1. Packages
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. DatabaseTools
  6. getRuntimeDatabaseToolsConnectionCredentials
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 the list of Database Tools Connection Credentials in Oracle Cloud Infrastructure Database Tools Runtime service.

    Returns a paginated list of CredentialSummary for the specified request.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDatabaseToolsConnectionCredentials = oci.databasetools.getRuntimeDatabaseToolsConnectionCredentials({
        databaseToolsConnectionId: testDatabaseToolsConnection.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_database_tools_connection_credentials = oci.databasetools.get_runtime_database_tools_connection_credentials(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.GetRuntimeDatabaseToolsConnectionCredentials(ctx, &databasetools.GetRuntimeDatabaseToolsConnectionCredentialsArgs{
    			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 testDatabaseToolsConnectionCredentials = Oci.DatabaseTools.GetRuntimeDatabaseToolsConnectionCredentials.Invoke(new()
        {
            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.GetRuntimeDatabaseToolsConnectionCredentialsArgs;
    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 testDatabaseToolsConnectionCredentials = DatabaseToolsFunctions.getRuntimeDatabaseToolsConnectionCredentials(GetRuntimeDatabaseToolsConnectionCredentialsArgs.builder()
                .databaseToolsConnectionId(testDatabaseToolsConnection.id())
                .build());
    
        }
    }
    
    variables:
      testDatabaseToolsConnectionCredentials:
        fn::invoke:
          function: oci:DatabaseTools:getRuntimeDatabaseToolsConnectionCredentials
          arguments:
            databaseToolsConnectionId: ${testDatabaseToolsConnection.id}
    
    Example coming soon!
    

    Using getRuntimeDatabaseToolsConnectionCredentials

    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 getRuntimeDatabaseToolsConnectionCredentials(args: GetRuntimeDatabaseToolsConnectionCredentialsArgs, opts?: InvokeOptions): Promise<GetRuntimeDatabaseToolsConnectionCredentialsResult>
    function getRuntimeDatabaseToolsConnectionCredentialsOutput(args: GetRuntimeDatabaseToolsConnectionCredentialsOutputArgs, opts?: InvokeOptions): Output<GetRuntimeDatabaseToolsConnectionCredentialsResult>
    def get_runtime_database_tools_connection_credentials(database_tools_connection_id: Optional[str] = None,
                                                          filters: Optional[Sequence[GetRuntimeDatabaseToolsConnectionCredentialsFilter]] = None,
                                                          opts: Optional[InvokeOptions] = None) -> GetRuntimeDatabaseToolsConnectionCredentialsResult
    def get_runtime_database_tools_connection_credentials_output(database_tools_connection_id: pulumi.Input[Optional[str]] = None,
                                                          filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetRuntimeDatabaseToolsConnectionCredentialsFilterArgs]]]] = None,
                                                          opts: Optional[InvokeOptions] = None) -> Output[GetRuntimeDatabaseToolsConnectionCredentialsResult]
    func GetRuntimeDatabaseToolsConnectionCredentials(ctx *Context, args *GetRuntimeDatabaseToolsConnectionCredentialsArgs, opts ...InvokeOption) (*GetRuntimeDatabaseToolsConnectionCredentialsResult, error)
    func GetRuntimeDatabaseToolsConnectionCredentialsOutput(ctx *Context, args *GetRuntimeDatabaseToolsConnectionCredentialsOutputArgs, opts ...InvokeOption) GetRuntimeDatabaseToolsConnectionCredentialsResultOutput

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

    public static class GetRuntimeDatabaseToolsConnectionCredentials 
    {
        public static Task<GetRuntimeDatabaseToolsConnectionCredentialsResult> InvokeAsync(GetRuntimeDatabaseToolsConnectionCredentialsArgs args, InvokeOptions? opts = null)
        public static Output<GetRuntimeDatabaseToolsConnectionCredentialsResult> Invoke(GetRuntimeDatabaseToolsConnectionCredentialsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRuntimeDatabaseToolsConnectionCredentialsResult> getRuntimeDatabaseToolsConnectionCredentials(GetRuntimeDatabaseToolsConnectionCredentialsArgs args, InvokeOptions options)
    public static Output<GetRuntimeDatabaseToolsConnectionCredentialsResult> getRuntimeDatabaseToolsConnectionCredentials(GetRuntimeDatabaseToolsConnectionCredentialsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DatabaseTools/getRuntimeDatabaseToolsConnectionCredentials:getRuntimeDatabaseToolsConnectionCredentials
      arguments:
        # arguments dictionary
    data "oci_databasetools_getruntimedatabasetoolsconnectioncredentials" "name" {
        # arguments
    }

    The following arguments are supported:

    database_tools_connection_id string
    The OCID of a Database Tools connection.
    filters list(object)
    databaseToolsConnectionId String
    The OCID of a Database Tools connection.
    filters List<Property Map>

    getRuntimeDatabaseToolsConnectionCredentials Result

    The following output properties are available:

    credential_collections list(object)
    The list of credential_collection.
    database_tools_connection_id string
    id string
    The provider-assigned unique ID for this managed resource.
    filters list(object)
    credentialCollections List<GetRuntimeConnectionCredentialsCredentialCollection>
    The list of credential_collection.
    databaseToolsConnectionId String
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetRuntimeConnectionCredentialsFilter>
    credentialCollections List<Property Map>
    The list of credential_collection.
    databaseToolsConnectionId String
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<Property Map>

    Supporting Types

    GetRuntimeDatabaseToolsConnectionCredentialsCredentialCollection

    GetRuntimeDatabaseToolsConnectionCredentialsCredentialCollectionItem

    DatabaseToolsConnectionId string
    The OCID of a Database Tools connection.
    Enabled string
    Indicates whether this credential is enabled (TRUE) or not (FALSE)
    Key string
    Name of the credential
    KeyType string
    Indicates whether this refers to a public synonym or not.
    Owner string
    Owner of the credential
    Password string
    RelatedResources List<GetRuntimeDatabaseToolsConnectionCredentialsCredentialCollectionItemRelatedResource>
    A related resource for a credential.
    Type string
    The related resource type.
    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
    DatabaseToolsConnectionId string
    The OCID of a Database Tools connection.
    Enabled string
    Indicates whether this credential is enabled (TRUE) or not (FALSE)
    Key string
    Name of the credential
    KeyType string
    Indicates whether this refers to a public synonym or not.
    Owner string
    Owner of the credential
    Password string
    RelatedResources []GetRuntimeDatabaseToolsConnectionCredentialsCredentialCollectionItemRelatedResource
    A related resource for a credential.
    Type string
    The related resource type.
    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
    database_tools_connection_id string
    The OCID of a Database Tools connection.
    enabled string
    Indicates whether this credential is enabled (TRUE) or not (FALSE)
    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
    related_resources 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
    databaseToolsConnectionId String
    The OCID of a Database Tools connection.
    enabled String
    Indicates whether this credential is enabled (TRUE) or not (FALSE)
    key String
    Name of the credential
    keyType String
    Indicates whether this refers to a public synonym or not.
    owner String
    Owner of the credential
    password String
    relatedResources List<GetRuntimeConnectionCredentialsCredentialCollectionItemRelatedResource>
    A related resource for a credential.
    type String
    The related resource type.
    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
    databaseToolsConnectionId string
    The OCID of a Database Tools connection.
    enabled string
    Indicates whether this credential is enabled (TRUE) or not (FALSE)
    key string
    Name of the credential
    keyType string
    Indicates whether this refers to a public synonym or not.
    owner string
    Owner of the credential
    password string
    relatedResources GetRuntimeDatabaseToolsConnectionCredentialsCredentialCollectionItemRelatedResource[]
    A related resource for a credential.
    type string
    The related resource type.
    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
    database_tools_connection_id str
    The OCID of a Database Tools connection.
    enabled str
    Indicates whether this credential is enabled (TRUE) or not (FALSE)
    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
    related_resources Sequence[GetRuntimeDatabaseToolsConnectionCredentialsCredentialCollectionItemRelatedResource]
    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
    databaseToolsConnectionId String
    The OCID of a Database Tools connection.
    enabled String
    Indicates whether this credential is enabled (TRUE) or not (FALSE)
    key String
    Name of the credential
    keyType String
    Indicates whether this refers to a public synonym or not.
    owner String
    Owner of the credential
    password String
    relatedResources List<Property Map>
    A related resource for a credential.
    type String
    The related resource type.
    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

    GetRuntimeDatabaseToolsConnectionCredentialsCredentialCollectionItemRelatedResource

    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.

    GetRuntimeDatabaseToolsConnectionCredentialsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name string
    values list(string)
    regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    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.