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

    Get a public synonym

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDatabaseToolsConnectionCredentialPublicSynonym = oci.databasetools.getRuntimeDatabaseToolsConnectionCredentialPublicSynonym({
        credentialKey: databaseToolsConnectionCredentialPublicSynonymCredentialKey,
        databaseToolsConnectionId: testDatabaseToolsConnection.id,
        publicSynonymKey: databaseToolsConnectionCredentialPublicSynonymPublicSynonymKey,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_database_tools_connection_credential_public_synonym = oci.databasetools.get_runtime_database_tools_connection_credential_public_synonym(credential_key=database_tools_connection_credential_public_synonym_credential_key,
        database_tools_connection_id=test_database_tools_connection["id"],
        public_synonym_key=database_tools_connection_credential_public_synonym_public_synonym_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.GetRuntimeDatabaseToolsConnectionCredentialPublicSynonym(ctx, &databasetools.GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymArgs{
    			CredentialKey:             databaseToolsConnectionCredentialPublicSynonymCredentialKey,
    			DatabaseToolsConnectionId: testDatabaseToolsConnection.Id,
    			PublicSynonymKey:          databaseToolsConnectionCredentialPublicSynonymPublicSynonymKey,
    		}, 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 testDatabaseToolsConnectionCredentialPublicSynonym = Oci.DatabaseTools.GetRuntimeDatabaseToolsConnectionCredentialPublicSynonym.Invoke(new()
        {
            CredentialKey = databaseToolsConnectionCredentialPublicSynonymCredentialKey,
            DatabaseToolsConnectionId = testDatabaseToolsConnection.Id,
            PublicSynonymKey = databaseToolsConnectionCredentialPublicSynonymPublicSynonymKey,
        });
    
    });
    
    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.GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymArgs;
    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 testDatabaseToolsConnectionCredentialPublicSynonym = DatabaseToolsFunctions.getRuntimeDatabaseToolsConnectionCredentialPublicSynonym(GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymArgs.builder()
                .credentialKey(databaseToolsConnectionCredentialPublicSynonymCredentialKey)
                .databaseToolsConnectionId(testDatabaseToolsConnection.id())
                .publicSynonymKey(databaseToolsConnectionCredentialPublicSynonymPublicSynonymKey)
                .build());
    
        }
    }
    
    variables:
      testDatabaseToolsConnectionCredentialPublicSynonym:
        fn::invoke:
          function: oci:DatabaseTools:getRuntimeDatabaseToolsConnectionCredentialPublicSynonym
          arguments:
            credentialKey: ${databaseToolsConnectionCredentialPublicSynonymCredentialKey}
            databaseToolsConnectionId: ${testDatabaseToolsConnection.id}
            publicSynonymKey: ${databaseToolsConnectionCredentialPublicSynonymPublicSynonymKey}
    
    Example coming soon!
    

    Using getRuntimeDatabaseToolsConnectionCredentialPublicSynonym

    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 getRuntimeDatabaseToolsConnectionCredentialPublicSynonym(args: GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymArgs, opts?: InvokeOptions): Promise<GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymResult>
    function getRuntimeDatabaseToolsConnectionCredentialPublicSynonymOutput(args: GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymOutputArgs, opts?: InvokeOptions): Output<GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymResult>
    def get_runtime_database_tools_connection_credential_public_synonym(credential_key: Optional[str] = None,
                                                                        database_tools_connection_id: Optional[str] = None,
                                                                        public_synonym_key: Optional[str] = None,
                                                                        opts: Optional[InvokeOptions] = None) -> GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymResult
    def get_runtime_database_tools_connection_credential_public_synonym_output(credential_key: pulumi.Input[Optional[str]] = None,
                                                                        database_tools_connection_id: pulumi.Input[Optional[str]] = None,
                                                                        public_synonym_key: pulumi.Input[Optional[str]] = None,
                                                                        opts: Optional[InvokeOptions] = None) -> Output[GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymResult]
    func LookupRuntimeDatabaseToolsConnectionCredentialPublicSynonym(ctx *Context, args *LookupRuntimeDatabaseToolsConnectionCredentialPublicSynonymArgs, opts ...InvokeOption) (*LookupRuntimeDatabaseToolsConnectionCredentialPublicSynonymResult, error)
    func LookupRuntimeDatabaseToolsConnectionCredentialPublicSynonymOutput(ctx *Context, args *LookupRuntimeDatabaseToolsConnectionCredentialPublicSynonymOutputArgs, opts ...InvokeOption) LookupRuntimeDatabaseToolsConnectionCredentialPublicSynonymResultOutput

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

    public static class GetRuntimeDatabaseToolsConnectionCredentialPublicSynonym 
    {
        public static Task<GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymResult> InvokeAsync(GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymArgs args, InvokeOptions? opts = null)
        public static Output<GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymResult> Invoke(GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymResult> getRuntimeDatabaseToolsConnectionCredentialPublicSynonym(GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymArgs args, InvokeOptions options)
    public static Output<GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymResult> getRuntimeDatabaseToolsConnectionCredentialPublicSynonym(GetRuntimeDatabaseToolsConnectionCredentialPublicSynonymArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DatabaseTools/getRuntimeDatabaseToolsConnectionCredentialPublicSynonym:getRuntimeDatabaseToolsConnectionCredentialPublicSynonym
      arguments:
        # arguments dictionary
    data "oci_databasetools_getruntimedatabasetoolsconnectioncredentialpublicsynonym" "name" {
        # arguments
    }

    The following arguments are supported:

    CredentialKey string
    The name of the credential
    DatabaseToolsConnectionId string
    The OCID of a Database Tools connection.
    PublicSynonymKey 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.
    PublicSynonymKey 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.
    public_synonym_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.
    publicSynonymKey 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.
    publicSynonymKey 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.
    public_synonym_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.
    publicSynonymKey String
    The name of the public synonym for the credential

    getRuntimeDatabaseToolsConnectionCredentialPublicSynonym Result

    The following output properties are available:

    CredentialKey string
    DatabaseToolsConnectionId string
    Id string
    Key string
    The name of the public synonym for the credential
    PublicSynonymKey string
    CredentialKey string
    DatabaseToolsConnectionId string
    Id string
    Key string
    The name of the public synonym for the credential
    PublicSynonymKey string
    credential_key string
    database_tools_connection_id string
    id string
    key string
    The name of the public synonym for the credential
    public_synonym_key string
    credentialKey String
    databaseToolsConnectionId String
    id String
    key String
    The name of the public synonym for the credential
    publicSynonymKey String
    credentialKey string
    databaseToolsConnectionId string
    id string
    key string
    The name of the public synonym for the credential
    publicSynonymKey string
    credential_key str
    database_tools_connection_id str
    id str
    key str
    The name of the public synonym for the credential
    public_synonym_key str
    credentialKey String
    databaseToolsConnectionId String
    id String
    key String
    The name of the public synonym for the credential
    publicSynonymKey String

    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.