Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi
oci.DatabaseManagement.getCloudListenerServices
Explore with Pulumi AI
This data source provides the list of Cloud Listener Services in Oracle Cloud Infrastructure Database Management service.
Lists the database services registered with the specified cloud listener for the specified Managed Database.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCloudListenerServices = oci.DatabaseManagement.getCloudListenerServices({
cloudListenerId: testCloudListener.id,
managedDatabaseId: testManagedDatabase.id,
opcNamedCredentialId: cloudListenerServiceOpcNamedCredentialId,
});
import pulumi
import pulumi_oci as oci
test_cloud_listener_services = oci.DatabaseManagement.get_cloud_listener_services(cloud_listener_id=test_cloud_listener["id"],
managed_database_id=test_managed_database["id"],
opc_named_credential_id=cloud_listener_service_opc_named_credential_id)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/databasemanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databasemanagement.GetCloudListenerServices(ctx, &databasemanagement.GetCloudListenerServicesArgs{
CloudListenerId: testCloudListener.Id,
ManagedDatabaseId: testManagedDatabase.Id,
OpcNamedCredentialId: pulumi.StringRef(cloudListenerServiceOpcNamedCredentialId),
}, 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 testCloudListenerServices = Oci.DatabaseManagement.GetCloudListenerServices.Invoke(new()
{
CloudListenerId = testCloudListener.Id,
ManagedDatabaseId = testManagedDatabase.Id,
OpcNamedCredentialId = cloudListenerServiceOpcNamedCredentialId,
});
});
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.GetCloudListenerServicesArgs;
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 testCloudListenerServices = DatabaseManagementFunctions.getCloudListenerServices(GetCloudListenerServicesArgs.builder()
.cloudListenerId(testCloudListener.id())
.managedDatabaseId(testManagedDatabase.id())
.opcNamedCredentialId(cloudListenerServiceOpcNamedCredentialId)
.build());
}
}
variables:
testCloudListenerServices:
fn::invoke:
function: oci:DatabaseManagement:getCloudListenerServices
arguments:
cloudListenerId: ${testCloudListener.id}
managedDatabaseId: ${testManagedDatabase.id}
opcNamedCredentialId: ${cloudListenerServiceOpcNamedCredentialId}
Using getCloudListenerServices
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 getCloudListenerServices(args: GetCloudListenerServicesArgs, opts?: InvokeOptions): Promise<GetCloudListenerServicesResult>
function getCloudListenerServicesOutput(args: GetCloudListenerServicesOutputArgs, opts?: InvokeOptions): Output<GetCloudListenerServicesResult>
def get_cloud_listener_services(cloud_listener_id: Optional[str] = None,
filters: Optional[Sequence[GetCloudListenerServicesFilter]] = None,
managed_database_id: Optional[str] = None,
opc_named_credential_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudListenerServicesResult
def get_cloud_listener_services_output(cloud_listener_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetCloudListenerServicesFilterArgs]]]] = None,
managed_database_id: Optional[pulumi.Input[str]] = None,
opc_named_credential_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudListenerServicesResult]
func GetCloudListenerServices(ctx *Context, args *GetCloudListenerServicesArgs, opts ...InvokeOption) (*GetCloudListenerServicesResult, error)
func GetCloudListenerServicesOutput(ctx *Context, args *GetCloudListenerServicesOutputArgs, opts ...InvokeOption) GetCloudListenerServicesResultOutput
> Note: This function is named GetCloudListenerServices
in the Go SDK.
public static class GetCloudListenerServices
{
public static Task<GetCloudListenerServicesResult> InvokeAsync(GetCloudListenerServicesArgs args, InvokeOptions? opts = null)
public static Output<GetCloudListenerServicesResult> Invoke(GetCloudListenerServicesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCloudListenerServicesResult> getCloudListenerServices(GetCloudListenerServicesArgs args, InvokeOptions options)
public static Output<GetCloudListenerServicesResult> getCloudListenerServices(GetCloudListenerServicesArgs args, InvokeOptions options)
fn::invoke:
function: oci:DatabaseManagement/getCloudListenerServices:getCloudListenerServices
arguments:
# arguments dictionary
The following arguments are supported:
- Cloud
Listener stringId - The OCID of the cloud listener.
- Managed
Database stringId - The OCID of the Managed Database.
- Filters
List<Get
Cloud Listener Services Filter> - Opc
Named stringCredential Id - The OCID of the Named Credential.
- Cloud
Listener stringId - The OCID of the cloud listener.
- Managed
Database stringId - The OCID of the Managed Database.
- Filters
[]Get
Cloud Listener Services Filter - Opc
Named stringCredential Id - The OCID of the Named Credential.
- cloud
Listener StringId - The OCID of the cloud listener.
- managed
Database StringId - The OCID of the Managed Database.
- filters
List<Get
Cloud Listener Services Filter> - opc
Named StringCredential Id - The OCID of the Named Credential.
- cloud
Listener stringId - The OCID of the cloud listener.
- managed
Database stringId - The OCID of the Managed Database.
- filters
Get
Cloud Listener Services Filter[] - opc
Named stringCredential Id - The OCID of the Named Credential.
- cloud_
listener_ strid - The OCID of the cloud listener.
- managed_
database_ strid - The OCID of the Managed Database.
- filters
Sequence[Get
Cloud Listener Services Filter] - opc_
named_ strcredential_ id - The OCID of the Named Credential.
- cloud
Listener StringId - The OCID of the cloud listener.
- managed
Database StringId - The OCID of the Managed Database.
- filters List<Property Map>
- opc
Named StringCredential Id - The OCID of the Named Credential.
getCloudListenerServices Result
The following output properties are available:
- Cloud
Listener stringId - Cloud
Listener List<GetService Collections Cloud Listener Services Cloud Listener Service Collection> - The list of cloud_listener_service_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Database stringId - The OCID of the Managed Database.
- Filters
List<Get
Cloud Listener Services Filter> - Opc
Named stringCredential Id
- Cloud
Listener stringId - Cloud
Listener []GetService Collections Cloud Listener Services Cloud Listener Service Collection - The list of cloud_listener_service_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Database stringId - The OCID of the Managed Database.
- Filters
[]Get
Cloud Listener Services Filter - Opc
Named stringCredential Id
- cloud
Listener StringId - cloud
Listener List<GetService Collections Cloud Listener Services Cloud Listener Service Collection> - The list of cloud_listener_service_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Database StringId - The OCID of the Managed Database.
- filters
List<Get
Cloud Listener Services Filter> - opc
Named StringCredential Id
- cloud
Listener stringId - cloud
Listener GetService Collections Cloud Listener Services Cloud Listener Service Collection[] - The list of cloud_listener_service_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- managed
Database stringId - The OCID of the Managed Database.
- filters
Get
Cloud Listener Services Filter[] - opc
Named stringCredential Id
- cloud_
listener_ strid - cloud_
listener_ Sequence[Getservice_ collections Cloud Listener Services Cloud Listener Service Collection] - The list of cloud_listener_service_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- managed_
database_ strid - The OCID of the Managed Database.
- filters
Sequence[Get
Cloud Listener Services Filter] - opc_
named_ strcredential_ id
- cloud
Listener StringId - cloud
Listener List<Property Map>Service Collections - The list of cloud_listener_service_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Database StringId - The OCID of the Managed Database.
- filters List<Property Map>
- opc
Named StringCredential Id
Supporting Types
GetCloudListenerServicesCloudListenerServiceCollection
- Items
List<Get
Cloud Listener Services Cloud Listener Service Collection Item> - An array of cloud listener services.
- Items
[]Get
Cloud Listener Services Cloud Listener Service Collection Item - An array of cloud listener services.
- items
List<Get
Cloud Listener Services Cloud Listener Service Collection Item> - An array of cloud listener services.
- items
Get
Cloud Listener Services Cloud Listener Service Collection Item[] - An array of cloud listener services.
- items
Sequence[Get
Cloud Listener Services Cloud Listener Service Collection Item] - An array of cloud listener services.
- items List<Property Map>
- An array of cloud listener services.
GetCloudListenerServicesCloudListenerServiceCollectionItem
- Listener
Id string - The OCID of the cloud listener.
- Managed
Database stringId - The OCID of the Managed Database.
- Name string
- The name of the service.
- Listener
Id string - The OCID of the cloud listener.
- Managed
Database stringId - The OCID of the Managed Database.
- Name string
- The name of the service.
- listener
Id String - The OCID of the cloud listener.
- managed
Database StringId - The OCID of the Managed Database.
- name String
- The name of the service.
- listener
Id string - The OCID of the cloud listener.
- managed
Database stringId - The OCID of the Managed Database.
- name string
- The name of the service.
- listener_
id str - The OCID of the cloud listener.
- managed_
database_ strid - The OCID of the Managed Database.
- name str
- The name of the service.
- listener
Id String - The OCID of the cloud listener.
- managed
Database StringId - The OCID of the Managed Database.
- name String
- The name of the service.
GetCloudListenerServicesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.