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

    Get a credential execute grantee

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDatabaseToolsConnectionCredentialExecuteGrantee = oci.databasetools.getRuntimeDatabaseToolsConnectionCredentialExecuteGrantee({
        credentialKey: databaseToolsConnectionCredentialExecuteGranteeCredentialKey,
        databaseToolsConnectionId: testDatabaseToolsConnection.id,
        executeGranteeKey: databaseToolsConnectionCredentialExecuteGranteeExecuteGranteeKey,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_database_tools_connection_credential_execute_grantee = oci.databasetools.get_runtime_database_tools_connection_credential_execute_grantee(credential_key=database_tools_connection_credential_execute_grantee_credential_key,
        database_tools_connection_id=test_database_tools_connection["id"],
        execute_grantee_key=database_tools_connection_credential_execute_grantee_execute_grantee_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.GetRuntimeDatabaseToolsConnectionCredentialExecuteGrantee(ctx, &databasetools.GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs{
    			CredentialKey:             databaseToolsConnectionCredentialExecuteGranteeCredentialKey,
    			DatabaseToolsConnectionId: testDatabaseToolsConnection.Id,
    			ExecuteGranteeKey:         databaseToolsConnectionCredentialExecuteGranteeExecuteGranteeKey,
    		}, 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 testDatabaseToolsConnectionCredentialExecuteGrantee = Oci.DatabaseTools.GetRuntimeDatabaseToolsConnectionCredentialExecuteGrantee.Invoke(new()
        {
            CredentialKey = databaseToolsConnectionCredentialExecuteGranteeCredentialKey,
            DatabaseToolsConnectionId = testDatabaseToolsConnection.Id,
            ExecuteGranteeKey = databaseToolsConnectionCredentialExecuteGranteeExecuteGranteeKey,
        });
    
    });
    
    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.GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs;
    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 testDatabaseToolsConnectionCredentialExecuteGrantee = DatabaseToolsFunctions.getRuntimeDatabaseToolsConnectionCredentialExecuteGrantee(GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs.builder()
                .credentialKey(databaseToolsConnectionCredentialExecuteGranteeCredentialKey)
                .databaseToolsConnectionId(testDatabaseToolsConnection.id())
                .executeGranteeKey(databaseToolsConnectionCredentialExecuteGranteeExecuteGranteeKey)
                .build());
    
        }
    }
    
    variables:
      testDatabaseToolsConnectionCredentialExecuteGrantee:
        fn::invoke:
          function: oci:DatabaseTools:getRuntimeDatabaseToolsConnectionCredentialExecuteGrantee
          arguments:
            credentialKey: ${databaseToolsConnectionCredentialExecuteGranteeCredentialKey}
            databaseToolsConnectionId: ${testDatabaseToolsConnection.id}
            executeGranteeKey: ${databaseToolsConnectionCredentialExecuteGranteeExecuteGranteeKey}
    
    Example coming soon!
    

    Using getRuntimeDatabaseToolsConnectionCredentialExecuteGrantee

    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 getRuntimeDatabaseToolsConnectionCredentialExecuteGrantee(args: GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs, opts?: InvokeOptions): Promise<GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteeResult>
    function getRuntimeDatabaseToolsConnectionCredentialExecuteGranteeOutput(args: GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteeOutputArgs, opts?: InvokeOptions): Output<GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteeResult>
    def get_runtime_database_tools_connection_credential_execute_grantee(credential_key: Optional[str] = None,
                                                                         database_tools_connection_id: Optional[str] = None,
                                                                         execute_grantee_key: Optional[str] = None,
                                                                         opts: Optional[InvokeOptions] = None) -> GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteeResult
    def get_runtime_database_tools_connection_credential_execute_grantee_output(credential_key: pulumi.Input[Optional[str]] = None,
                                                                         database_tools_connection_id: pulumi.Input[Optional[str]] = None,
                                                                         execute_grantee_key: pulumi.Input[Optional[str]] = None,
                                                                         opts: Optional[InvokeOptions] = None) -> Output[GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteeResult]
    func LookupRuntimeDatabaseToolsConnectionCredentialExecuteGrantee(ctx *Context, args *LookupRuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs, opts ...InvokeOption) (*LookupRuntimeDatabaseToolsConnectionCredentialExecuteGranteeResult, error)
    func LookupRuntimeDatabaseToolsConnectionCredentialExecuteGranteeOutput(ctx *Context, args *LookupRuntimeDatabaseToolsConnectionCredentialExecuteGranteeOutputArgs, opts ...InvokeOption) LookupRuntimeDatabaseToolsConnectionCredentialExecuteGranteeResultOutput

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

    public static class GetRuntimeDatabaseToolsConnectionCredentialExecuteGrantee 
    {
        public static Task<GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteeResult> InvokeAsync(GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs args, InvokeOptions? opts = null)
        public static Output<GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteeResult> Invoke(GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteeResult> getRuntimeDatabaseToolsConnectionCredentialExecuteGrantee(GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs args, InvokeOptions options)
    public static Output<GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteeResult> getRuntimeDatabaseToolsConnectionCredentialExecuteGrantee(GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DatabaseTools/getRuntimeDatabaseToolsConnectionCredentialExecuteGrantee:getRuntimeDatabaseToolsConnectionCredentialExecuteGrantee
      arguments:
        # arguments dictionary
    data "oci_databasetools_getruntimedatabasetoolsconnectioncredentialexecutegrantee" "name" {
        # arguments
    }

    The following arguments are supported:

    CredentialKey string
    The name of the credential
    DatabaseToolsConnectionId string
    The OCID of a Database Tools connection.
    ExecuteGranteeKey string
    The name of the user granted the EXECUTE privilege on the credential.
    CredentialKey string
    The name of the credential
    DatabaseToolsConnectionId string
    The OCID of a Database Tools connection.
    ExecuteGranteeKey string
    The name of the user granted the EXECUTE privilege on the credential.
    credential_key string
    The name of the credential
    database_tools_connection_id string
    The OCID of a Database Tools connection.
    execute_grantee_key string
    The name of the user granted the EXECUTE privilege on the credential.
    credentialKey String
    The name of the credential
    databaseToolsConnectionId String
    The OCID of a Database Tools connection.
    executeGranteeKey String
    The name of the user granted the EXECUTE privilege on the credential.
    credentialKey string
    The name of the credential
    databaseToolsConnectionId string
    The OCID of a Database Tools connection.
    executeGranteeKey string
    The name of the user granted the EXECUTE privilege on the credential.
    credential_key str
    The name of the credential
    database_tools_connection_id str
    The OCID of a Database Tools connection.
    execute_grantee_key str
    The name of the user granted the EXECUTE privilege on the credential.
    credentialKey String
    The name of the credential
    databaseToolsConnectionId String
    The OCID of a Database Tools connection.
    executeGranteeKey String
    The name of the user granted the EXECUTE privilege on the credential.

    getRuntimeDatabaseToolsConnectionCredentialExecuteGrantee Result

    The following output properties are available:

    CredentialKey string
    DatabaseToolsConnectionId string
    ExecuteGranteeKey string
    Id string
    Key string
    The name of the user to grant the EXECUTE privilege on the credential.
    CredentialKey string
    DatabaseToolsConnectionId string
    ExecuteGranteeKey string
    Id string
    Key string
    The name of the user to grant the EXECUTE privilege on the credential.
    credential_key string
    database_tools_connection_id string
    execute_grantee_key string
    id string
    key string
    The name of the user to grant the EXECUTE privilege on the credential.
    credentialKey String
    databaseToolsConnectionId String
    executeGranteeKey String
    id String
    key String
    The name of the user to grant the EXECUTE privilege on the credential.
    credentialKey string
    databaseToolsConnectionId string
    executeGranteeKey string
    id string
    key string
    The name of the user to grant the EXECUTE privilege on the credential.
    credential_key str
    database_tools_connection_id str
    execute_grantee_key str
    id str
    key str
    The name of the user to grant the EXECUTE privilege on the credential.
    credentialKey String
    databaseToolsConnectionId String
    executeGranteeKey String
    id String
    key String
    The name of the user to grant the EXECUTE privilege on the credential.

    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.