Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getDbManagementPrivateEndpointAssociatedDatabase

This data source provides details about a specific Db Management Private Endpoint Associated Database resource in Oracle Cloud Infrastructure Database Management service.

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

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testDbManagementPrivateEndpointAssociatedDatabase = Output.Create(Oci.DatabaseManagement.GetDbManagementPrivateEndpointAssociatedDatabase.InvokeAsync(new Oci.DatabaseManagement.GetDbManagementPrivateEndpointAssociatedDatabaseArgs
        {
            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.GetDbManagementPrivateEndpointAssociatedDatabase(ctx, &databasemanagement.GetDbManagementPrivateEndpointAssociatedDatabaseArgs{
			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
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_db_management_private_endpoint_associated_database = oci.DatabaseManagement.get_db_management_private_endpoint_associated_database(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 testDbManagementPrivateEndpointAssociatedDatabase = oci.DatabaseManagement.getDbManagementPrivateEndpointAssociatedDatabase({
    compartmentId: _var.compartment_id,
    dbManagementPrivateEndpointId: oci_database_management_db_management_private_endpoint.test_db_management_private_endpoint.id,
});

Coming soon!

Using getDbManagementPrivateEndpointAssociatedDatabase

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 getDbManagementPrivateEndpointAssociatedDatabase(args: GetDbManagementPrivateEndpointAssociatedDatabaseArgs, opts?: InvokeOptions): Promise<GetDbManagementPrivateEndpointAssociatedDatabaseResult>
function getDbManagementPrivateEndpointAssociatedDatabaseOutput(args: GetDbManagementPrivateEndpointAssociatedDatabaseOutputArgs, opts?: InvokeOptions): Output<GetDbManagementPrivateEndpointAssociatedDatabaseResult>
def get_db_management_private_endpoint_associated_database(compartment_id: Optional[str] = None,
                                                           db_management_private_endpoint_id: Optional[str] = None,
                                                           opts: Optional[InvokeOptions] = None) -> GetDbManagementPrivateEndpointAssociatedDatabaseResult
def get_db_management_private_endpoint_associated_database_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                                           db_management_private_endpoint_id: Optional[pulumi.Input[str]] = None,
                                                           opts: Optional[InvokeOptions] = None) -> Output[GetDbManagementPrivateEndpointAssociatedDatabaseResult]
func GetDbManagementPrivateEndpointAssociatedDatabase(ctx *Context, args *GetDbManagementPrivateEndpointAssociatedDatabaseArgs, opts ...InvokeOption) (*GetDbManagementPrivateEndpointAssociatedDatabaseResult, error)
func GetDbManagementPrivateEndpointAssociatedDatabaseOutput(ctx *Context, args *GetDbManagementPrivateEndpointAssociatedDatabaseOutputArgs, opts ...InvokeOption) GetDbManagementPrivateEndpointAssociatedDatabaseResultOutput

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

public static class GetDbManagementPrivateEndpointAssociatedDatabase 
{
    public static Task<GetDbManagementPrivateEndpointAssociatedDatabaseResult> InvokeAsync(GetDbManagementPrivateEndpointAssociatedDatabaseArgs args, InvokeOptions? opts = null)
    public static Output<GetDbManagementPrivateEndpointAssociatedDatabaseResult> Invoke(GetDbManagementPrivateEndpointAssociatedDatabaseInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDbManagementPrivateEndpointAssociatedDatabaseResult> getDbManagementPrivateEndpointAssociatedDatabase(GetDbManagementPrivateEndpointAssociatedDatabaseArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:DatabaseManagement/getDbManagementPrivateEndpointAssociatedDatabase:getDbManagementPrivateEndpointAssociatedDatabase
  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.

CompartmentId string

The OCID of the compartment.

DbManagementPrivateEndpointId string

The OCID of the Database Management private endpoint.

compartmentId String

The OCID of the compartment.

dbManagementPrivateEndpointId String

The OCID of the Database Management private endpoint.

compartmentId string

The OCID of the compartment.

dbManagementPrivateEndpointId string

The OCID of the Database Management private endpoint.

compartment_id str

The OCID of the compartment.

db_management_private_endpoint_id str

The OCID of the Database Management private endpoint.

compartmentId String

The OCID of the compartment.

dbManagementPrivateEndpointId String

The OCID of the Database Management private endpoint.

getDbManagementPrivateEndpointAssociatedDatabase Result

The following output properties are available:

CompartmentId string

The compartment OCID of the database.

DbManagementPrivateEndpointId string
Id string

The provider-assigned unique ID for this managed resource.

Items List<GetDbManagementPrivateEndpointAssociatedDatabaseItem>

A list of databases using a Database Management private endpoint.

CompartmentId string

The compartment OCID of the database.

DbManagementPrivateEndpointId string
Id string

The provider-assigned unique ID for this managed resource.

Items []GetDbManagementPrivateEndpointAssociatedDatabaseItem

A list of databases using a Database Management private endpoint.

compartmentId String

The compartment OCID of the database.

dbManagementPrivateEndpointId String
id String

The provider-assigned unique ID for this managed resource.

items List<GetDbManagementPrivateEndpointAssociatedDatabaseItem>

A list of databases using a Database Management private endpoint.

compartmentId string

The compartment OCID of the database.

dbManagementPrivateEndpointId string
id string

The provider-assigned unique ID for this managed resource.

items GetDbManagementPrivateEndpointAssociatedDatabaseItem[]

A list of databases using a Database Management private endpoint.

compartment_id str

The compartment OCID of the database.

db_management_private_endpoint_id str
id str

The provider-assigned unique ID for this managed resource.

items GetDbManagementPrivateEndpointAssociatedDatabaseItem]

A list of databases using a Database Management private endpoint.

compartmentId String

The compartment OCID of the database.

dbManagementPrivateEndpointId String
id String

The provider-assigned unique ID for this managed resource.

items List<Property Map>

A list of databases using a Database Management private endpoint.

Supporting Types

GetDbManagementPrivateEndpointAssociatedDatabaseItem

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.

Package Details

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

This Pulumi package is based on the oci Terraform Provider.