Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getDbManagementPrivateEndpointAssociatedDatabases

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

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testDbManagementPrivateEndpointAssociatedDatabases = Oci.DatabaseManagement.GetDbManagementPrivateEndpointAssociatedDatabases.Invoke(new()
    {
        CompartmentId = @var.Compartment_id,
        DbManagementPrivateEndpointId = oci_database_management_db_management_private_endpoint.Test_db_management_private_endpoint.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/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:                 _var.Compartment_id,
			DbManagementPrivateEndpointId: oci_database_management_db_management_private_endpoint.Test_db_management_private_endpoint.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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(var_.compartment_id())
            .dbManagementPrivateEndpointId(oci_database_management_db_management_private_endpoint.test_db_management_private_endpoint().id())
            .build());

    }
}
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=var["compartment_id"],
    db_management_private_endpoint_id=oci_database_management_db_management_private_endpoint["test_db_management_private_endpoint"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDbManagementPrivateEndpointAssociatedDatabases = oci.DatabaseManagement.getDbManagementPrivateEndpointAssociatedDatabases({
    compartmentId: _var.compartment_id,
    dbManagementPrivateEndpointId: oci_database_management_db_management_private_endpoint.test_db_management_private_endpoint.id,
});
variables:
  testDbManagementPrivateEndpointAssociatedDatabases:
    Fn::Invoke:
      Function: oci:DatabaseManagement:getDbManagementPrivateEndpointAssociatedDatabases
      Arguments:
        compartmentId: ${var.compartment_id}
        dbManagementPrivateEndpointId: ${oci_database_management_db_management_private_endpoint.test_db_management_private_endpoint.id}

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>
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]
func GetDbManagementPrivateEndpointAssociatedDatabases(ctx *Context, args *GetDbManagementPrivateEndpointAssociatedDatabasesArgs, opts ...InvokeOption) (*GetDbManagementPrivateEndpointAssociatedDatabasesResult, error)
func GetDbManagementPrivateEndpointAssociatedDatabasesOutput(ctx *Context, args *GetDbManagementPrivateEndpointAssociatedDatabasesOutputArgs, opts ...InvokeOption) GetDbManagementPrivateEndpointAssociatedDatabasesResultOutput

> 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)
}
public static CompletableFuture<GetDbManagementPrivateEndpointAssociatedDatabasesResult> getDbManagementPrivateEndpointAssociatedDatabases(GetDbManagementPrivateEndpointAssociatedDatabasesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:DatabaseManagement/getDbManagementPrivateEndpointAssociatedDatabases:getDbManagementPrivateEndpointAssociatedDatabases
  arguments:
    # arguments dictionary

The following arguments are supported:

CompartmentId string

The OCID of the compartment.

DbManagementPrivateEndpointId string

The OCID of the Database Management private endpoint.

Filters List<GetDbManagementPrivateEndpointAssociatedDatabasesFilter>
CompartmentId string

The OCID of the compartment.

DbManagementPrivateEndpointId string

The OCID of the Database Management private endpoint.

Filters []GetDbManagementPrivateEndpointAssociatedDatabasesFilter
compartmentId String

The OCID of the compartment.

dbManagementPrivateEndpointId String

The OCID of the Database Management private endpoint.

filters List<GetDbManagementPrivateEndpointAssociatedDatabasesFilter>
compartmentId string

The OCID of the compartment.

dbManagementPrivateEndpointId string

The OCID of the Database Management private endpoint.

filters GetDbManagementPrivateEndpointAssociatedDatabasesFilter[]
compartment_id str

The OCID of the compartment.

db_management_private_endpoint_id str

The OCID of the Database Management private endpoint.

filters GetDbManagementPrivateEndpointAssociatedDatabasesFilter]
compartmentId String

The OCID of the compartment.

dbManagementPrivateEndpointId String

The OCID of the Database Management private endpoint.

filters 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 List<GetDbManagementPrivateEndpointAssociatedDatabasesAssociatedDatabaseCollectionItem>

A list of databases using a Database Management private endpoint.

Items []GetDbManagementPrivateEndpointAssociatedDatabasesAssociatedDatabaseCollectionItem

A list of databases using a Database Management private endpoint.

items List<GetDbManagementPrivateEndpointAssociatedDatabasesAssociatedDatabaseCollectionItem>

A list of databases using a Database Management private endpoint.

items GetDbManagementPrivateEndpointAssociatedDatabasesAssociatedDatabaseCollectionItem[]

A list of databases using a Database Management private endpoint.

items GetDbManagementPrivateEndpointAssociatedDatabasesAssociatedDatabaseCollectionItem]

A list of databases using a Database Management private endpoint.

items List<Property Map>

A list of databases using a Database Management private endpoint.

GetDbManagementPrivateEndpointAssociatedDatabasesAssociatedDatabaseCollectionItem

CompartmentId string

The OCID of the compartment.

Id string

The OCID of the database.

Name string

The name of the database.

TimeRegistered string

The time when Database Management was enabled for the database.

CompartmentId string

The OCID of the compartment.

Id string

The OCID of the database.

Name string

The name of the database.

TimeRegistered string

The time when Database Management was enabled for the database.

compartmentId String

The OCID of the compartment.

id String

The OCID of the database.

name String

The name of the database.

timeRegistered String

The time when Database Management was enabled for the database.

compartmentId string

The OCID of the compartment.

id string

The OCID of the database.

name string

The name of the database.

timeRegistered string

The time when Database Management was enabled for the database.

compartment_id str

The OCID of the compartment.

id str

The OCID of the database.

name str

The name of the database.

time_registered str

The time when Database Management was enabled for the database.

compartmentId String

The OCID of the compartment.

id String

The OCID of the database.

name String

The name of the database.

timeRegistered String

The time when Database Management was enabled for the database.

GetDbManagementPrivateEndpointAssociatedDatabasesFilter

Name string

The name of the database.

Values List<string>
Regex bool
Name string

The name of the database.

Values []string
Regex bool
name String

The name of the database.

values List<String>
regex Boolean
name string

The name of the database.

values string[]
regex boolean
name str

The name of the database.

values Sequence[str]
regex bool
name String

The name of the database.

values List<String>
regex Boolean

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.