1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DatabaseManagement
  5. getDbManagementPrivateEndpointAssociatedDatabases
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.DatabaseManagement.getDbManagementPrivateEndpointAssociatedDatabases

Explore with Pulumi AI

This data source provides the list of Db Management Private Endpoint Associated Databases in Oracle Cloud Infrastructure Database Management service.

Gets the list of databases using a specific Database Management private endpoint.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDbManagementPrivateEndpointAssociatedDatabases = oci.DatabaseManagement.getDbManagementPrivateEndpointAssociatedDatabases({
    compartmentId: compartmentId,
    dbManagementPrivateEndpointId: testDbManagementPrivateEndpoint.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_db_management_private_endpoint_associated_databases = oci.DatabaseManagement.get_db_management_private_endpoint_associated_databases(compartment_id=compartment_id,
    db_management_private_endpoint_id=test_db_management_private_endpoint["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/databasemanagement"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := databasemanagement.GetDbManagementPrivateEndpointAssociatedDatabases(ctx, &databasemanagement.GetDbManagementPrivateEndpointAssociatedDatabasesArgs{
			CompartmentId:                 compartmentId,
			DbManagementPrivateEndpointId: testDbManagementPrivateEndpoint.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testDbManagementPrivateEndpointAssociatedDatabases = Oci.DatabaseManagement.GetDbManagementPrivateEndpointAssociatedDatabases.Invoke(new()
    {
        CompartmentId = compartmentId,
        DbManagementPrivateEndpointId = testDbManagementPrivateEndpoint.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DatabaseManagement.DatabaseManagementFunctions;
import com.pulumi.oci.DatabaseManagement.inputs.GetDbManagementPrivateEndpointAssociatedDatabasesArgs;
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 testDbManagementPrivateEndpointAssociatedDatabases = DatabaseManagementFunctions.getDbManagementPrivateEndpointAssociatedDatabases(GetDbManagementPrivateEndpointAssociatedDatabasesArgs.builder()
            .compartmentId(compartmentId)
            .dbManagementPrivateEndpointId(testDbManagementPrivateEndpoint.id())
            .build());

    }
}
Copy
variables:
  testDbManagementPrivateEndpointAssociatedDatabases:
    fn::invoke:
      function: oci:DatabaseManagement:getDbManagementPrivateEndpointAssociatedDatabases
      arguments:
        compartmentId: ${compartmentId}
        dbManagementPrivateEndpointId: ${testDbManagementPrivateEndpoint.id}
Copy

Using getDbManagementPrivateEndpointAssociatedDatabases

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 getDbManagementPrivateEndpointAssociatedDatabases(args: GetDbManagementPrivateEndpointAssociatedDatabasesArgs, opts?: InvokeOptions): Promise<GetDbManagementPrivateEndpointAssociatedDatabasesResult>
function getDbManagementPrivateEndpointAssociatedDatabasesOutput(args: GetDbManagementPrivateEndpointAssociatedDatabasesOutputArgs, opts?: InvokeOptions): Output<GetDbManagementPrivateEndpointAssociatedDatabasesResult>
Copy
def get_db_management_private_endpoint_associated_databases(compartment_id: Optional[str] = None,
                                                            db_management_private_endpoint_id: Optional[str] = None,
                                                            filters: Optional[Sequence[_databasemanagement.GetDbManagementPrivateEndpointAssociatedDatabasesFilter]] = None,
                                                            opts: Optional[InvokeOptions] = None) -> GetDbManagementPrivateEndpointAssociatedDatabasesResult
def get_db_management_private_endpoint_associated_databases_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                                            db_management_private_endpoint_id: Optional[pulumi.Input[str]] = None,
                                                            filters: Optional[pulumi.Input[Sequence[pulumi.Input[_databasemanagement.GetDbManagementPrivateEndpointAssociatedDatabasesFilterArgs]]]] = None,
                                                            opts: Optional[InvokeOptions] = None) -> Output[GetDbManagementPrivateEndpointAssociatedDatabasesResult]
Copy
func GetDbManagementPrivateEndpointAssociatedDatabases(ctx *Context, args *GetDbManagementPrivateEndpointAssociatedDatabasesArgs, opts ...InvokeOption) (*GetDbManagementPrivateEndpointAssociatedDatabasesResult, error)
func GetDbManagementPrivateEndpointAssociatedDatabasesOutput(ctx *Context, args *GetDbManagementPrivateEndpointAssociatedDatabasesOutputArgs, opts ...InvokeOption) GetDbManagementPrivateEndpointAssociatedDatabasesResultOutput
Copy

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

public static class GetDbManagementPrivateEndpointAssociatedDatabases 
{
    public static Task<GetDbManagementPrivateEndpointAssociatedDatabasesResult> InvokeAsync(GetDbManagementPrivateEndpointAssociatedDatabasesArgs args, InvokeOptions? opts = null)
    public static Output<GetDbManagementPrivateEndpointAssociatedDatabasesResult> Invoke(GetDbManagementPrivateEndpointAssociatedDatabasesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDbManagementPrivateEndpointAssociatedDatabasesResult> getDbManagementPrivateEndpointAssociatedDatabases(GetDbManagementPrivateEndpointAssociatedDatabasesArgs args, InvokeOptions options)
public static Output<GetDbManagementPrivateEndpointAssociatedDatabasesResult> getDbManagementPrivateEndpointAssociatedDatabases(GetDbManagementPrivateEndpointAssociatedDatabasesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:DatabaseManagement/getDbManagementPrivateEndpointAssociatedDatabases:getDbManagementPrivateEndpointAssociatedDatabases
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID of the compartment.
DbManagementPrivateEndpointId This property is required. string
The OCID of the Database Management private endpoint.
Filters Changes to this property will trigger replacement. List<GetDbManagementPrivateEndpointAssociatedDatabasesFilter>
CompartmentId This property is required. string
The OCID of the compartment.
DbManagementPrivateEndpointId This property is required. string
The OCID of the Database Management private endpoint.
Filters Changes to this property will trigger replacement. []GetDbManagementPrivateEndpointAssociatedDatabasesFilter
compartmentId This property is required. String
The OCID of the compartment.
dbManagementPrivateEndpointId This property is required. String
The OCID of the Database Management private endpoint.
filters Changes to this property will trigger replacement. List<GetDbManagementPrivateEndpointAssociatedDatabasesFilter>
compartmentId This property is required. string
The OCID of the compartment.
dbManagementPrivateEndpointId This property is required. string
The OCID of the Database Management private endpoint.
filters Changes to this property will trigger replacement. GetDbManagementPrivateEndpointAssociatedDatabasesFilter[]
compartment_id This property is required. str
The OCID of the compartment.
db_management_private_endpoint_id This property is required. str
The OCID of the Database Management private endpoint.
filters Changes to this property will trigger replacement. Sequence[databasemanagement.GetDbManagementPrivateEndpointAssociatedDatabasesFilter]
compartmentId This property is required. String
The OCID of the compartment.
dbManagementPrivateEndpointId This property is required. String
The OCID of the Database Management private endpoint.
filters Changes to this property will trigger replacement. List<Property Map>

getDbManagementPrivateEndpointAssociatedDatabases Result

The following output properties are available:

AssociatedDatabaseCollections List<GetDbManagementPrivateEndpointAssociatedDatabasesAssociatedDatabaseCollection>
The list of associated_database_collection.
CompartmentId string
The compartment OCID of the database.
DbManagementPrivateEndpointId string
Id string
The provider-assigned unique ID for this managed resource.
Filters List<GetDbManagementPrivateEndpointAssociatedDatabasesFilter>
AssociatedDatabaseCollections []GetDbManagementPrivateEndpointAssociatedDatabasesAssociatedDatabaseCollection
The list of associated_database_collection.
CompartmentId string
The compartment OCID of the database.
DbManagementPrivateEndpointId string
Id string
The provider-assigned unique ID for this managed resource.
Filters []GetDbManagementPrivateEndpointAssociatedDatabasesFilter
associatedDatabaseCollections List<GetDbManagementPrivateEndpointAssociatedDatabasesAssociatedDatabaseCollection>
The list of associated_database_collection.
compartmentId String
The compartment OCID of the database.
dbManagementPrivateEndpointId String
id String
The provider-assigned unique ID for this managed resource.
filters List<GetDbManagementPrivateEndpointAssociatedDatabasesFilter>
associatedDatabaseCollections GetDbManagementPrivateEndpointAssociatedDatabasesAssociatedDatabaseCollection[]
The list of associated_database_collection.
compartmentId string
The compartment OCID of the database.
dbManagementPrivateEndpointId string
id string
The provider-assigned unique ID for this managed resource.
filters GetDbManagementPrivateEndpointAssociatedDatabasesFilter[]
associatedDatabaseCollections List<Property Map>
The list of associated_database_collection.
compartmentId String
The compartment OCID of the database.
dbManagementPrivateEndpointId String
id String
The provider-assigned unique ID for this managed resource.
filters List<Property Map>

Supporting Types

GetDbManagementPrivateEndpointAssociatedDatabasesAssociatedDatabaseCollection

Items This property is required. List<GetDbManagementPrivateEndpointAssociatedDatabasesAssociatedDatabaseCollectionItem>
A list of databases using a Database Management private endpoint.
Items This property is required. []GetDbManagementPrivateEndpointAssociatedDatabasesAssociatedDatabaseCollectionItem
A list of databases using a Database Management private endpoint.
items This property is required. List<GetDbManagementPrivateEndpointAssociatedDatabasesAssociatedDatabaseCollectionItem>
A list of databases using a Database Management private endpoint.
items This property is required. GetDbManagementPrivateEndpointAssociatedDatabasesAssociatedDatabaseCollectionItem[]
A list of databases using a Database Management private endpoint.
items This property is required. Sequence[databasemanagement.GetDbManagementPrivateEndpointAssociatedDatabasesAssociatedDatabaseCollectionItem]
A list of databases using a Database Management private endpoint.
items This property is required. List<Property Map>
A list of databases using a Database Management private endpoint.

GetDbManagementPrivateEndpointAssociatedDatabasesAssociatedDatabaseCollectionItem

CompartmentId This property is required. string
The OCID of the compartment.
Id This property is required. string
The OCID of the database.
Name This property is required. string
The name of the database.
TimeRegistered This property is required. string
The time when Database Management was enabled for the database.
CompartmentId This property is required. string
The OCID of the compartment.
Id This property is required. string
The OCID of the database.
Name This property is required. string
The name of the database.
TimeRegistered This property is required. string
The time when Database Management was enabled for the database.
compartmentId This property is required. String
The OCID of the compartment.
id This property is required. String
The OCID of the database.
name This property is required. String
The name of the database.
timeRegistered This property is required. String
The time when Database Management was enabled for the database.
compartmentId This property is required. string
The OCID of the compartment.
id This property is required. string
The OCID of the database.
name This property is required. string
The name of the database.
timeRegistered This property is required. string
The time when Database Management was enabled for the database.
compartment_id This property is required. str
The OCID of the compartment.
id This property is required. str
The OCID of the database.
name This property is required. str
The name of the database.
time_registered This property is required. str
The time when Database Management was enabled for the database.
compartmentId This property is required. String
The OCID of the compartment.
id This property is required. String
The OCID of the database.
name This property is required. String
The name of the database.
timeRegistered This property is required. String
The time when Database Management was enabled for the database.

GetDbManagementPrivateEndpointAssociatedDatabasesFilter

Name This property is required. string
The name of the database.
Values This property is required. List<string>
Regex bool
Name This property is required. string
The name of the database.
Values This property is required. []string
Regex bool
name This property is required. String
The name of the database.
values This property is required. List<String>
regex Boolean
name This property is required. string
The name of the database.
values This property is required. string[]
regex boolean
name This property is required. str
The name of the database.
values This property is required. Sequence[str]
regex bool
name This property is required. String
The name of the database.
values This property is required. 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.