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 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 dictionarydata "oci_databasetools_getruntimedatabasetoolsconnectioncredentialpublicsynonym" "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.
- Public
Synonym stringKey - The name of the public synonym for the credential
- Credential
Key string - The name of the credential
- Database
Tools stringConnection Id - The OCID of a Database Tools connection.
- Public
Synonym stringKey - The name of the public synonym for the credential
- credential_
key string - The name of the credential
- database_
tools_ stringconnection_ id - The OCID of a Database Tools connection.
- public_
synonym_ stringkey - The name of the public synonym for the credential
- credential
Key String - The name of the credential
- database
Tools StringConnection Id - The OCID of a Database Tools connection.
- public
Synonym StringKey - The name of the public synonym for the credential
- credential
Key string - The name of the credential
- database
Tools stringConnection Id - The OCID of a Database Tools connection.
- public
Synonym stringKey - The name of the public synonym for the credential
- credential_
key str - The name of the credential
- database_
tools_ strconnection_ id - The OCID of a Database Tools connection.
- public_
synonym_ strkey - The name of the public synonym for the credential
- credential
Key String - The name of the credential
- database
Tools StringConnection Id - The OCID of a Database Tools connection.
- public
Synonym StringKey - The name of the public synonym for the credential
getRuntimeDatabaseToolsConnectionCredentialPublicSynonym Result
The following output properties are available:
- Credential
Key string - Database
Tools stringConnection Id - Id string
- Key string
- The name of the public synonym for the credential
- Public
Synonym stringKey
- Credential
Key string - Database
Tools stringConnection Id - Id string
- Key string
- The name of the public synonym for the credential
- Public
Synonym stringKey
- credential_
key string - database_
tools_ stringconnection_ id - id string
- key string
- The name of the public synonym for the credential
- public_
synonym_ stringkey
- credential
Key String - database
Tools StringConnection Id - id String
- key String
- The name of the public synonym for the credential
- public
Synonym StringKey
- credential
Key string - database
Tools stringConnection Id - id string
- key string
- The name of the public synonym for the credential
- public
Synonym stringKey
- credential_
key str - database_
tools_ strconnection_ id - id str
- key str
- The name of the public synonym for the credential
- public_
synonym_ strkey
- credential
Key String - database
Tools StringConnection Id - id String
- key String
- The name of the public synonym for the credential
- public
Synonym StringKey
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
