Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.DatabaseManagement.getExternalListenerServices
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 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: testExternalListener.id,
managedDatabaseId: testManagedDatabase.id,
opcNamedCredentialId: externalListenerServiceOpcNamedCredentialId,
});
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)
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: testExternalListener.Id,
ManagedDatabaseId: testManagedDatabase.Id,
OpcNamedCredentialId: pulumi.StringRef(externalListenerServiceOpcNamedCredentialId),
}, 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 = testExternalListener.Id,
ManagedDatabaseId = testManagedDatabase.Id,
OpcNamedCredentialId = externalListenerServiceOpcNamedCredentialId,
});
});
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());
}
}
variables:
testExternalListenerServices:
fn::invoke:
Function: oci:DatabaseManagement:getExternalListenerServices
Arguments:
externalListenerId: ${testExternalListener.id}
managedDatabaseId: ${testManagedDatabase.id}
opcNamedCredentialId: ${externalListenerServiceOpcNamedCredentialId}
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:
- External
Listener stringId - The OCID of the external listener.
- Managed
Database stringId - The OCID of the Managed Database.
- Filters
List<Get
External Listener Services Filter> - Opc
Named stringCredential Id - The OCID of the Named Credential.
- External
Listener stringId - The OCID of the external listener.
- Managed
Database stringId - The OCID of the Managed Database.
- Filters
[]Get
External Listener Services Filter - Opc
Named stringCredential Id - The OCID of the Named Credential.
- external
Listener StringId - The OCID of the external listener.
- managed
Database StringId - The OCID of the Managed Database.
- filters
List<Get
External Listener Services Filter> - opc
Named StringCredential Id - The OCID of the Named Credential.
- external
Listener stringId - The OCID of the external listener.
- managed
Database stringId - The OCID of the Managed Database.
- filters
Get
External Listener Services Filter[] - opc
Named stringCredential Id - The OCID of the Named Credential.
- external_
listener_ strid - The OCID of the external listener.
- managed_
database_ strid - The OCID of the Managed Database.
- filters
Sequence[databasemanagement.
Get External Listener Services Filter] - opc_
named_ strcredential_ id - The OCID of the Named Credential.
- external
Listener StringId - The OCID of the external listener.
- managed
Database StringId - The OCID of the Managed Database.
- filters List<Property Map>
- opc
Named StringCredential Id - The OCID of the Named Credential.
getExternalListenerServices Result
The following output properties are available:
- External
Listener stringId - External
Listener List<GetService Collections External Listener Services External Listener Service Collection> - The list of external_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
External Listener Services Filter> - Opc
Named stringCredential Id
- External
Listener stringId - External
Listener []GetService Collections External Listener Services External Listener Service Collection - The list of external_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
External Listener Services Filter - Opc
Named stringCredential Id
- external
Listener StringId - external
Listener List<GetService Collections External Listener Services External Listener Service Collection> - The list of external_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
External Listener Services Filter> - opc
Named StringCredential Id
- external
Listener stringId - external
Listener GetService Collections External Listener Services External Listener Service Collection[] - The list of external_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
External Listener Services Filter[] - opc
Named stringCredential Id
- external_
listener_ strid - external_
listener_ Sequence[databasemanagement.service_ collections Get External Listener Services External Listener Service Collection] - The list of external_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[databasemanagement.
Get External Listener Services Filter] - opc_
named_ strcredential_ id
- external
Listener StringId - external
Listener List<Property Map>Service Collections - The list of external_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
GetExternalListenerServicesExternalListenerServiceCollection
- Items
List<Get
External Listener Services External Listener Service Collection Item> - An array of external listener services.
- Items
[]Get
External Listener Services External Listener Service Collection Item - An array of external listener services.
- items
List<Get
External Listener Services External Listener Service Collection Item> - An array of external listener services.
- items
Get
External Listener Services External Listener Service Collection Item[] - An array of external listener services.
- items
Sequence[databasemanagement.
Get External Listener Services External Listener Service Collection Item] - An array of external listener services.
- items List<Property Map>
- An array of external listener services.
GetExternalListenerServicesExternalListenerServiceCollectionItem
- Listener
Id string - The OCID of the external listener.
- Managed
Database stringId - The OCID of the Managed Database.
- Name string
- The name of the service.
- Listener
Id string - The OCID of the external listener.
- Managed
Database stringId - The OCID of the Managed Database.
- Name string
- The name of the service.
- listener
Id String - The OCID of the external listener.
- managed
Database StringId - The OCID of the Managed Database.
- name String
- The name of the service.
- listener
Id string - The OCID of the external listener.
- managed
Database stringId - The OCID of the Managed Database.
- name string
- The name of the service.
- listener_
id str - The OCID of the external listener.
- managed_
database_ strid - The OCID of the Managed Database.
- name str
- The name of the service.
- listener
Id String - The OCID of the external listener.
- managed
Database StringId - The OCID of the Managed Database.
- name String
- The name of the service.
GetExternalListenerServicesFilter
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 v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi