1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getDbConnectionBundle
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
oci logo
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi

    This data source provides details about a specific Db Connection Bundle resource in Oracle Cloud Infrastructure Database service.

    Gets information about the specified database connection bundle.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDbConnectionBundle = oci.Database.getDbConnectionBundle({
        dbConnectionBundleId: testDbConnectionBundleOciDatabaseDbConnectionBundle.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_db_connection_bundle = oci.Database.get_db_connection_bundle(db_connection_bundle_id=test_db_connection_bundle_oci_database_db_connection_bundle["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/database"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := database.GetDbConnectionBundle(ctx, &database.GetDbConnectionBundleArgs{
    			DbConnectionBundleId: testDbConnectionBundleOciDatabaseDbConnectionBundle.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 testDbConnectionBundle = Oci.Database.GetDbConnectionBundle.Invoke(new()
        {
            DbConnectionBundleId = testDbConnectionBundleOciDatabaseDbConnectionBundle.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Database.DatabaseFunctions;
    import com.pulumi.oci.Database.inputs.GetDbConnectionBundleArgs;
    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 testDbConnectionBundle = DatabaseFunctions.getDbConnectionBundle(GetDbConnectionBundleArgs.builder()
                .dbConnectionBundleId(testDbConnectionBundleOciDatabaseDbConnectionBundle.id())
                .build());
    
        }
    }
    
    variables:
      testDbConnectionBundle:
        fn::invoke:
          function: oci:Database:getDbConnectionBundle
          arguments:
            dbConnectionBundleId: ${testDbConnectionBundleOciDatabaseDbConnectionBundle.id}
    

    Using getDbConnectionBundle

    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 getDbConnectionBundle(args: GetDbConnectionBundleArgs, opts?: InvokeOptions): Promise<GetDbConnectionBundleResult>
    function getDbConnectionBundleOutput(args: GetDbConnectionBundleOutputArgs, opts?: InvokeOptions): Output<GetDbConnectionBundleResult>
    def get_db_connection_bundle(db_connection_bundle_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetDbConnectionBundleResult
    def get_db_connection_bundle_output(db_connection_bundle_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetDbConnectionBundleResult]
    func GetDbConnectionBundle(ctx *Context, args *GetDbConnectionBundleArgs, opts ...InvokeOption) (*GetDbConnectionBundleResult, error)
    func GetDbConnectionBundleOutput(ctx *Context, args *GetDbConnectionBundleOutputArgs, opts ...InvokeOption) GetDbConnectionBundleResultOutput

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

    public static class GetDbConnectionBundle 
    {
        public static Task<GetDbConnectionBundleResult> InvokeAsync(GetDbConnectionBundleArgs args, InvokeOptions? opts = null)
        public static Output<GetDbConnectionBundleResult> Invoke(GetDbConnectionBundleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbConnectionBundleResult> getDbConnectionBundle(GetDbConnectionBundleArgs args, InvokeOptions options)
    public static Output<GetDbConnectionBundleResult> getDbConnectionBundle(GetDbConnectionBundleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:Database/getDbConnectionBundle:getDbConnectionBundle
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DbConnectionBundleId string
    The OCID of the database connection bundle.
    DbConnectionBundleId string
    The OCID of the database connection bundle.
    dbConnectionBundleId String
    The OCID of the database connection bundle.
    dbConnectionBundleId string
    The OCID of the database connection bundle.
    db_connection_bundle_id str
    The OCID of the database connection bundle.
    dbConnectionBundleId String
    The OCID of the database connection bundle.

    getDbConnectionBundle Result

    The following output properties are available:

    AssociatedResourceDetails List<GetDbConnectionBundleAssociatedResourceDetail>
    Details about the resources associated with the connection bundle.
    CompartmentId string
    The OCID of the compartment containing the database connection bundle.
    DbConnectionBundleId string
    DbConnectionBundleType string
    The type of the database connection bundle.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    DisplayName string
    Display name for the connection bundle.
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsProtected bool
    True for the default, service-created Database Connection Bundle.
    State string
    The current lifecycle state of the database connection bundle.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    TimeCreated string
    The time the database connection bundle was created. An RFC3339 formatted datetime string.
    TimeLastRefreshed string
    The time the database connection bundle was last refreshed. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time the database connection bundle was updated. An RFC3339 formatted datetime string.
    AssociatedResourceDetails []GetDbConnectionBundleAssociatedResourceDetail
    Details about the resources associated with the connection bundle.
    CompartmentId string
    The OCID of the compartment containing the database connection bundle.
    DbConnectionBundleId string
    DbConnectionBundleType string
    The type of the database connection bundle.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    DisplayName string
    Display name for the connection bundle.
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsProtected bool
    True for the default, service-created Database Connection Bundle.
    State string
    The current lifecycle state of the database connection bundle.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    TimeCreated string
    The time the database connection bundle was created. An RFC3339 formatted datetime string.
    TimeLastRefreshed string
    The time the database connection bundle was last refreshed. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time the database connection bundle was updated. An RFC3339 formatted datetime string.
    associatedResourceDetails List<GetDbConnectionBundleAssociatedResourceDetail>
    Details about the resources associated with the connection bundle.
    compartmentId String
    The OCID of the compartment containing the database connection bundle.
    dbConnectionBundleId String
    dbConnectionBundleType String
    The type of the database connection bundle.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    displayName String
    Display name for the connection bundle.
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    id String
    The provider-assigned unique ID for this managed resource.
    isProtected Boolean
    True for the default, service-created Database Connection Bundle.
    state String
    The current lifecycle state of the database connection bundle.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    timeCreated String
    The time the database connection bundle was created. An RFC3339 formatted datetime string.
    timeLastRefreshed String
    The time the database connection bundle was last refreshed. An RFC3339 formatted datetime string.
    timeUpdated String
    The time the database connection bundle was updated. An RFC3339 formatted datetime string.
    associatedResourceDetails GetDbConnectionBundleAssociatedResourceDetail[]
    Details about the resources associated with the connection bundle.
    compartmentId string
    The OCID of the compartment containing the database connection bundle.
    dbConnectionBundleId string
    dbConnectionBundleType string
    The type of the database connection bundle.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    displayName string
    Display name for the connection bundle.
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    id string
    The provider-assigned unique ID for this managed resource.
    isProtected boolean
    True for the default, service-created Database Connection Bundle.
    state string
    The current lifecycle state of the database connection bundle.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    timeCreated string
    The time the database connection bundle was created. An RFC3339 formatted datetime string.
    timeLastRefreshed string
    The time the database connection bundle was last refreshed. An RFC3339 formatted datetime string.
    timeUpdated string
    The time the database connection bundle was updated. An RFC3339 formatted datetime string.
    associated_resource_details Sequence[GetDbConnectionBundleAssociatedResourceDetail]
    Details about the resources associated with the connection bundle.
    compartment_id str
    The OCID of the compartment containing the database connection bundle.
    db_connection_bundle_id str
    db_connection_bundle_type str
    The type of the database connection bundle.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    display_name str
    Display name for the connection bundle.
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    id str
    The provider-assigned unique ID for this managed resource.
    is_protected bool
    True for the default, service-created Database Connection Bundle.
    state str
    The current lifecycle state of the database connection bundle.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    time_created str
    The time the database connection bundle was created. An RFC3339 formatted datetime string.
    time_last_refreshed str
    The time the database connection bundle was last refreshed. An RFC3339 formatted datetime string.
    time_updated str
    The time the database connection bundle was updated. An RFC3339 formatted datetime string.
    associatedResourceDetails List<Property Map>
    Details about the resources associated with the connection bundle.
    compartmentId String
    The OCID of the compartment containing the database connection bundle.
    dbConnectionBundleId String
    dbConnectionBundleType String
    The type of the database connection bundle.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    displayName String
    Display name for the connection bundle.
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    id String
    The provider-assigned unique ID for this managed resource.
    isProtected Boolean
    True for the default, service-created Database Connection Bundle.
    state String
    The current lifecycle state of the database connection bundle.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    timeCreated String
    The time the database connection bundle was created. An RFC3339 formatted datetime string.
    timeLastRefreshed String
    The time the database connection bundle was last refreshed. An RFC3339 formatted datetime string.
    timeUpdated String
    The time the database connection bundle was updated. An RFC3339 formatted datetime string.

    Supporting Types

    GetDbConnectionBundleAssociatedResourceDetail

    ResourceIds List<string>
    The OCIDs of the associated resources.
    ResourceIds []string
    The OCIDs of the associated resources.
    resourceIds List<String>
    The OCIDs of the associated resources.
    resourceIds string[]
    The OCIDs of the associated resources.
    resource_ids Sequence[str]
    The OCIDs of the associated resources.
    resourceIds List<String>
    The OCIDs of the associated 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
    Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate