Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
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 dictionaryThe following arguments are supported:
- Compartment
Id string - The compartment OCID.
- Associated
Resource stringId - The OCID of the VM cluster associated with the connection bundle. If the parameter is set to null, all bundles are returned.
- Db
Connection stringBundle Type - A filter that returns only resources that match the specified database connection bundle type.
- Display
Name string - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- Filters
List<Get
Db Connection Bundles Filter> - State string
- A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
- Compartment
Id string - The compartment OCID.
- Associated
Resource stringId - The OCID of the VM cluster associated with the connection bundle. If the parameter is set to null, all bundles are returned.
- Db
Connection stringBundle Type - A filter that returns only resources that match the specified database connection bundle type.
- Display
Name string - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- Filters
[]Get
Db Connection Bundles Filter - State string
- A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
- compartment
Id String - The compartment OCID.
- associated
Resource StringId - The OCID of the VM cluster associated with the connection bundle. If the parameter is set to null, all bundles are returned.
- db
Connection StringBundle Type - A filter that returns only resources that match the specified database connection bundle type.
- display
Name String - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- filters
List<Get
Db Connection Bundles Filter> - state String
- A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
- compartment
Id string - The compartment OCID.
- associated
Resource stringId - The OCID of the VM cluster associated with the connection bundle. If the parameter is set to null, all bundles are returned.
- db
Connection stringBundle Type - A filter that returns only resources that match the specified database connection bundle type.
- display
Name string - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- filters
Get
Db Connection Bundles Filter[] - 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_ strid - The OCID of the VM cluster associated with the connection bundle. If the parameter is set to null, all bundles are returned.
- db_
connection_ strbundle_ type - 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[Get
Db Connection Bundles Filter] - state str
- A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
- compartment
Id String - The compartment OCID.
- associated
Resource StringId - The OCID of the VM cluster associated with the connection bundle. If the parameter is set to null, all bundles are returned.
- db
Connection StringBundle Type - A filter that returns only resources that match the specified database connection bundle type.
- display
Name 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:
- Compartment
Id string - The OCID of the compartment containing the database connection bundle.
- Db
Connection List<GetBundles Db Connection Bundles Db Connection Bundle> - The list of db_connection_bundles.
- Id string
- The provider-assigned unique ID for this managed resource.
- Associated
Resource stringId - Db
Connection stringBundle Type - The type of the database connection bundle.
- Display
Name string - Display name for the connection bundle.
- Filters
List<Get
Db Connection Bundles Filter> - State string
- The current lifecycle state of the database connection bundle.
- Compartment
Id string - The OCID of the compartment containing the database connection bundle.
- Db
Connection []GetBundles Db Connection Bundles Db Connection Bundle - The list of db_connection_bundles.
- Id string
- The provider-assigned unique ID for this managed resource.
- Associated
Resource stringId - Db
Connection stringBundle Type - The type of the database connection bundle.
- Display
Name string - Display name for the connection bundle.
- Filters
[]Get
Db Connection Bundles Filter - State string
- The current lifecycle state of the database connection bundle.
- compartment
Id String - The OCID of the compartment containing the database connection bundle.
- db
Connection List<GetBundles Db Connection Bundles Db Connection Bundle> - The list of db_connection_bundles.
- id String
- The provider-assigned unique ID for this managed resource.
- associated
Resource StringId - db
Connection StringBundle Type - The type of the database connection bundle.
- display
Name String - Display name for the connection bundle.
- filters
List<Get
Db Connection Bundles Filter> - state String
- The current lifecycle state of the database connection bundle.
- compartment
Id string - The OCID of the compartment containing the database connection bundle.
- db
Connection GetBundles Db Connection Bundles Db Connection Bundle[] - The list of db_connection_bundles.
- id string
- The provider-assigned unique ID for this managed resource.
- associated
Resource stringId - db
Connection stringBundle Type - The type of the database connection bundle.
- display
Name string - Display name for the connection bundle.
- filters
Get
Db Connection Bundles Filter[] - 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_ Sequence[Getbundles Db Connection Bundles Db Connection Bundle] - The list of db_connection_bundles.
- id str
- The provider-assigned unique ID for this managed resource.
- associated_
resource_ strid - db_
connection_ strbundle_ type - The type of the database connection bundle.
- display_
name str - Display name for the connection bundle.
- filters
Sequence[Get
Db Connection Bundles Filter] - state str
- The current lifecycle state of the database connection bundle.
- compartment
Id String - The OCID of the compartment containing the database connection bundle.
- db
Connection List<Property Map>Bundles - The list of db_connection_bundles.
- id String
- The provider-assigned unique ID for this managed resource.
- associated
Resource StringId - db
Connection StringBundle Type - The type of the database connection bundle.
- display
Name 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
- Associated
Resource List<GetDetails Db Connection Bundles Db Connection Bundle Associated Resource Detail> - Details about the resources associated with the connection bundle.
- Compartment
Id string - The compartment OCID.
- Db
Connection stringBundle Type - A filter that returns only resources that match the specified database connection bundle type.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Display
Name string - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- 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.
- Is
Protected 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.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Time
Created string - The time the database connection bundle was created. An RFC3339 formatted datetime string.
- Time
Last stringRefreshed - The time the database connection bundle was last refreshed. An RFC3339 formatted datetime string.
- Time
Updated string - The time the database connection bundle was updated. An RFC3339 formatted datetime string.
- Associated
Resource []GetDetails Db Connection Bundles Db Connection Bundle Associated Resource Detail - Details about the resources associated with the connection bundle.
- Compartment
Id string - The compartment OCID.
- Db
Connection stringBundle Type - A filter that returns only resources that match the specified database connection bundle type.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Display
Name string - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- 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.
- Is
Protected 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.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Time
Created string - The time the database connection bundle was created. An RFC3339 formatted datetime string.
- Time
Last stringRefreshed - The time the database connection bundle was last refreshed. An RFC3339 formatted datetime string.
- Time
Updated string - The time the database connection bundle was updated. An RFC3339 formatted datetime string.
- associated
Resource List<GetDetails Db Connection Bundles Db Connection Bundle Associated Resource Detail> - Details about the resources associated with the connection bundle.
- compartment
Id String - The compartment OCID.
- db
Connection StringBundle Type - A filter that returns only resources that match the specified database connection bundle type.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name String - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- 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.
- is
Protected 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.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- time
Created String - The time the database connection bundle was created. An RFC3339 formatted datetime string.
- time
Last StringRefreshed - The time the database connection bundle was last refreshed. An RFC3339 formatted datetime string.
- time
Updated String - The time the database connection bundle was updated. An RFC3339 formatted datetime string.
- associated
Resource GetDetails Db Connection Bundles Db Connection Bundle Associated Resource Detail[] - Details about the resources associated with the connection bundle.
- compartment
Id string - The compartment OCID.
- db
Connection stringBundle Type - A filter that returns only resources that match the specified database connection bundle type.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name string - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- {[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.
- is
Protected 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.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- time
Created string - The time the database connection bundle was created. An RFC3339 formatted datetime string.
- time
Last stringRefreshed - The time the database connection bundle was last refreshed. An RFC3339 formatted datetime string.
- time
Updated string - The time the database connection bundle was updated. An RFC3339 formatted datetime string.
- associated_
resource_ Sequence[Getdetails Db Connection Bundles Db Connection Bundle Associated Resource Detail] - Details about the resources associated with the connection bundle.
- compartment_
id str - The compartment OCID.
- db_
connection_ strbundle_ type - A filter that returns only resources that match the specified database connection bundle type.
- 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.
- 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.
- 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_ strrefreshed - 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.
- associated
Resource List<Property Map>Details - Details about the resources associated with the connection bundle.
- compartment
Id String - The compartment OCID.
- db
Connection StringBundle Type - A filter that returns only resources that match the specified database connection bundle type.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name String - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- 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.
- is
Protected 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.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- time
Created String - The time the database connection bundle was created. An RFC3339 formatted datetime string.
- time
Last StringRefreshed - The time the database connection bundle was last refreshed. An RFC3339 formatted datetime string.
- time
Updated String - The time the database connection bundle was updated. An RFC3339 formatted datetime string.
GetDbConnectionBundlesDbConnectionBundleAssociatedResourceDetail
- Resource
Ids List<string> - The OCIDs of the associated resources.
- Resource
Ids []string - The OCIDs of the associated resources.
- resource
Ids List<String> - The OCIDs of the associated resources.
- resource
Ids string[] - The OCIDs of the associated resources.
- resource_
ids Sequence[str] - The OCIDs of the associated resources.
- resource
Ids List<String> - The OCIDs of the associated resources.
GetDbConnectionBundlesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
