published on Friday, May 15, 2026 by Pulumi
published on Friday, May 15, 2026 by Pulumi
This resource provides the Database Tools Connection Credential 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
Creates a credential for the user specified by the key.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDatabaseToolsConnectionCredential = new oci.databasetools.RuntimeDatabaseToolsConnectionCredential("test_database_tools_connection_credential", {
databaseToolsConnectionId: testDatabaseToolsConnection.id,
key: databaseToolsConnectionCredentialKey,
password: databaseToolsConnectionCredentialPassword,
type: databaseToolsConnectionCredentialType,
userName: testUser.name,
});
import pulumi
import pulumi_oci as oci
test_database_tools_connection_credential = oci.databasetools.RuntimeDatabaseToolsConnectionCredential("test_database_tools_connection_credential",
database_tools_connection_id=test_database_tools_connection["id"],
key=database_tools_connection_credential_key,
password=database_tools_connection_credential_password,
type=database_tools_connection_credential_type,
user_name=test_user["name"])
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.NewRuntimeDatabaseToolsConnectionCredential(ctx, "test_database_tools_connection_credential", &databasetools.RuntimeDatabaseToolsConnectionCredentialArgs{
DatabaseToolsConnectionId: pulumi.Any(testDatabaseToolsConnection.Id),
Key: pulumi.Any(databaseToolsConnectionCredentialKey),
Password: pulumi.Any(databaseToolsConnectionCredentialPassword),
Type: pulumi.Any(databaseToolsConnectionCredentialType),
UserName: pulumi.Any(testUser.Name),
})
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 testDatabaseToolsConnectionCredential = new Oci.DatabaseTools.RuntimeDatabaseToolsConnectionCredential("test_database_tools_connection_credential", new()
{
DatabaseToolsConnectionId = testDatabaseToolsConnection.Id,
Key = databaseToolsConnectionCredentialKey,
Password = databaseToolsConnectionCredentialPassword,
Type = databaseToolsConnectionCredentialType,
UserName = testUser.Name,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DatabaseTools.RuntimeDatabaseToolsConnectionCredential;
import com.pulumi.oci.DatabaseTools.RuntimeDatabaseToolsConnectionCredentialArgs;
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 testDatabaseToolsConnectionCredential = new RuntimeDatabaseToolsConnectionCredential("testDatabaseToolsConnectionCredential", RuntimeDatabaseToolsConnectionCredentialArgs.builder()
.databaseToolsConnectionId(testDatabaseToolsConnection.id())
.key(databaseToolsConnectionCredentialKey)
.password(databaseToolsConnectionCredentialPassword)
.type(databaseToolsConnectionCredentialType)
.userName(testUser.name())
.build());
}
}
resources:
testDatabaseToolsConnectionCredential:
type: oci:DatabaseTools:RuntimeDatabaseToolsConnectionCredential
name: test_database_tools_connection_credential
properties:
databaseToolsConnectionId: ${testDatabaseToolsConnection.id}
key: ${databaseToolsConnectionCredentialKey}
password: ${databaseToolsConnectionCredentialPassword}
type: ${databaseToolsConnectionCredentialType}
userName: ${testUser.name}
Example coming soon!
Create RuntimeDatabaseToolsConnectionCredential Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RuntimeDatabaseToolsConnectionCredential(name: string, args: RuntimeDatabaseToolsConnectionCredentialArgs, opts?: CustomResourceOptions);@overload
def RuntimeDatabaseToolsConnectionCredential(resource_name: str,
args: RuntimeDatabaseToolsConnectionCredentialArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RuntimeDatabaseToolsConnectionCredential(resource_name: str,
opts: Optional[ResourceOptions] = None,
database_tools_connection_id: Optional[str] = None,
key: Optional[str] = None,
password: Optional[str] = None,
type: Optional[str] = None,
user_name: Optional[str] = None)func NewRuntimeDatabaseToolsConnectionCredential(ctx *Context, name string, args RuntimeDatabaseToolsConnectionCredentialArgs, opts ...ResourceOption) (*RuntimeDatabaseToolsConnectionCredential, error)public RuntimeDatabaseToolsConnectionCredential(string name, RuntimeDatabaseToolsConnectionCredentialArgs args, CustomResourceOptions? opts = null)
public RuntimeDatabaseToolsConnectionCredential(String name, RuntimeDatabaseToolsConnectionCredentialArgs args)
public RuntimeDatabaseToolsConnectionCredential(String name, RuntimeDatabaseToolsConnectionCredentialArgs args, CustomResourceOptions options)
type: oci:DatabaseTools:RuntimeDatabaseToolsConnectionCredential
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "oci_databasetools_runtimedatabasetoolsconnectioncredential" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args RuntimeDatabaseToolsConnectionCredentialArgs
- 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 RuntimeDatabaseToolsConnectionCredentialArgs
- 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 RuntimeDatabaseToolsConnectionCredentialArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RuntimeDatabaseToolsConnectionCredentialArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RuntimeDatabaseToolsConnectionCredentialArgs
- 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 runtimeDatabaseToolsConnectionCredentialResource = new Oci.DatabaseTools.RuntimeDatabaseToolsConnectionCredential("runtimeDatabaseToolsConnectionCredentialResource", new()
{
DatabaseToolsConnectionId = "string",
Key = "string",
Password = "string",
Type = "string",
UserName = "string",
});
example, err := databasetools.NewRuntimeDatabaseToolsConnectionCredential(ctx, "runtimeDatabaseToolsConnectionCredentialResource", &databasetools.RuntimeDatabaseToolsConnectionCredentialArgs{
DatabaseToolsConnectionId: pulumi.String("string"),
Key: pulumi.String("string"),
Password: pulumi.String("string"),
Type: pulumi.String("string"),
UserName: pulumi.String("string"),
})
resource "oci_databasetools_runtimedatabasetoolsconnectioncredential" "runtimeDatabaseToolsConnectionCredentialResource" {
database_tools_connection_id = "string"
key = "string"
password = "string"
type = "string"
user_name = "string"
}
var runtimeDatabaseToolsConnectionCredentialResource = new RuntimeDatabaseToolsConnectionCredential("runtimeDatabaseToolsConnectionCredentialResource", RuntimeDatabaseToolsConnectionCredentialArgs.builder()
.databaseToolsConnectionId("string")
.key("string")
.password("string")
.type("string")
.userName("string")
.build());
runtime_database_tools_connection_credential_resource = oci.databasetools.RuntimeDatabaseToolsConnectionCredential("runtimeDatabaseToolsConnectionCredentialResource",
database_tools_connection_id="string",
key="string",
password="string",
type="string",
user_name="string")
const runtimeDatabaseToolsConnectionCredentialResource = new oci.databasetools.RuntimeDatabaseToolsConnectionCredential("runtimeDatabaseToolsConnectionCredentialResource", {
databaseToolsConnectionId: "string",
key: "string",
password: "string",
type: "string",
userName: "string",
});
type: oci:DatabaseTools:RuntimeDatabaseToolsConnectionCredential
properties:
databaseToolsConnectionId: string
key: string
password: string
type: string
userName: string
RuntimeDatabaseToolsConnectionCredential 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 RuntimeDatabaseToolsConnectionCredential resource accepts the following input properties:
- Database
Tools stringConnection Id - The OCID of a Database Tools connection.
- Key string
- The credentialName to be created
- Password string
- (Updatable) The password for the new credential.
- Type string
- (Updatable) The type of credential.
- User
Name string (Updatable) The username for the new 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
- Database
Tools stringConnection Id - The OCID of a Database Tools connection.
- Key string
- The credentialName to be created
- Password string
- (Updatable) The password for the new credential.
- Type string
- (Updatable) The type of credential.
- User
Name string (Updatable) The username for the new 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
- database_
tools_ stringconnection_ id - The OCID of a Database Tools connection.
- key string
- The credentialName to be created
- password string
- (Updatable) The password for the new credential.
- type string
- (Updatable) The type of credential.
- user_
name string (Updatable) The username for the new 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
- database
Tools StringConnection Id - The OCID of a Database Tools connection.
- key String
- The credentialName to be created
- password String
- (Updatable) The password for the new credential.
- type String
- (Updatable) The type of credential.
- user
Name String (Updatable) The username for the new 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
- database
Tools stringConnection Id - The OCID of a Database Tools connection.
- key string
- The credentialName to be created
- password string
- (Updatable) The password for the new credential.
- type string
- (Updatable) The type of credential.
- user
Name string (Updatable) The username for the new 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
- database_
tools_ strconnection_ id - The OCID of a Database Tools connection.
- key str
- The credentialName to be created
- password str
- (Updatable) The password for the new credential.
- type str
- (Updatable) The type of credential.
- user_
name str (Updatable) The username for the new 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
- database
Tools StringConnection Id - The OCID of a Database Tools connection.
- key String
- The credentialName to be created
- password String
- (Updatable) The password for the new credential.
- type String
- (Updatable) The type of credential.
- user
Name String (Updatable) The username for the new 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 RuntimeDatabaseToolsConnectionCredential resource produces the following output properties:
- Enabled string
- Indicates whether this credential is enabled (TRUE) or not (FALSE)
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
Type string - Indicates whether this refers to a public synonym or not.
- Owner string
- Owner of the credential
-
List<Runtime
Database Tools Connection Credential Related Resource> - A related resource for a credential.
- Windows
Domain string - For a Windows target, the Windows domain to use when logging in
- Enabled string
- Indicates whether this credential is enabled (TRUE) or not (FALSE)
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
Type string - Indicates whether this refers to a public synonym or not.
- Owner string
- Owner of the credential
-
[]Runtime
Database Tools Connection Credential Related Resource - A related resource for a credential.
- Windows
Domain string - For a Windows target, the Windows domain to use when logging in
- enabled string
- Indicates whether this credential is enabled (TRUE) or not (FALSE)
- id string
- The provider-assigned unique ID for this managed resource.
- key_
type string - Indicates whether this refers to a public synonym or not.
- owner string
- Owner of the credential
- list(object)
- A related resource for a credential.
- windows_
domain string - For a Windows target, the Windows domain to use when logging in
- enabled String
- Indicates whether this credential is enabled (TRUE) or not (FALSE)
- id String
- The provider-assigned unique ID for this managed resource.
- key
Type String - Indicates whether this refers to a public synonym or not.
- owner String
- Owner of the credential
-
List<Runtime
Connection Credential Related Resource> - A related resource for a credential.
- windows
Domain String - For a Windows target, the Windows domain to use when logging in
- enabled string
- Indicates whether this credential is enabled (TRUE) or not (FALSE)
- id string
- The provider-assigned unique ID for this managed resource.
- key
Type string - Indicates whether this refers to a public synonym or not.
- owner string
- Owner of the credential
-
Runtime
Database Tools Connection Credential Related Resource[] - A related resource for a credential.
- windows
Domain string - For a Windows target, the Windows domain to use when logging in
- enabled str
- Indicates whether this credential is enabled (TRUE) or not (FALSE)
- id str
- The provider-assigned unique ID for this managed resource.
- key_
type str - Indicates whether this refers to a public synonym or not.
- owner str
- Owner of the credential
-
Sequence[Runtime
Database Tools Connection Credential Related Resource] - A related resource for a credential.
- windows_
domain str - For a Windows target, the Windows domain to use when logging in
- enabled String
- Indicates whether this credential is enabled (TRUE) or not (FALSE)
- id String
- The provider-assigned unique ID for this managed resource.
- key
Type String - Indicates whether this refers to a public synonym or not.
- owner String
- Owner of the credential
- List<Property Map>
- A related resource for a credential.
- windows
Domain String - For a Windows target, the Windows domain to use when logging in
Look up Existing RuntimeDatabaseToolsConnectionCredential Resource
Get an existing RuntimeDatabaseToolsConnectionCredential 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?: RuntimeDatabaseToolsConnectionCredentialState, opts?: CustomResourceOptions): RuntimeDatabaseToolsConnectionCredential@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
database_tools_connection_id: Optional[str] = None,
enabled: Optional[str] = None,
key: Optional[str] = None,
key_type: Optional[str] = None,
owner: Optional[str] = None,
password: Optional[str] = None,
related_resources: Optional[Sequence[RuntimeDatabaseToolsConnectionCredentialRelatedResourceArgs]] = None,
type: Optional[str] = None,
user_name: Optional[str] = None,
windows_domain: Optional[str] = None) -> RuntimeDatabaseToolsConnectionCredentialfunc GetRuntimeDatabaseToolsConnectionCredential(ctx *Context, name string, id IDInput, state *RuntimeDatabaseToolsConnectionCredentialState, opts ...ResourceOption) (*RuntimeDatabaseToolsConnectionCredential, error)public static RuntimeDatabaseToolsConnectionCredential Get(string name, Input<string> id, RuntimeDatabaseToolsConnectionCredentialState? state, CustomResourceOptions? opts = null)public static RuntimeDatabaseToolsConnectionCredential get(String name, Output<String> id, RuntimeDatabaseToolsConnectionCredentialState state, CustomResourceOptions options)resources: _: type: oci:DatabaseTools:RuntimeDatabaseToolsConnectionCredential get: id: ${id}import {
to = oci_databasetools_runtimedatabasetoolsconnectioncredential.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.
- Database
Tools stringConnection Id - The OCID of a Database Tools connection.
- Enabled string
- Indicates whether this credential is enabled (TRUE) or not (FALSE)
- Key string
- The credentialName to be created
- Key
Type string - Indicates whether this refers to a public synonym or not.
- Owner string
- Owner of the credential
- Password string
- (Updatable) The password for the new credential.
-
List<Runtime
Database Tools Connection Credential Related Resource> - A related resource for a credential.
- Type string
- (Updatable) The type of credential.
- User
Name string (Updatable) The username for the new 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
- Windows
Domain string - For a Windows target, the Windows domain to use when logging in
- Database
Tools stringConnection Id - The OCID of a Database Tools connection.
- Enabled string
- Indicates whether this credential is enabled (TRUE) or not (FALSE)
- Key string
- The credentialName to be created
- Key
Type string - Indicates whether this refers to a public synonym or not.
- Owner string
- Owner of the credential
- Password string
- (Updatable) The password for the new credential.
-
[]Runtime
Database Tools Connection Credential Related Resource Args - A related resource for a credential.
- Type string
- (Updatable) The type of credential.
- User
Name string (Updatable) The username for the new 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
- Windows
Domain string - For a Windows target, the Windows domain to use when logging in
- database_
tools_ stringconnection_ id - The OCID of a Database Tools connection.
- enabled string
- Indicates whether this credential is enabled (TRUE) or not (FALSE)
- key string
- The credentialName to be created
- key_
type string - Indicates whether this refers to a public synonym or not.
- owner string
- Owner of the credential
- password string
- (Updatable) The password for the new credential.
- list(object)
- A related resource for a credential.
- type string
- (Updatable) The type of credential.
- user_
name string (Updatable) The username for the new 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
- windows_
domain string - For a Windows target, the Windows domain to use when logging in
- database
Tools StringConnection Id - The OCID of a Database Tools connection.
- enabled String
- Indicates whether this credential is enabled (TRUE) or not (FALSE)
- key String
- The credentialName to be created
- key
Type String - Indicates whether this refers to a public synonym or not.
- owner String
- Owner of the credential
- password String
- (Updatable) The password for the new credential.
-
List<Runtime
Connection Credential Related Resource> - A related resource for a credential.
- type String
- (Updatable) The type of credential.
- user
Name String (Updatable) The username for the new 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
- windows
Domain String - For a Windows target, the Windows domain to use when logging in
- database
Tools stringConnection Id - The OCID of a Database Tools connection.
- enabled string
- Indicates whether this credential is enabled (TRUE) or not (FALSE)
- key string
- The credentialName to be created
- key
Type string - Indicates whether this refers to a public synonym or not.
- owner string
- Owner of the credential
- password string
- (Updatable) The password for the new credential.
-
Runtime
Database Tools Connection Credential Related Resource[] - A related resource for a credential.
- type string
- (Updatable) The type of credential.
- user
Name string (Updatable) The username for the new 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
- windows
Domain string - For a Windows target, the Windows domain to use when logging in
- database_
tools_ strconnection_ id - The OCID of a Database Tools connection.
- enabled str
- Indicates whether this credential is enabled (TRUE) or not (FALSE)
- key str
- The credentialName to be created
- key_
type str - Indicates whether this refers to a public synonym or not.
- owner str
- Owner of the credential
- password str
- (Updatable) The password for the new credential.
-
Sequence[Runtime
Database Tools Connection Credential Related Resource Args] - A related resource for a credential.
- type str
- (Updatable) The type of credential.
- user_
name str (Updatable) The username for the new 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
- windows_
domain str - For a Windows target, the Windows domain to use when logging in
- database
Tools StringConnection Id - The OCID of a Database Tools connection.
- enabled String
- Indicates whether this credential is enabled (TRUE) or not (FALSE)
- key String
- The credentialName to be created
- key
Type String - Indicates whether this refers to a public synonym or not.
- owner String
- Owner of the credential
- password String
- (Updatable) The password for the new credential.
- List<Property Map>
- A related resource for a credential.
- type String
- (Updatable) The type of credential.
- user
Name String (Updatable) The username for the new 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
- windows
Domain String - For a Windows target, the Windows domain to use when logging in
Supporting Types
RuntimeDatabaseToolsConnectionCredentialRelatedResource, RuntimeDatabaseToolsConnectionCredentialRelatedResourceArgs
- Identifier string
- The OCID of the related resource.
- Type string
- (Updatable) The type of credential.
- Identifier string
- The OCID of the related resource.
- Type string
- (Updatable) The type of credential.
- identifier string
- The OCID of the related resource.
- type string
- (Updatable) The type of credential.
- identifier String
- The OCID of the related resource.
- type String
- (Updatable) The type of credential.
- identifier string
- The OCID of the related resource.
- type string
- (Updatable) The type of credential.
- identifier str
- The OCID of the related resource.
- type str
- (Updatable) The type of credential.
- identifier String
- The OCID of the related resource.
- type String
- (Updatable) The type of credential.
Import
DatabaseToolsConnectionCredentials can be imported using the id, e.g.
$ pulumi import oci:DatabaseTools/runtimeDatabaseToolsConnectionCredential:RuntimeDatabaseToolsConnectionCredential test_database_tools_connection_credential "databaseToolsConnections/{databaseToolsConnectionId}/credentials/{credentialKey}"
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
ociTerraform Provider.
published on Friday, May 15, 2026 by Pulumi
