1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DatabaseManagement
  5. getCloudListenerServices
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

oci.DatabaseManagement.getCloudListenerServices

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

    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:

    CloudListenerId string
    The OCID of the cloud listener.
    ManagedDatabaseId string
    The OCID of the Managed Database.
    Filters List<GetCloudListenerServicesFilter>
    OpcNamedCredentialId string
    The OCID of the Named Credential.
    CloudListenerId string
    The OCID of the cloud listener.
    ManagedDatabaseId string
    The OCID of the Managed Database.
    Filters []GetCloudListenerServicesFilter
    OpcNamedCredentialId string
    The OCID of the Named Credential.
    cloudListenerId String
    The OCID of the cloud listener.
    managedDatabaseId String
    The OCID of the Managed Database.
    filters List<GetCloudListenerServicesFilter>
    opcNamedCredentialId String
    The OCID of the Named Credential.
    cloudListenerId string
    The OCID of the cloud listener.
    managedDatabaseId string
    The OCID of the Managed Database.
    filters GetCloudListenerServicesFilter[]
    opcNamedCredentialId string
    The OCID of the Named Credential.
    cloud_listener_id str
    The OCID of the cloud listener.
    managed_database_id str
    The OCID of the Managed Database.
    filters Sequence[GetCloudListenerServicesFilter]
    opc_named_credential_id str
    The OCID of the Named Credential.
    cloudListenerId String
    The OCID of the cloud listener.
    managedDatabaseId String
    The OCID of the Managed Database.
    filters List<Property Map>
    opcNamedCredentialId String
    The OCID of the Named Credential.

    getCloudListenerServices Result

    The following output properties are available:

    CloudListenerId string
    CloudListenerServiceCollections List<GetCloudListenerServicesCloudListenerServiceCollection>
    The list of cloud_listener_service_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedDatabaseId string
    The OCID of the Managed Database.
    Filters List<GetCloudListenerServicesFilter>
    OpcNamedCredentialId string
    CloudListenerId string
    CloudListenerServiceCollections []GetCloudListenerServicesCloudListenerServiceCollection
    The list of cloud_listener_service_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedDatabaseId string
    The OCID of the Managed Database.
    Filters []GetCloudListenerServicesFilter
    OpcNamedCredentialId string
    cloudListenerId String
    cloudListenerServiceCollections List<GetCloudListenerServicesCloudListenerServiceCollection>
    The list of cloud_listener_service_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    managedDatabaseId String
    The OCID of the Managed Database.
    filters List<GetCloudListenerServicesFilter>
    opcNamedCredentialId String
    cloudListenerId string
    cloudListenerServiceCollections GetCloudListenerServicesCloudListenerServiceCollection[]
    The list of cloud_listener_service_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    managedDatabaseId string
    The OCID of the Managed Database.
    filters GetCloudListenerServicesFilter[]
    opcNamedCredentialId string
    cloud_listener_id str
    cloud_listener_service_collections Sequence[GetCloudListenerServicesCloudListenerServiceCollection]
    The list of cloud_listener_service_collection.
    id str
    The provider-assigned unique ID for this managed resource.
    managed_database_id str
    The OCID of the Managed Database.
    filters Sequence[GetCloudListenerServicesFilter]
    opc_named_credential_id str
    cloudListenerId String
    cloudListenerServiceCollections List<Property Map>
    The list of cloud_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

    GetCloudListenerServicesCloudListenerServiceCollection

    items List<Property Map>
    An array of cloud listener services.

    GetCloudListenerServicesCloudListenerServiceCollectionItem

    ListenerId string
    The OCID of the cloud listener.
    ManagedDatabaseId string
    The OCID of the Managed Database.
    Name string
    The name of the service.
    ListenerId string
    The OCID of the cloud listener.
    ManagedDatabaseId string
    The OCID of the Managed Database.
    Name string
    The name of the service.
    listenerId String
    The OCID of the cloud listener.
    managedDatabaseId String
    The OCID of the Managed Database.
    name String
    The name of the service.
    listenerId string
    The OCID of the cloud listener.
    managedDatabaseId string
    The OCID of the Managed Database.
    name string
    The name of the service.
    listener_id str
    The OCID of the cloud listener.
    managed_database_id str
    The OCID of the Managed Database.
    name str
    The name of the service.
    listenerId String
    The OCID of the cloud listener.
    managedDatabaseId String
    The OCID of the Managed Database.
    name String
    The name of the service.

    GetCloudListenerServicesFilter

    Name string
    The name of the service.
    Values List<string>
    Regex bool
    Name string
    The name of the service.
    Values []string
    Regex bool
    name String
    The name of the service.
    values List<String>
    regex Boolean
    name string
    The name of the service.
    values string[]
    regex boolean
    name str
    The name of the service.
    values Sequence[str]
    regex bool
    name String
    The name of the service.
    values 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.
    oci logo
    Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi