1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DatabaseManagement
  5. getExternalListenerServices
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.DatabaseManagement.getExternalListenerServices

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

This data source provides the list of External Listener Services in Oracle Cloud Infrastructure Database Management service.

Lists the database services registered with the specified external listener for the specified Managed Database.

Example Usage

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

const testExternalListenerServices = oci.DatabaseManagement.getExternalListenerServices({
    externalListenerId: testExternalListener.id,
    managedDatabaseId: testManagedDatabase.id,
    opcNamedCredentialId: externalListenerServiceOpcNamedCredentialId,
});
Copy
import pulumi
import pulumi_oci as oci

test_external_listener_services = oci.DatabaseManagement.get_external_listener_services(external_listener_id=test_external_listener["id"],
    managed_database_id=test_managed_database["id"],
    opc_named_credential_id=external_listener_service_opc_named_credential_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.GetExternalListenerServices(ctx, &databasemanagement.GetExternalListenerServicesArgs{
			ExternalListenerId:   testExternalListener.Id,
			ManagedDatabaseId:    testManagedDatabase.Id,
			OpcNamedCredentialId: pulumi.StringRef(externalListenerServiceOpcNamedCredentialId),
		}, 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 testExternalListenerServices = Oci.DatabaseManagement.GetExternalListenerServices.Invoke(new()
    {
        ExternalListenerId = testExternalListener.Id,
        ManagedDatabaseId = testManagedDatabase.Id,
        OpcNamedCredentialId = externalListenerServiceOpcNamedCredentialId,
    });

});
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.GetExternalListenerServicesArgs;
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 testExternalListenerServices = DatabaseManagementFunctions.getExternalListenerServices(GetExternalListenerServicesArgs.builder()
            .externalListenerId(testExternalListener.id())
            .managedDatabaseId(testManagedDatabase.id())
            .opcNamedCredentialId(externalListenerServiceOpcNamedCredentialId)
            .build());

    }
}
Copy
variables:
  testExternalListenerServices:
    fn::invoke:
      function: oci:DatabaseManagement:getExternalListenerServices
      arguments:
        externalListenerId: ${testExternalListener.id}
        managedDatabaseId: ${testManagedDatabase.id}
        opcNamedCredentialId: ${externalListenerServiceOpcNamedCredentialId}
Copy

Using getExternalListenerServices

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 getExternalListenerServices(args: GetExternalListenerServicesArgs, opts?: InvokeOptions): Promise<GetExternalListenerServicesResult>
function getExternalListenerServicesOutput(args: GetExternalListenerServicesOutputArgs, opts?: InvokeOptions): Output<GetExternalListenerServicesResult>
Copy
def get_external_listener_services(external_listener_id: Optional[str] = None,
                                   filters: Optional[Sequence[_databasemanagement.GetExternalListenerServicesFilter]] = None,
                                   managed_database_id: Optional[str] = None,
                                   opc_named_credential_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetExternalListenerServicesResult
def get_external_listener_services_output(external_listener_id: Optional[pulumi.Input[str]] = None,
                                   filters: Optional[pulumi.Input[Sequence[pulumi.Input[_databasemanagement.GetExternalListenerServicesFilterArgs]]]] = None,
                                   managed_database_id: Optional[pulumi.Input[str]] = None,
                                   opc_named_credential_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetExternalListenerServicesResult]
Copy
func GetExternalListenerServices(ctx *Context, args *GetExternalListenerServicesArgs, opts ...InvokeOption) (*GetExternalListenerServicesResult, error)
func GetExternalListenerServicesOutput(ctx *Context, args *GetExternalListenerServicesOutputArgs, opts ...InvokeOption) GetExternalListenerServicesResultOutput
Copy

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

public static class GetExternalListenerServices 
{
    public static Task<GetExternalListenerServicesResult> InvokeAsync(GetExternalListenerServicesArgs args, InvokeOptions? opts = null)
    public static Output<GetExternalListenerServicesResult> Invoke(GetExternalListenerServicesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetExternalListenerServicesResult> getExternalListenerServices(GetExternalListenerServicesArgs args, InvokeOptions options)
public static Output<GetExternalListenerServicesResult> getExternalListenerServices(GetExternalListenerServicesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:DatabaseManagement/getExternalListenerServices:getExternalListenerServices
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ExternalListenerId This property is required. string
The OCID of the external listener.
ManagedDatabaseId This property is required. string
The OCID of the Managed Database.
Filters Changes to this property will trigger replacement. List<GetExternalListenerServicesFilter>
OpcNamedCredentialId string
The OCID of the Named Credential.
ExternalListenerId This property is required. string
The OCID of the external listener.
ManagedDatabaseId This property is required. string
The OCID of the Managed Database.
Filters Changes to this property will trigger replacement. []GetExternalListenerServicesFilter
OpcNamedCredentialId string
The OCID of the Named Credential.
externalListenerId This property is required. String
The OCID of the external listener.
managedDatabaseId This property is required. String
The OCID of the Managed Database.
filters Changes to this property will trigger replacement. List<GetExternalListenerServicesFilter>
opcNamedCredentialId String
The OCID of the Named Credential.
externalListenerId This property is required. string
The OCID of the external listener.
managedDatabaseId This property is required. string
The OCID of the Managed Database.
filters Changes to this property will trigger replacement. GetExternalListenerServicesFilter[]
opcNamedCredentialId string
The OCID of the Named Credential.
external_listener_id This property is required. str
The OCID of the external listener.
managed_database_id This property is required. str
The OCID of the Managed Database.
filters Changes to this property will trigger replacement. Sequence[databasemanagement.GetExternalListenerServicesFilter]
opc_named_credential_id str
The OCID of the Named Credential.
externalListenerId This property is required. String
The OCID of the external listener.
managedDatabaseId This property is required. String
The OCID of the Managed Database.
filters Changes to this property will trigger replacement. List<Property Map>
opcNamedCredentialId String
The OCID of the Named Credential.

getExternalListenerServices Result

The following output properties are available:

ExternalListenerId string
ExternalListenerServiceCollections List<GetExternalListenerServicesExternalListenerServiceCollection>
The list of external_listener_service_collection.
Id string
The provider-assigned unique ID for this managed resource.
ManagedDatabaseId string
The OCID of the Managed Database.
Filters List<GetExternalListenerServicesFilter>
OpcNamedCredentialId string
ExternalListenerId string
ExternalListenerServiceCollections []GetExternalListenerServicesExternalListenerServiceCollection
The list of external_listener_service_collection.
Id string
The provider-assigned unique ID for this managed resource.
ManagedDatabaseId string
The OCID of the Managed Database.
Filters []GetExternalListenerServicesFilter
OpcNamedCredentialId string
externalListenerId String
externalListenerServiceCollections List<GetExternalListenerServicesExternalListenerServiceCollection>
The list of external_listener_service_collection.
id String
The provider-assigned unique ID for this managed resource.
managedDatabaseId String
The OCID of the Managed Database.
filters List<GetExternalListenerServicesFilter>
opcNamedCredentialId String
externalListenerId string
externalListenerServiceCollections GetExternalListenerServicesExternalListenerServiceCollection[]
The list of external_listener_service_collection.
id string
The provider-assigned unique ID for this managed resource.
managedDatabaseId string
The OCID of the Managed Database.
filters GetExternalListenerServicesFilter[]
opcNamedCredentialId string
externalListenerId String
externalListenerServiceCollections List<Property Map>
The list of external_listener_service_collection.
id String
The provider-assigned unique ID for this managed resource.
managedDatabaseId String
The OCID of the Managed Database.
filters List<Property Map>
opcNamedCredentialId String

Supporting Types

GetExternalListenerServicesExternalListenerServiceCollection

Items This property is required. List<GetExternalListenerServicesExternalListenerServiceCollectionItem>
An array of external listener services.
Items This property is required. []GetExternalListenerServicesExternalListenerServiceCollectionItem
An array of external listener services.
items This property is required. List<GetExternalListenerServicesExternalListenerServiceCollectionItem>
An array of external listener services.
items This property is required. GetExternalListenerServicesExternalListenerServiceCollectionItem[]
An array of external listener services.
items This property is required. Sequence[databasemanagement.GetExternalListenerServicesExternalListenerServiceCollectionItem]
An array of external listener services.
items This property is required. List<Property Map>
An array of external listener services.

GetExternalListenerServicesExternalListenerServiceCollectionItem

ListenerId This property is required. string
The OCID of the external listener.
ManagedDatabaseId This property is required. string
The OCID of the Managed Database.
Name This property is required. string
The name of the service.
ListenerId This property is required. string
The OCID of the external listener.
ManagedDatabaseId This property is required. string
The OCID of the Managed Database.
Name This property is required. string
The name of the service.
listenerId This property is required. String
The OCID of the external listener.
managedDatabaseId This property is required. String
The OCID of the Managed Database.
name This property is required. String
The name of the service.
listenerId This property is required. string
The OCID of the external listener.
managedDatabaseId This property is required. string
The OCID of the Managed Database.
name This property is required. string
The name of the service.
listener_id This property is required. str
The OCID of the external listener.
managed_database_id This property is required. str
The OCID of the Managed Database.
name This property is required. str
The name of the service.
listenerId This property is required. String
The OCID of the external listener.
managedDatabaseId This property is required. String
The OCID of the Managed Database.
name This property is required. String
The name of the service.

GetExternalListenerServicesFilter

Name This property is required. string
The name of the service.
Values This property is required. List<string>
Regex bool
Name This property is required. string
The name of the service.
Values This property is required. []string
Regex bool
name This property is required. String
The name of the service.
values This property is required. List<String>
regex Boolean
name This property is required. string
The name of the service.
values This property is required. string[]
regex boolean
name This property is required. str
The name of the service.
values This property is required. Sequence[str]
regex bool
name This property is required. String
The name of the service.
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.
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi