1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getDbConnectionBundles
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 the list of Db Connection Bundles in Oracle Cloud Infrastructure Database service.

    Lists all database connection bundles that match the query parameters.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDbConnectionBundles = oci.Database.getDbConnectionBundles({
        compartmentId: compartmentId,
        associatedResourceId: testResource.id,
        dbConnectionBundleType: dbConnectionBundleDbConnectionBundleType,
        displayName: dbConnectionBundleDisplayName,
        state: dbConnectionBundleState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_db_connection_bundles = oci.Database.get_db_connection_bundles(compartment_id=compartment_id,
        associated_resource_id=test_resource["id"],
        db_connection_bundle_type=db_connection_bundle_db_connection_bundle_type,
        display_name=db_connection_bundle_display_name,
        state=db_connection_bundle_state)
    
    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.GetDbConnectionBundles(ctx, &database.GetDbConnectionBundlesArgs{
    			CompartmentId:          compartmentId,
    			AssociatedResourceId:   pulumi.StringRef(testResource.Id),
    			DbConnectionBundleType: pulumi.StringRef(dbConnectionBundleDbConnectionBundleType),
    			DisplayName:            pulumi.StringRef(dbConnectionBundleDisplayName),
    			State:                  pulumi.StringRef(dbConnectionBundleState),
    		}, 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 testDbConnectionBundles = Oci.Database.GetDbConnectionBundles.Invoke(new()
        {
            CompartmentId = compartmentId,
            AssociatedResourceId = testResource.Id,
            DbConnectionBundleType = dbConnectionBundleDbConnectionBundleType,
            DisplayName = dbConnectionBundleDisplayName,
            State = dbConnectionBundleState,
        });
    
    });
    
    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.GetDbConnectionBundlesArgs;
    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 testDbConnectionBundles = DatabaseFunctions.getDbConnectionBundles(GetDbConnectionBundlesArgs.builder()
                .compartmentId(compartmentId)
                .associatedResourceId(testResource.id())
                .dbConnectionBundleType(dbConnectionBundleDbConnectionBundleType)
                .displayName(dbConnectionBundleDisplayName)
                .state(dbConnectionBundleState)
                .build());
    
        }
    }
    
    variables:
      testDbConnectionBundles:
        fn::invoke:
          function: oci:Database:getDbConnectionBundles
          arguments:
            compartmentId: ${compartmentId}
            associatedResourceId: ${testResource.id}
            dbConnectionBundleType: ${dbConnectionBundleDbConnectionBundleType}
            displayName: ${dbConnectionBundleDisplayName}
            state: ${dbConnectionBundleState}
    

    Using getDbConnectionBundles

    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 getDbConnectionBundles(args: GetDbConnectionBundlesArgs, opts?: InvokeOptions): Promise<GetDbConnectionBundlesResult>
    function getDbConnectionBundlesOutput(args: GetDbConnectionBundlesOutputArgs, opts?: InvokeOptions): Output<GetDbConnectionBundlesResult>
    def get_db_connection_bundles(associated_resource_id: Optional[str] = None,
                                  compartment_id: Optional[str] = None,
                                  db_connection_bundle_type: Optional[str] = None,
                                  display_name: Optional[str] = None,
                                  filters: Optional[Sequence[GetDbConnectionBundlesFilter]] = None,
                                  state: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetDbConnectionBundlesResult
    def get_db_connection_bundles_output(associated_resource_id: Optional[pulumi.Input[str]] = None,
                                  compartment_id: Optional[pulumi.Input[str]] = None,
                                  db_connection_bundle_type: Optional[pulumi.Input[str]] = None,
                                  display_name: Optional[pulumi.Input[str]] = None,
                                  filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDbConnectionBundlesFilterArgs]]]] = None,
                                  state: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetDbConnectionBundlesResult]
    func GetDbConnectionBundles(ctx *Context, args *GetDbConnectionBundlesArgs, opts ...InvokeOption) (*GetDbConnectionBundlesResult, error)
    func GetDbConnectionBundlesOutput(ctx *Context, args *GetDbConnectionBundlesOutputArgs, opts ...InvokeOption) GetDbConnectionBundlesResultOutput

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

    public static class GetDbConnectionBundles 
    {
        public static Task<GetDbConnectionBundlesResult> InvokeAsync(GetDbConnectionBundlesArgs args, InvokeOptions? opts = null)
        public static Output<GetDbConnectionBundlesResult> Invoke(GetDbConnectionBundlesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbConnectionBundlesResult> getDbConnectionBundles(GetDbConnectionBundlesArgs args, InvokeOptions options)
    public static Output<GetDbConnectionBundlesResult> getDbConnectionBundles(GetDbConnectionBundlesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:Database/getDbConnectionBundles:getDbConnectionBundles
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The compartment OCID.
    AssociatedResourceId string
    The OCID of the VM cluster associated with the connection bundle. If the parameter is set to null, all bundles are returned.
    DbConnectionBundleType string
    A filter that returns only resources that match the specified database connection bundle type.
    DisplayName string
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    Filters List<GetDbConnectionBundlesFilter>
    State string
    A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
    CompartmentId string
    The compartment OCID.
    AssociatedResourceId string
    The OCID of the VM cluster associated with the connection bundle. If the parameter is set to null, all bundles are returned.
    DbConnectionBundleType string
    A filter that returns only resources that match the specified database connection bundle type.
    DisplayName string
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    Filters []GetDbConnectionBundlesFilter
    State string
    A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
    compartmentId String
    The compartment OCID.
    associatedResourceId String
    The OCID of the VM cluster associated with the connection bundle. If the parameter is set to null, all bundles are returned.
    dbConnectionBundleType String
    A filter that returns only resources that match the specified database connection bundle type.
    displayName String
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    filters List<GetDbConnectionBundlesFilter>
    state String
    A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
    compartmentId string
    The compartment OCID.
    associatedResourceId string
    The OCID of the VM cluster associated with the connection bundle. If the parameter is set to null, all bundles are returned.
    dbConnectionBundleType string
    A filter that returns only resources that match the specified database connection bundle type.
    displayName string
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    filters GetDbConnectionBundlesFilter[]
    state string
    A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
    compartment_id str
    The compartment OCID.
    associated_resource_id str
    The OCID of the VM cluster associated with the connection bundle. If the parameter is set to null, all bundles are returned.
    db_connection_bundle_type str
    A filter that returns only resources that match the specified database connection bundle type.
    display_name str
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    filters Sequence[GetDbConnectionBundlesFilter]
    state str
    A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
    compartmentId String
    The compartment OCID.
    associatedResourceId String
    The OCID of the VM cluster associated with the connection bundle. If the parameter is set to null, all bundles are returned.
    dbConnectionBundleType String
    A filter that returns only resources that match the specified database connection bundle type.
    displayName String
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    filters List<Property Map>
    state String
    A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.

    getDbConnectionBundles Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment containing the database connection bundle.
    DbConnectionBundles List<GetDbConnectionBundlesDbConnectionBundle>
    The list of db_connection_bundles.
    Id string
    The provider-assigned unique ID for this managed resource.
    AssociatedResourceId string
    DbConnectionBundleType string
    The type of the database connection bundle.
    DisplayName string
    Display name for the connection bundle.
    Filters List<GetDbConnectionBundlesFilter>
    State string
    The current lifecycle state of the database connection bundle.
    CompartmentId string
    The OCID of the compartment containing the database connection bundle.
    DbConnectionBundles []GetDbConnectionBundlesDbConnectionBundle
    The list of db_connection_bundles.
    Id string
    The provider-assigned unique ID for this managed resource.
    AssociatedResourceId string
    DbConnectionBundleType string
    The type of the database connection bundle.
    DisplayName string
    Display name for the connection bundle.
    Filters []GetDbConnectionBundlesFilter
    State string
    The current lifecycle state of the database connection bundle.
    compartmentId String
    The OCID of the compartment containing the database connection bundle.
    dbConnectionBundles List<GetDbConnectionBundlesDbConnectionBundle>
    The list of db_connection_bundles.
    id String
    The provider-assigned unique ID for this managed resource.
    associatedResourceId String
    dbConnectionBundleType String
    The type of the database connection bundle.
    displayName String
    Display name for the connection bundle.
    filters List<GetDbConnectionBundlesFilter>
    state String
    The current lifecycle state of the database connection bundle.
    compartmentId string
    The OCID of the compartment containing the database connection bundle.
    dbConnectionBundles GetDbConnectionBundlesDbConnectionBundle[]
    The list of db_connection_bundles.
    id string
    The provider-assigned unique ID for this managed resource.
    associatedResourceId string
    dbConnectionBundleType string
    The type of the database connection bundle.
    displayName string
    Display name for the connection bundle.
    filters GetDbConnectionBundlesFilter[]
    state string
    The current lifecycle state of the database connection bundle.
    compartment_id str
    The OCID of the compartment containing the database connection bundle.
    db_connection_bundles Sequence[GetDbConnectionBundlesDbConnectionBundle]
    The list of db_connection_bundles.
    id str
    The provider-assigned unique ID for this managed resource.
    associated_resource_id str
    db_connection_bundle_type str
    The type of the database connection bundle.
    display_name str
    Display name for the connection bundle.
    filters Sequence[GetDbConnectionBundlesFilter]
    state str
    The current lifecycle state of the database connection bundle.
    compartmentId String
    The OCID of the compartment containing the database connection bundle.
    dbConnectionBundles List<Property Map>
    The list of db_connection_bundles.
    id String
    The provider-assigned unique ID for this managed resource.
    associatedResourceId String
    dbConnectionBundleType String
    The type of the database connection bundle.
    displayName String
    Display name for the connection bundle.
    filters List<Property Map>
    state String
    The current lifecycle state of the database connection bundle.

    Supporting Types

    GetDbConnectionBundlesDbConnectionBundle

    AssociatedResourceDetails List<GetDbConnectionBundlesDbConnectionBundleAssociatedResourceDetail>
    Details about the resources associated with the connection bundle.
    CompartmentId string
    The compartment OCID.
    DbConnectionBundleType string
    A filter that returns only resources that match the specified database connection bundle type.
    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
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    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 OCID of the database connection bundle.
    IsProtected bool
    True for the default, service-created Database Connection Bundle.
    State string
    A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
    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 []GetDbConnectionBundlesDbConnectionBundleAssociatedResourceDetail
    Details about the resources associated with the connection bundle.
    CompartmentId string
    The compartment OCID.
    DbConnectionBundleType string
    A filter that returns only resources that match the specified database connection bundle type.
    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
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    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 OCID of the database connection bundle.
    IsProtected bool
    True for the default, service-created Database Connection Bundle.
    State string
    A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
    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<GetDbConnectionBundlesDbConnectionBundleAssociatedResourceDetail>
    Details about the resources associated with the connection bundle.
    compartmentId String
    The compartment OCID.
    dbConnectionBundleType String
    A filter that returns only resources that match the specified database connection bundle type.
    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
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    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 OCID of the database connection bundle.
    isProtected Boolean
    True for the default, service-created Database Connection Bundle.
    state String
    A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
    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 GetDbConnectionBundlesDbConnectionBundleAssociatedResourceDetail[]
    Details about the resources associated with the connection bundle.
    compartmentId string
    The compartment OCID.
    dbConnectionBundleType string
    A filter that returns only resources that match the specified database connection bundle type.
    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
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    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 OCID of the database connection bundle.
    isProtected boolean
    True for the default, service-created Database Connection Bundle.
    state string
    A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
    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[GetDbConnectionBundlesDbConnectionBundleAssociatedResourceDetail]
    Details about the resources associated with the connection bundle.
    compartment_id str
    The compartment OCID.
    db_connection_bundle_type str
    A filter that returns only resources that match the specified database connection bundle type.
    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
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    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 OCID of the database connection bundle.
    is_protected bool
    True for the default, service-created Database Connection Bundle.
    state str
    A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
    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 compartment OCID.
    dbConnectionBundleType String
    A filter that returns only resources that match the specified database connection bundle type.
    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
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    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 OCID of the database connection bundle.
    isProtected Boolean
    True for the default, service-created Database Connection Bundle.
    state String
    A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
    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.

    GetDbConnectionBundlesDbConnectionBundleAssociatedResourceDetail

    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.

    GetDbConnectionBundlesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []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
    Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate