1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DatabaseManagement
  5. getExternalListenerServices
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

oci.DatabaseManagement.getExternalListenerServices

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 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: oci_database_management_external_listener.test_external_listener.id,
        managedDatabaseId: oci_database_management_managed_database.test_managed_database.id,
        opcNamedCredentialId: _var.external_listener_service_opc_named_credential_id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_external_listener_services = oci.DatabaseManagement.get_external_listener_services(external_listener_id=oci_database_management_external_listener["test_external_listener"]["id"],
        managed_database_id=oci_database_management_managed_database["test_managed_database"]["id"],
        opc_named_credential_id=var["external_listener_service_opc_named_credential_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.GetExternalListenerServices(ctx, &databasemanagement.GetExternalListenerServicesArgs{
    			ExternalListenerId:   oci_database_management_external_listener.Test_external_listener.Id,
    			ManagedDatabaseId:    oci_database_management_managed_database.Test_managed_database.Id,
    			OpcNamedCredentialId: pulumi.StringRef(_var.External_listener_service_opc_named_credential_id),
    		}, 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 testExternalListenerServices = Oci.DatabaseManagement.GetExternalListenerServices.Invoke(new()
        {
            ExternalListenerId = oci_database_management_external_listener.Test_external_listener.Id,
            ManagedDatabaseId = oci_database_management_managed_database.Test_managed_database.Id,
            OpcNamedCredentialId = @var.External_listener_service_opc_named_credential_id,
        });
    
    });
    
    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(oci_database_management_external_listener.test_external_listener().id())
                .managedDatabaseId(oci_database_management_managed_database.test_managed_database().id())
                .opcNamedCredentialId(var_.external_listener_service_opc_named_credential_id())
                .build());
    
        }
    }
    
    variables:
      testExternalListenerServices:
        fn::invoke:
          Function: oci:DatabaseManagement:getExternalListenerServices
          Arguments:
            externalListenerId: ${oci_database_management_external_listener.test_external_listener.id}
            managedDatabaseId: ${oci_database_management_managed_database.test_managed_database.id}
            opcNamedCredentialId: ${var.external_listener_service_opc_named_credential_id}
    

    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>
    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]
    func GetExternalListenerServices(ctx *Context, args *GetExternalListenerServicesArgs, opts ...InvokeOption) (*GetExternalListenerServicesResult, error)
    func GetExternalListenerServicesOutput(ctx *Context, args *GetExternalListenerServicesOutputArgs, opts ...InvokeOption) GetExternalListenerServicesResultOutput

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

    The following arguments are supported:

    ExternalListenerId string
    The OCID of the external listener.
    ManagedDatabaseId string
    The OCID of the Managed Database.
    Filters List<GetExternalListenerServicesFilter>
    OpcNamedCredentialId string
    The OCID of the Named Credential.
    ExternalListenerId string
    The OCID of the external listener.
    ManagedDatabaseId string
    The OCID of the Managed Database.
    Filters []GetExternalListenerServicesFilter
    OpcNamedCredentialId string
    The OCID of the Named Credential.
    externalListenerId String
    The OCID of the external listener.
    managedDatabaseId String
    The OCID of the Managed Database.
    filters List<GetExternalListenerServicesFilter>
    opcNamedCredentialId String
    The OCID of the Named Credential.
    externalListenerId string
    The OCID of the external listener.
    managedDatabaseId string
    The OCID of the Managed Database.
    filters GetExternalListenerServicesFilter[]
    opcNamedCredentialId string
    The OCID of the Named Credential.
    external_listener_id str
    The OCID of the external listener.
    managed_database_id str
    The OCID of the Managed Database.
    filters GetExternalListenerServicesFilter]
    opc_named_credential_id str
    The OCID of the Named Credential.
    externalListenerId String
    The OCID of the external listener.
    managedDatabaseId String
    The OCID of the Managed Database.
    filters 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
    external_listener_id str
    external_listener_service_collections GetExternalListenerServicesExternalListenerServiceCollection]
    The list of external_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 GetExternalListenerServicesFilter]
    opc_named_credential_id str
    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 List<Property Map>
    An array of external listener services.

    GetExternalListenerServicesExternalListenerServiceCollectionItem

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

    GetExternalListenerServicesFilter

    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 v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi