1. Packages
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. DatabaseTools
  6. RuntimeDatabaseToolsConnectionCredentialExecuteGrantee
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 resource provides the Database Tools Connection Credential Execute Grantee resource in Oracle Cloud Infrastructure Database Tools Runtime service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/

    Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/database_tools_runtime

    Grants the EXECUTE privilege on the credential to the user specified by the key.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDatabaseToolsConnectionCredentialExecuteGrantee = new oci.databasetools.RuntimeDatabaseToolsConnectionCredentialExecuteGrantee("test_database_tools_connection_credential_execute_grantee", {
        credentialKey: databaseToolsConnectionCredentialExecuteGranteeCredentialKey,
        databaseToolsConnectionId: testDatabaseToolsConnection.id,
        key: databaseToolsConnectionCredentialExecuteGranteeKey,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_database_tools_connection_credential_execute_grantee = oci.databasetools.RuntimeDatabaseToolsConnectionCredentialExecuteGrantee("test_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"],
        key=database_tools_connection_credential_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.NewRuntimeDatabaseToolsConnectionCredentialExecuteGrantee(ctx, "test_database_tools_connection_credential_execute_grantee", &databasetools.RuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs{
    			CredentialKey:             pulumi.Any(databaseToolsConnectionCredentialExecuteGranteeCredentialKey),
    			DatabaseToolsConnectionId: pulumi.Any(testDatabaseToolsConnection.Id),
    			Key:                       pulumi.Any(databaseToolsConnectionCredentialExecuteGranteeKey),
    		})
    		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 = new Oci.DatabaseTools.RuntimeDatabaseToolsConnectionCredentialExecuteGrantee("test_database_tools_connection_credential_execute_grantee", new()
        {
            CredentialKey = databaseToolsConnectionCredentialExecuteGranteeCredentialKey,
            DatabaseToolsConnectionId = testDatabaseToolsConnection.Id,
            Key = databaseToolsConnectionCredentialExecuteGranteeKey,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DatabaseTools.RuntimeDatabaseToolsConnectionCredentialExecuteGrantee;
    import com.pulumi.oci.DatabaseTools.RuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs;
    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) {
            var testDatabaseToolsConnectionCredentialExecuteGrantee = new RuntimeDatabaseToolsConnectionCredentialExecuteGrantee("testDatabaseToolsConnectionCredentialExecuteGrantee", RuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs.builder()
                .credentialKey(databaseToolsConnectionCredentialExecuteGranteeCredentialKey)
                .databaseToolsConnectionId(testDatabaseToolsConnection.id())
                .key(databaseToolsConnectionCredentialExecuteGranteeKey)
                .build());
    
        }
    }
    
    resources:
      testDatabaseToolsConnectionCredentialExecuteGrantee:
        type: oci:DatabaseTools:RuntimeDatabaseToolsConnectionCredentialExecuteGrantee
        name: test_database_tools_connection_credential_execute_grantee
        properties:
          credentialKey: ${databaseToolsConnectionCredentialExecuteGranteeCredentialKey}
          databaseToolsConnectionId: ${testDatabaseToolsConnection.id}
          key: ${databaseToolsConnectionCredentialExecuteGranteeKey}
    
    Example coming soon!
    

    Create RuntimeDatabaseToolsConnectionCredentialExecuteGrantee Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RuntimeDatabaseToolsConnectionCredentialExecuteGrantee(name: string, args: RuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs, opts?: CustomResourceOptions);
    @overload
    def RuntimeDatabaseToolsConnectionCredentialExecuteGrantee(resource_name: str,
                                                               args: RuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs,
                                                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def RuntimeDatabaseToolsConnectionCredentialExecuteGrantee(resource_name: str,
                                                               opts: Optional[ResourceOptions] = None,
                                                               credential_key: Optional[str] = None,
                                                               database_tools_connection_id: Optional[str] = None,
                                                               key: Optional[str] = None)
    func NewRuntimeDatabaseToolsConnectionCredentialExecuteGrantee(ctx *Context, name string, args RuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs, opts ...ResourceOption) (*RuntimeDatabaseToolsConnectionCredentialExecuteGrantee, error)
    public RuntimeDatabaseToolsConnectionCredentialExecuteGrantee(string name, RuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs args, CustomResourceOptions? opts = null)
    public RuntimeDatabaseToolsConnectionCredentialExecuteGrantee(String name, RuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs args)
    public RuntimeDatabaseToolsConnectionCredentialExecuteGrantee(String name, RuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs args, CustomResourceOptions options)
    
    type: oci:DatabaseTools:RuntimeDatabaseToolsConnectionCredentialExecuteGrantee
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "oci_databasetools_runtimedatabasetoolsconnectioncredentialexecutegrantee" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args RuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args RuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args RuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var runtimeDatabaseToolsConnectionCredentialExecuteGranteeResource = new Oci.DatabaseTools.RuntimeDatabaseToolsConnectionCredentialExecuteGrantee("runtimeDatabaseToolsConnectionCredentialExecuteGranteeResource", new()
    {
        CredentialKey = "string",
        DatabaseToolsConnectionId = "string",
        Key = "string",
    });
    
    example, err := databasetools.NewRuntimeDatabaseToolsConnectionCredentialExecuteGrantee(ctx, "runtimeDatabaseToolsConnectionCredentialExecuteGranteeResource", &databasetools.RuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs{
    	CredentialKey:             pulumi.String("string"),
    	DatabaseToolsConnectionId: pulumi.String("string"),
    	Key:                       pulumi.String("string"),
    })
    
    resource "oci_databasetools_runtimedatabasetoolsconnectioncredentialexecutegrantee" "runtimeDatabaseToolsConnectionCredentialExecuteGranteeResource" {
      credential_key               = "string"
      database_tools_connection_id = "string"
      key                          = "string"
    }
    
    var runtimeDatabaseToolsConnectionCredentialExecuteGranteeResource = new RuntimeDatabaseToolsConnectionCredentialExecuteGrantee("runtimeDatabaseToolsConnectionCredentialExecuteGranteeResource", RuntimeDatabaseToolsConnectionCredentialExecuteGranteeArgs.builder()
        .credentialKey("string")
        .databaseToolsConnectionId("string")
        .key("string")
        .build());
    
    runtime_database_tools_connection_credential_execute_grantee_resource = oci.databasetools.RuntimeDatabaseToolsConnectionCredentialExecuteGrantee("runtimeDatabaseToolsConnectionCredentialExecuteGranteeResource",
        credential_key="string",
        database_tools_connection_id="string",
        key="string")
    
    const runtimeDatabaseToolsConnectionCredentialExecuteGranteeResource = new oci.databasetools.RuntimeDatabaseToolsConnectionCredentialExecuteGrantee("runtimeDatabaseToolsConnectionCredentialExecuteGranteeResource", {
        credentialKey: "string",
        databaseToolsConnectionId: "string",
        key: "string",
    });
    
    type: oci:DatabaseTools:RuntimeDatabaseToolsConnectionCredentialExecuteGrantee
    properties:
        credentialKey: string
        databaseToolsConnectionId: string
        key: string
    

    RuntimeDatabaseToolsConnectionCredentialExecuteGrantee Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The RuntimeDatabaseToolsConnectionCredentialExecuteGrantee resource accepts the following input properties:

    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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RuntimeDatabaseToolsConnectionCredentialExecuteGrantee resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing RuntimeDatabaseToolsConnectionCredentialExecuteGrantee Resource

    Get an existing RuntimeDatabaseToolsConnectionCredentialExecuteGrantee resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: RuntimeDatabaseToolsConnectionCredentialExecuteGranteeState, opts?: CustomResourceOptions): RuntimeDatabaseToolsConnectionCredentialExecuteGrantee
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            credential_key: Optional[str] = None,
            database_tools_connection_id: Optional[str] = None,
            key: Optional[str] = None) -> RuntimeDatabaseToolsConnectionCredentialExecuteGrantee
    func GetRuntimeDatabaseToolsConnectionCredentialExecuteGrantee(ctx *Context, name string, id IDInput, state *RuntimeDatabaseToolsConnectionCredentialExecuteGranteeState, opts ...ResourceOption) (*RuntimeDatabaseToolsConnectionCredentialExecuteGrantee, error)
    public static RuntimeDatabaseToolsConnectionCredentialExecuteGrantee Get(string name, Input<string> id, RuntimeDatabaseToolsConnectionCredentialExecuteGranteeState? state, CustomResourceOptions? opts = null)
    public static RuntimeDatabaseToolsConnectionCredentialExecuteGrantee get(String name, Output<String> id, RuntimeDatabaseToolsConnectionCredentialExecuteGranteeState state, CustomResourceOptions options)
    resources:  _:    type: oci:DatabaseTools:RuntimeDatabaseToolsConnectionCredentialExecuteGrantee    get:      id: ${id}
    import {
      to = oci_databasetools_runtimedatabasetoolsconnectioncredentialexecutegrantee.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Import

    DatabaseToolsConnectionCredentialExecuteGrantees can be imported using the id, e.g.

    $ pulumi import oci:DatabaseTools/runtimeDatabaseToolsConnectionCredentialExecuteGrantee:RuntimeDatabaseToolsConnectionCredentialExecuteGrantee test_database_tools_connection_credential_execute_grantee "databaseToolsConnections/{databaseToolsConnectionId}/credentials/{credentialKey}/executeGrantees/{executeGranteeKey}"
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.