1. Packages
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. DatabaseTools
  6. getRuntimeDatabaseToolsConnectionCredentialPublicSynonyms
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 Credential Public Synonyms in Oracle Cloud Infrastructure Database Tools Runtime service.

    Get a list of all public synonyms for the given credential

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDatabaseToolsConnectionCredentialPublicSynonyms = oci.databasetools.getRuntimeDatabaseToolsConnectionCredentialPublicSynonyms({
        credentialKey: databaseToolsConnectionCredentialPublicSynonymCredentialKey,
        databaseToolsConnectionId: testDatabaseToolsConnection.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_database_tools_connection_credential_public_synonyms = oci.databasetools.get_runtime_database_tools_connection_credential_public_synonyms(credential_key=database_tools_connection_credential_public_synonym_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.GetRuntimeDatabaseToolsConnectionCredentialPublicSynonyms(ctx, &databasetools.GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsArgs{
    			CredentialKey:             databaseToolsConnectionCredentialPublicSynonymCredentialKey,
    			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 testDatabaseToolsConnectionCredentialPublicSynonyms = Oci.DatabaseTools.GetRuntimeDatabaseToolsConnectionCredentialPublicSynonyms.Invoke(new()
        {
            CredentialKey = databaseToolsConnectionCredentialPublicSynonymCredentialKey,
            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.GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsArgs;
    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 testDatabaseToolsConnectionCredentialPublicSynonyms = DatabaseToolsFunctions.getRuntimeDatabaseToolsConnectionCredentialPublicSynonyms(GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsArgs.builder()
                .credentialKey(databaseToolsConnectionCredentialPublicSynonymCredentialKey)
                .databaseToolsConnectionId(testDatabaseToolsConnection.id())
                .build());
    
        }
    }
    
    variables:
      testDatabaseToolsConnectionCredentialPublicSynonyms:
        fn::invoke:
          function: oci:DatabaseTools:getRuntimeDatabaseToolsConnectionCredentialPublicSynonyms
          arguments:
            credentialKey: ${databaseToolsConnectionCredentialPublicSynonymCredentialKey}
            databaseToolsConnectionId: ${testDatabaseToolsConnection.id}
    
    Example coming soon!
    

    Using getRuntimeDatabaseToolsConnectionCredentialPublicSynonyms

    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 getRuntimeDatabaseToolsConnectionCredentialPublicSynonyms(args: GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsArgs, opts?: InvokeOptions): Promise<GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsResult>
    function getRuntimeDatabaseToolsConnectionCredentialPublicSynonymsOutput(args: GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsOutputArgs, opts?: InvokeOptions): Output<GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsResult>
    def get_runtime_database_tools_connection_credential_public_synonyms(credential_key: Optional[str] = None,
                                                                         database_tools_connection_id: Optional[str] = None,
                                                                         filters: Optional[Sequence[GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsFilter]] = None,
                                                                         opts: Optional[InvokeOptions] = None) -> GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsResult
    def get_runtime_database_tools_connection_credential_public_synonyms_output(credential_key: pulumi.Input[Optional[str]] = None,
                                                                         database_tools_connection_id: pulumi.Input[Optional[str]] = None,
                                                                         filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsFilterArgs]]]] = None,
                                                                         opts: Optional[InvokeOptions] = None) -> Output[GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsResult]
    func GetRuntimeDatabaseToolsConnectionCredentialPublicSynonyms(ctx *Context, args *GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsArgs, opts ...InvokeOption) (*GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsResult, error)
    func GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsOutput(ctx *Context, args *GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsOutputArgs, opts ...InvokeOption) GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsResultOutput

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

    public static class GetRuntimeDatabaseToolsConnectionCredentialPublicSynonyms 
    {
        public static Task<GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsResult> InvokeAsync(GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsArgs args, InvokeOptions? opts = null)
        public static Output<GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsResult> Invoke(GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsResult> getRuntimeDatabaseToolsConnectionCredentialPublicSynonyms(GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsArgs args, InvokeOptions options)
    public static Output<GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsResult> getRuntimeDatabaseToolsConnectionCredentialPublicSynonyms(GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DatabaseTools/getRuntimeDatabaseToolsConnectionCredentialPublicSynonyms:getRuntimeDatabaseToolsConnectionCredentialPublicSynonyms
      arguments:
        # arguments dictionary
    data "oci_databasetools_getruntimedatabasetoolsconnectioncredentialpublicsynonyms" "name" {
        # arguments
    }

    The following arguments are supported:

    CredentialKey string
    The name of the credential
    DatabaseToolsConnectionId string
    The OCID of a Database Tools connection.
    Filters []GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsFilter
    credential_key string
    The name of the credential
    database_tools_connection_id string
    The OCID of a Database Tools connection.
    filters list(object)
    credentialKey String
    The name of the credential
    databaseToolsConnectionId String
    The OCID of a Database Tools connection.
    filters List<GetRuntimeConnectionCredentialPublicSynonymsFilter>
    credentialKey string
    The name of the credential
    databaseToolsConnectionId string
    The OCID of a Database Tools connection.
    filters GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsFilter[]
    credentialKey String
    The name of the credential
    databaseToolsConnectionId String
    The OCID of a Database Tools connection.
    filters List<Property Map>

    getRuntimeDatabaseToolsConnectionCredentialPublicSynonyms Result

    The following output properties are available:

    credential_key string
    credential_public_synonym_collections list(object)
    The list of credential_public_synonym_collection.
    database_tools_connection_id string
    id string
    The provider-assigned unique ID for this managed resource.
    filters list(object)
    credentialKey String
    credentialPublicSynonymCollections List<Property Map>
    The list of credential_public_synonym_collection.
    databaseToolsConnectionId String
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<Property Map>

    Supporting Types

    GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsCredentialPublicSynonymCollection

    GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsCredentialPublicSynonymCollectionItem

    CredentialKey string
    The name of the credential
    DatabaseToolsConnectionId string
    The OCID of a Database Tools connection.
    Key string
    The name of the public synonym for the credential
    CredentialKey string
    The name of the credential
    DatabaseToolsConnectionId string
    The OCID of a Database Tools connection.
    Key string
    The name of the public synonym for the credential
    credential_key string
    The name of the credential
    database_tools_connection_id string
    The OCID of a Database Tools connection.
    key string
    The name of the public synonym for the credential
    credentialKey String
    The name of the credential
    databaseToolsConnectionId String
    The OCID of a Database Tools connection.
    key String
    The name of the public synonym for the credential
    credentialKey string
    The name of the credential
    databaseToolsConnectionId string
    The OCID of a Database Tools connection.
    key string
    The name of the public synonym for the credential
    credential_key str
    The name of the credential
    database_tools_connection_id str
    The OCID of a Database Tools connection.
    key str
    The name of the public synonym for the credential
    credentialKey String
    The name of the credential
    databaseToolsConnectionId String
    The OCID of a Database Tools connection.
    key String
    The name of the public synonym for the credential

    GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymsFilter

    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.