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

    Get a list of all execute grantees

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDatabaseToolsConnectionCredentialExecuteGrantees = oci.databasetools.getRuntimeDatabaseToolsConnectionCredentialExecuteGrantees({
        credentialKey: databaseToolsConnectionCredentialExecuteGranteeCredentialKey,
        databaseToolsConnectionId: testDatabaseToolsConnection.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_database_tools_connection_credential_execute_grantees = oci.databasetools.get_runtime_database_tools_connection_credential_execute_grantees(credential_key=database_tools_connection_credential_execute_grantee_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.GetRuntimeDatabaseToolsConnectionCredentialExecuteGrantees(ctx, &databasetools.GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesArgs{
    			CredentialKey:             databaseToolsConnectionCredentialExecuteGranteeCredentialKey,
    			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 testDatabaseToolsConnectionCredentialExecuteGrantees = Oci.DatabaseTools.GetRuntimeDatabaseToolsConnectionCredentialExecuteGrantees.Invoke(new()
        {
            CredentialKey = databaseToolsConnectionCredentialExecuteGranteeCredentialKey,
            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.GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesArgs;
    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 testDatabaseToolsConnectionCredentialExecuteGrantees = DatabaseToolsFunctions.getRuntimeDatabaseToolsConnectionCredentialExecuteGrantees(GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesArgs.builder()
                .credentialKey(databaseToolsConnectionCredentialExecuteGranteeCredentialKey)
                .databaseToolsConnectionId(testDatabaseToolsConnection.id())
                .build());
    
        }
    }
    
    variables:
      testDatabaseToolsConnectionCredentialExecuteGrantees:
        fn::invoke:
          function: oci:DatabaseTools:getRuntimeDatabaseToolsConnectionCredentialExecuteGrantees
          arguments:
            credentialKey: ${databaseToolsConnectionCredentialExecuteGranteeCredentialKey}
            databaseToolsConnectionId: ${testDatabaseToolsConnection.id}
    
    Example coming soon!
    

    Using getRuntimeDatabaseToolsConnectionCredentialExecuteGrantees

    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 getRuntimeDatabaseToolsConnectionCredentialExecuteGrantees(args: GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesArgs, opts?: InvokeOptions): Promise<GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesResult>
    function getRuntimeDatabaseToolsConnectionCredentialExecuteGranteesOutput(args: GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesOutputArgs, opts?: InvokeOptions): Output<GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesResult>
    def get_runtime_database_tools_connection_credential_execute_grantees(credential_key: Optional[str] = None,
                                                                          database_tools_connection_id: Optional[str] = None,
                                                                          filters: Optional[Sequence[GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesFilter]] = None,
                                                                          opts: Optional[InvokeOptions] = None) -> GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesResult
    def get_runtime_database_tools_connection_credential_execute_grantees_output(credential_key: pulumi.Input[Optional[str]] = None,
                                                                          database_tools_connection_id: pulumi.Input[Optional[str]] = None,
                                                                          filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesFilterArgs]]]] = None,
                                                                          opts: Optional[InvokeOptions] = None) -> Output[GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesResult]
    func GetRuntimeDatabaseToolsConnectionCredentialExecuteGrantees(ctx *Context, args *GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesArgs, opts ...InvokeOption) (*GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesResult, error)
    func GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesOutput(ctx *Context, args *GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesOutputArgs, opts ...InvokeOption) GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesResultOutput

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

    public static class GetRuntimeDatabaseToolsConnectionCredentialExecuteGrantees 
    {
        public static Task<GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesResult> InvokeAsync(GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesArgs args, InvokeOptions? opts = null)
        public static Output<GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesResult> Invoke(GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesResult> getRuntimeDatabaseToolsConnectionCredentialExecuteGrantees(GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesArgs args, InvokeOptions options)
    public static Output<GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesResult> getRuntimeDatabaseToolsConnectionCredentialExecuteGrantees(GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DatabaseTools/getRuntimeDatabaseToolsConnectionCredentialExecuteGrantees:getRuntimeDatabaseToolsConnectionCredentialExecuteGrantees
      arguments:
        # arguments dictionary
    data "oci_databasetools_getruntimedatabasetoolsconnectioncredentialexecutegrantees" "name" {
        # arguments
    }

    The following arguments are supported:

    CredentialKey string
    The name of the credential
    DatabaseToolsConnectionId string
    The OCID of a Database Tools connection.
    Filters []GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesFilter
    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<GetRuntimeConnectionCredentialExecuteGranteesFilter>
    credentialKey string
    The name of the credential
    databaseToolsConnectionId string
    The OCID of a Database Tools connection.
    filters GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesFilter[]
    credentialKey String
    The name of the credential
    databaseToolsConnectionId String
    The OCID of a Database Tools connection.
    filters List<Property Map>

    getRuntimeDatabaseToolsConnectionCredentialExecuteGrantees Result

    The following output properties are available:

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

    Supporting Types

    GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesCredentialExecuteGranteeCollection

    GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesCredentialExecuteGranteeCollectionItem

    CredentialKey string
    The name of the credential
    DatabaseToolsConnectionId string
    The OCID of a Database Tools connection.
    Key string
    The name of the user to grant the EXECUTE privilege on the credential.
    CredentialKey string
    The name of the credential
    DatabaseToolsConnectionId string
    The OCID of a Database Tools connection.
    Key string
    The name of the user to grant 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.
    key string
    The name of the user to grant the EXECUTE privilege on the credential.
    credentialKey String
    The name of the credential
    databaseToolsConnectionId String
    The OCID of a Database Tools connection.
    key String
    The name of the user to grant the EXECUTE privilege on the credential.
    credentialKey string
    The name of the credential
    databaseToolsConnectionId string
    The OCID of a Database Tools connection.
    key string
    The name of the user to grant 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.
    key str
    The name of the user to grant the EXECUTE privilege on the credential.
    credentialKey String
    The name of the credential
    databaseToolsConnectionId String
    The OCID of a Database Tools connection.
    key String
    The name of the user to grant the EXECUTE privilege on the credential.

    GetRuntimeDatabaseToolsConnectionCredentialExecuteGranteesFilter

    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.