1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DatabaseTools
  5. getDatabaseToolsIdentity
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi

oci.DatabaseTools.getDatabaseToolsIdentity

Start a Neo task
Explain and create an oci.DatabaseTools.getDatabaseToolsIdentity resource
oci logo
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi

    This data source provides details about a specific Database Tools Identity resource in Oracle Cloud Infrastructure Database Tools service.

    Gets details of the specified Database Tools identity.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDatabaseToolsIdentity = oci.DatabaseTools.getDatabaseToolsIdentity({
        databaseToolsIdentityId: testDatabaseToolsIdentityOciDatabaseToolsDatabaseToolsIdentity.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_database_tools_identity = oci.DatabaseTools.get_database_tools_identity(database_tools_identity_id=test_database_tools_identity_oci_database_tools_database_tools_identity["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/databasetools"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := databasetools.GetDatabaseToolsIdentity(ctx, &databasetools.GetDatabaseToolsIdentityArgs{
    			DatabaseToolsIdentityId: testDatabaseToolsIdentityOciDatabaseToolsDatabaseToolsIdentity.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 testDatabaseToolsIdentity = Oci.DatabaseTools.GetDatabaseToolsIdentity.Invoke(new()
        {
            DatabaseToolsIdentityId = testDatabaseToolsIdentityOciDatabaseToolsDatabaseToolsIdentity.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.GetDatabaseToolsIdentityArgs;
    import java.util.List;
    import java.util.ArrayList;
    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 testDatabaseToolsIdentity = DatabaseToolsFunctions.getDatabaseToolsIdentity(GetDatabaseToolsIdentityArgs.builder()
                .databaseToolsIdentityId(testDatabaseToolsIdentityOciDatabaseToolsDatabaseToolsIdentity.id())
                .build());
    
        }
    }
    
    variables:
      testDatabaseToolsIdentity:
        fn::invoke:
          function: oci:DatabaseTools:getDatabaseToolsIdentity
          arguments:
            databaseToolsIdentityId: ${testDatabaseToolsIdentityOciDatabaseToolsDatabaseToolsIdentity.id}
    

    Using getDatabaseToolsIdentity

    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 getDatabaseToolsIdentity(args: GetDatabaseToolsIdentityArgs, opts?: InvokeOptions): Promise<GetDatabaseToolsIdentityResult>
    function getDatabaseToolsIdentityOutput(args: GetDatabaseToolsIdentityOutputArgs, opts?: InvokeOptions): Output<GetDatabaseToolsIdentityResult>
    def get_database_tools_identity(database_tools_identity_id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetDatabaseToolsIdentityResult
    def get_database_tools_identity_output(database_tools_identity_id: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseToolsIdentityResult]
    func LookupDatabaseToolsIdentity(ctx *Context, args *LookupDatabaseToolsIdentityArgs, opts ...InvokeOption) (*LookupDatabaseToolsIdentityResult, error)
    func LookupDatabaseToolsIdentityOutput(ctx *Context, args *LookupDatabaseToolsIdentityOutputArgs, opts ...InvokeOption) LookupDatabaseToolsIdentityResultOutput

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

    public static class GetDatabaseToolsIdentity 
    {
        public static Task<GetDatabaseToolsIdentityResult> InvokeAsync(GetDatabaseToolsIdentityArgs args, InvokeOptions? opts = null)
        public static Output<GetDatabaseToolsIdentityResult> Invoke(GetDatabaseToolsIdentityInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDatabaseToolsIdentityResult> getDatabaseToolsIdentity(GetDatabaseToolsIdentityArgs args, InvokeOptions options)
    public static Output<GetDatabaseToolsIdentityResult> getDatabaseToolsIdentity(GetDatabaseToolsIdentityArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DatabaseTools/getDatabaseToolsIdentity:getDatabaseToolsIdentity
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DatabaseToolsIdentityId string
    The OCID of a Database Tools identity.
    DatabaseToolsIdentityId string
    The OCID of a Database Tools identity.
    databaseToolsIdentityId String
    The OCID of a Database Tools identity.
    databaseToolsIdentityId string
    The OCID of a Database Tools identity.
    database_tools_identity_id str
    The OCID of a Database Tools identity.
    databaseToolsIdentityId String
    The OCID of a Database Tools identity.

    getDatabaseToolsIdentity Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment containing the Database Tools identity.
    CredentialKey string
    The name of the credential object created in the Oracle Database.
    DatabaseToolsConnectionId string
    The OCID of the related Database Tools connection.
    DatabaseToolsIdentityId string
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags Dictionary<string, string>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    The OCID of the Database Tools identity.
    LifecycleDetails string
    A message describing the current state in more detail. For example, this message can be used to provide actionable information for a resource in the Failed state.
    Locks List<GetDatabaseToolsIdentityLock>
    Locks associated with this resource.
    State string
    The current state of the Database Tools identity.
    SystemTags Dictionary<string, string>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the Database Tools identity was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time the Database Tools identity was updated. An RFC3339 formatted datetime string.
    Type string
    The Database Tools identity type.
    CompartmentId string
    The OCID of the compartment containing the Database Tools identity.
    CredentialKey string
    The name of the credential object created in the Oracle Database.
    DatabaseToolsConnectionId string
    The OCID of the related Database Tools connection.
    DatabaseToolsIdentityId string
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags map[string]string
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    The OCID of the Database Tools identity.
    LifecycleDetails string
    A message describing the current state in more detail. For example, this message can be used to provide actionable information for a resource in the Failed state.
    Locks []GetDatabaseToolsIdentityLock
    Locks associated with this resource.
    State string
    The current state of the Database Tools identity.
    SystemTags map[string]string
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the Database Tools identity was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time the Database Tools identity was updated. An RFC3339 formatted datetime string.
    Type string
    The Database Tools identity type.
    compartmentId String
    The OCID of the compartment containing the Database Tools identity.
    credentialKey String
    The name of the credential object created in the Oracle Database.
    databaseToolsConnectionId String
    The OCID of the related Database Tools connection.
    databaseToolsIdentityId String
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String,String>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    The OCID of the Database Tools identity.
    lifecycleDetails String
    A message describing the current state in more detail. For example, this message can be used to provide actionable information for a resource in the Failed state.
    locks List<GetIdentityLock>
    Locks associated with this resource.
    state String
    The current state of the Database Tools identity.
    systemTags Map<String,String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the Database Tools identity was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time the Database Tools identity was updated. An RFC3339 formatted datetime string.
    type String
    The Database Tools identity type.
    compartmentId string
    The OCID of the compartment containing the Database Tools identity.
    credentialKey string
    The name of the credential object created in the Oracle Database.
    databaseToolsConnectionId string
    The OCID of the related Database Tools connection.
    databaseToolsIdentityId string
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags {[key: string]: string}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id string
    The OCID of the Database Tools identity.
    lifecycleDetails string
    A message describing the current state in more detail. For example, this message can be used to provide actionable information for a resource in the Failed state.
    locks GetDatabaseToolsIdentityLock[]
    Locks associated with this resource.
    state string
    The current state of the Database Tools identity.
    systemTags {[key: string]: string}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time the Database Tools identity was created. An RFC3339 formatted datetime string.
    timeUpdated string
    The time the Database Tools identity was updated. An RFC3339 formatted datetime string.
    type string
    The Database Tools identity type.
    compartment_id str
    The OCID of the compartment containing the Database Tools identity.
    credential_key str
    The name of the credential object created in the Oracle Database.
    database_tools_connection_id str
    The OCID of the related Database Tools connection.
    database_tools_identity_id str
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    display_name str
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeform_tags Mapping[str, str]
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id str
    The OCID of the Database Tools identity.
    lifecycle_details str
    A message describing the current state in more detail. For example, this message can be used to provide actionable information for a resource in the Failed state.
    locks Sequence[GetDatabaseToolsIdentityLock]
    Locks associated with this resource.
    state str
    The current state of the Database Tools identity.
    system_tags Mapping[str, str]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The time the Database Tools identity was created. An RFC3339 formatted datetime string.
    time_updated str
    The time the Database Tools identity was updated. An RFC3339 formatted datetime string.
    type str
    The Database Tools identity type.
    compartmentId String
    The OCID of the compartment containing the Database Tools identity.
    credentialKey String
    The name of the credential object created in the Oracle Database.
    databaseToolsConnectionId String
    The OCID of the related Database Tools connection.
    databaseToolsIdentityId String
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    The OCID of the Database Tools identity.
    lifecycleDetails String
    A message describing the current state in more detail. For example, this message can be used to provide actionable information for a resource in the Failed state.
    locks List<Property Map>
    Locks associated with this resource.
    state String
    The current state of the Database Tools identity.
    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the Database Tools identity was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time the Database Tools identity was updated. An RFC3339 formatted datetime string.
    type String
    The Database Tools identity type.

    Supporting Types

    GetDatabaseToolsIdentityLock

    Message string
    A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
    RelatedResourceId string
    The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
    TimeCreated string
    The time the Database Tools identity was created. An RFC3339 formatted datetime string.
    Type string
    The Database Tools identity type.
    Message string
    A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
    RelatedResourceId string
    The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
    TimeCreated string
    The time the Database Tools identity was created. An RFC3339 formatted datetime string.
    Type string
    The Database Tools identity type.
    message String
    A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
    relatedResourceId String
    The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
    timeCreated String
    The time the Database Tools identity was created. An RFC3339 formatted datetime string.
    type String
    The Database Tools identity type.
    message string
    A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
    relatedResourceId string
    The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
    timeCreated string
    The time the Database Tools identity was created. An RFC3339 formatted datetime string.
    type string
    The Database Tools identity type.
    message str
    A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
    related_resource_id str
    The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
    time_created str
    The time the Database Tools identity was created. An RFC3339 formatted datetime string.
    type str
    The Database Tools identity type.
    message String
    A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
    relatedResourceId String
    The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
    timeCreated String
    The time the Database Tools identity was created. An RFC3339 formatted datetime string.
    type String
    The Database Tools identity type.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate