oci.DatabaseManagement.getExternalClusters
This data source provides the list of External Clusters in Oracle Cloud Infrastructure Database Management service.
Lists the clusters in the specified external DB system.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testExternalClusters = Oci.DatabaseManagement.GetExternalClusters.Invoke(new()
{
CompartmentId = @var.Compartment_id,
DisplayName = @var.External_cluster_display_name,
ExternalDbSystemId = oci_database_management_external_db_system.Test_external_db_system.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.GetExternalClusters(ctx, &databasemanagement.GetExternalClustersArgs{
CompartmentId: pulumi.StringRef(_var.Compartment_id),
DisplayName: pulumi.StringRef(_var.External_cluster_display_name),
ExternalDbSystemId: pulumi.StringRef(oci_database_management_external_db_system.Test_external_db_system.Id),
}, nil)
if err != nil {
return err
}
return nil
})
}
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.GetExternalClustersArgs;
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 testExternalClusters = DatabaseManagementFunctions.getExternalClusters(GetExternalClustersArgs.builder()
.compartmentId(var_.compartment_id())
.displayName(var_.external_cluster_display_name())
.externalDbSystemId(oci_database_management_external_db_system.test_external_db_system().id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_external_clusters = oci.DatabaseManagement.get_external_clusters(compartment_id=var["compartment_id"],
display_name=var["external_cluster_display_name"],
external_db_system_id=oci_database_management_external_db_system["test_external_db_system"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testExternalClusters = oci.DatabaseManagement.getExternalClusters({
compartmentId: _var.compartment_id,
displayName: _var.external_cluster_display_name,
externalDbSystemId: oci_database_management_external_db_system.test_external_db_system.id,
});
variables:
testExternalClusters:
fn::invoke:
Function: oci:DatabaseManagement:getExternalClusters
Arguments:
compartmentId: ${var.compartment_id}
displayName: ${var.external_cluster_display_name}
externalDbSystemId: ${oci_database_management_external_db_system.test_external_db_system.id}
Using getExternalClusters
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 getExternalClusters(args: GetExternalClustersArgs, opts?: InvokeOptions): Promise<GetExternalClustersResult>
function getExternalClustersOutput(args: GetExternalClustersOutputArgs, opts?: InvokeOptions): Output<GetExternalClustersResult>
def get_external_clusters(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
external_db_system_id: Optional[str] = None,
filters: Optional[Sequence[_databasemanagement.GetExternalClustersFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetExternalClustersResult
def get_external_clusters_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
external_db_system_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_databasemanagement.GetExternalClustersFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetExternalClustersResult]
func GetExternalClusters(ctx *Context, args *GetExternalClustersArgs, opts ...InvokeOption) (*GetExternalClustersResult, error)
func GetExternalClustersOutput(ctx *Context, args *GetExternalClustersOutputArgs, opts ...InvokeOption) GetExternalClustersResultOutput
> Note: This function is named GetExternalClusters
in the Go SDK.
public static class GetExternalClusters
{
public static Task<GetExternalClustersResult> InvokeAsync(GetExternalClustersArgs args, InvokeOptions? opts = null)
public static Output<GetExternalClustersResult> Invoke(GetExternalClustersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetExternalClustersResult> getExternalClusters(GetExternalClustersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DatabaseManagement/getExternalClusters:getExternalClusters
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string The OCID of the compartment.
- Display
Name string A filter to only return the resources that match the entire display name.
- External
Db stringSystem Id The OCID of the external DB system.
- Filters
List<Get
External Clusters Filter>
- Compartment
Id string The OCID of the compartment.
- Display
Name string A filter to only return the resources that match the entire display name.
- External
Db stringSystem Id The OCID of the external DB system.
- Filters
[]Get
External Clusters Filter
- compartment
Id String The OCID of the compartment.
- display
Name String A filter to only return the resources that match the entire display name.
- external
Db StringSystem Id The OCID of the external DB system.
- filters
List<Get
External Clusters Filter>
- compartment
Id string The OCID of the compartment.
- display
Name string A filter to only return the resources that match the entire display name.
- external
Db stringSystem Id The OCID of the external DB system.
- filters
Get
External Clusters Filter[]
- compartment_
id str The OCID of the compartment.
- display_
name str A filter to only return the resources that match the entire display name.
- external_
db_ strsystem_ id The OCID of the external DB system.
- filters
Get
External Clusters Filter]
- compartment
Id String The OCID of the compartment.
- display
Name String A filter to only return the resources that match the entire display name.
- external
Db StringSystem Id The OCID of the external DB system.
- filters List<Property Map>
getExternalClusters Result
The following output properties are available:
- External
Cluster List<GetCollections External Clusters External Cluster Collection> The list of external_cluster_collection.
- Id string
The provider-assigned unique ID for this managed resource.
- Compartment
Id string The OCID of the compartment.
- Display
Name string The user-friendly name for the external cluster. The name does not have to be unique.
- External
Db stringSystem Id The OCID of the external DB system that the cluster is a part of.
- Filters
List<Get
External Clusters Filter>
- External
Cluster []GetCollections External Clusters External Cluster Collection The list of external_cluster_collection.
- Id string
The provider-assigned unique ID for this managed resource.
- Compartment
Id string The OCID of the compartment.
- Display
Name string The user-friendly name for the external cluster. The name does not have to be unique.
- External
Db stringSystem Id The OCID of the external DB system that the cluster is a part of.
- Filters
[]Get
External Clusters Filter
- external
Cluster List<GetCollections External Clusters External Cluster Collection> The list of external_cluster_collection.
- id String
The provider-assigned unique ID for this managed resource.
- compartment
Id String The OCID of the compartment.
- display
Name String The user-friendly name for the external cluster. The name does not have to be unique.
- external
Db StringSystem Id The OCID of the external DB system that the cluster is a part of.
- filters
List<Get
External Clusters Filter>
- external
Cluster GetCollections External Clusters External Cluster Collection[] The list of external_cluster_collection.
- id string
The provider-assigned unique ID for this managed resource.
- compartment
Id string The OCID of the compartment.
- display
Name string The user-friendly name for the external cluster. The name does not have to be unique.
- external
Db stringSystem Id The OCID of the external DB system that the cluster is a part of.
- filters
Get
External Clusters Filter[]
- external_
cluster_ Getcollections External Clusters External Cluster Collection] The list of external_cluster_collection.
- id str
The provider-assigned unique ID for this managed resource.
- compartment_
id str The OCID of the compartment.
- display_
name str The user-friendly name for the external cluster. The name does not have to be unique.
- external_
db_ strsystem_ id The OCID of the external DB system that the cluster is a part of.
- filters
Get
External Clusters Filter]
- external
Cluster List<Property Map>Collections The list of external_cluster_collection.
- id String
The provider-assigned unique ID for this managed resource.
- compartment
Id String The OCID of the compartment.
- display
Name String The user-friendly name for the external cluster. The name does not have to be unique.
- external
Db StringSystem Id The OCID of the external DB system that the cluster is a part of.
- filters List<Property Map>
Supporting Types
GetExternalClustersExternalClusterCollection
GetExternalClustersExternalClusterCollectionItem
- Additional
Details Dictionary<string, object> The additional details of the external cluster defined in
{"key": "value"}
format. Example:{"bar-key": "value"}
- Compartment
Id string The OCID of the compartment.
- Component
Name string The name of the external cluster.
- Display
Name string A filter to only return the resources that match the entire display name.
- External
Cluster stringId - External
Connector stringId The OCID of the external connector.
- External
Db stringSystem Id The OCID of the external DB system.
- Grid
Home string The directory in which Oracle Grid Infrastructure is installed.
- Id string
The OCID of the external cluster.
- Is
Flex boolCluster Indicates whether the cluster is Oracle Flex Cluster or not.
- Lifecycle
Details string Additional information about the current lifecycle state.
- Network
Configurations List<GetExternal Clusters External Cluster Collection Item Network Configuration> The list of network address configurations of the external cluster.
- Ocr
File stringLocation The location of the Oracle Cluster Registry (OCR).
- Scan
Configurations List<GetExternal Clusters External Cluster Collection Item Scan Configuration> The list of Single Client Access Name (SCAN) configurations of the external cluster.
- State string
The current lifecycle state of the external cluster.
- Time
Created string The date and time the external cluster was created.
- Time
Updated string The date and time the external cluster was last updated.
- Version string
The cluster version.
- Vip
Configurations List<GetExternal Clusters External Cluster Collection Item Vip Configuration> The list of Virtual IP (VIP) configurations of the external cluster.
- Additional
Details map[string]interface{} The additional details of the external cluster defined in
{"key": "value"}
format. Example:{"bar-key": "value"}
- Compartment
Id string The OCID of the compartment.
- Component
Name string The name of the external cluster.
- Display
Name string A filter to only return the resources that match the entire display name.
- External
Cluster stringId - External
Connector stringId The OCID of the external connector.
- External
Db stringSystem Id The OCID of the external DB system.
- Grid
Home string The directory in which Oracle Grid Infrastructure is installed.
- Id string
The OCID of the external cluster.
- Is
Flex boolCluster Indicates whether the cluster is Oracle Flex Cluster or not.
- Lifecycle
Details string Additional information about the current lifecycle state.
- Network
Configurations []GetExternal Clusters External Cluster Collection Item Network Configuration The list of network address configurations of the external cluster.
- Ocr
File stringLocation The location of the Oracle Cluster Registry (OCR).
- Scan
Configurations []GetExternal Clusters External Cluster Collection Item Scan Configuration The list of Single Client Access Name (SCAN) configurations of the external cluster.
- State string
The current lifecycle state of the external cluster.
- Time
Created string The date and time the external cluster was created.
- Time
Updated string The date and time the external cluster was last updated.
- Version string
The cluster version.
- Vip
Configurations []GetExternal Clusters External Cluster Collection Item Vip Configuration The list of Virtual IP (VIP) configurations of the external cluster.
- additional
Details Map<String,Object> The additional details of the external cluster defined in
{"key": "value"}
format. Example:{"bar-key": "value"}
- compartment
Id String The OCID of the compartment.
- component
Name String The name of the external cluster.
- display
Name String A filter to only return the resources that match the entire display name.
- external
Cluster StringId - external
Connector StringId The OCID of the external connector.
- external
Db StringSystem Id The OCID of the external DB system.
- grid
Home String The directory in which Oracle Grid Infrastructure is installed.
- id String
The OCID of the external cluster.
- is
Flex BooleanCluster Indicates whether the cluster is Oracle Flex Cluster or not.
- lifecycle
Details String Additional information about the current lifecycle state.
- network
Configurations List<GetExternal Clusters External Cluster Collection Item Network Configuration> The list of network address configurations of the external cluster.
- ocr
File StringLocation The location of the Oracle Cluster Registry (OCR).
- scan
Configurations List<GetExternal Clusters External Cluster Collection Item Scan Configuration> The list of Single Client Access Name (SCAN) configurations of the external cluster.
- state String
The current lifecycle state of the external cluster.
- time
Created String The date and time the external cluster was created.
- time
Updated String The date and time the external cluster was last updated.
- version String
The cluster version.
- vip
Configurations List<GetExternal Clusters External Cluster Collection Item Vip Configuration> The list of Virtual IP (VIP) configurations of the external cluster.
- additional
Details {[key: string]: any} The additional details of the external cluster defined in
{"key": "value"}
format. Example:{"bar-key": "value"}
- compartment
Id string The OCID of the compartment.
- component
Name string The name of the external cluster.
- display
Name string A filter to only return the resources that match the entire display name.
- external
Cluster stringId - external
Connector stringId The OCID of the external connector.
- external
Db stringSystem Id The OCID of the external DB system.
- grid
Home string The directory in which Oracle Grid Infrastructure is installed.
- id string
The OCID of the external cluster.
- is
Flex booleanCluster Indicates whether the cluster is Oracle Flex Cluster or not.
- lifecycle
Details string Additional information about the current lifecycle state.
- network
Configurations GetExternal Clusters External Cluster Collection Item Network Configuration[] The list of network address configurations of the external cluster.
- ocr
File stringLocation The location of the Oracle Cluster Registry (OCR).
- scan
Configurations GetExternal Clusters External Cluster Collection Item Scan Configuration[] The list of Single Client Access Name (SCAN) configurations of the external cluster.
- state string
The current lifecycle state of the external cluster.
- time
Created string The date and time the external cluster was created.
- time
Updated string The date and time the external cluster was last updated.
- version string
The cluster version.
- vip
Configurations GetExternal Clusters External Cluster Collection Item Vip Configuration[] The list of Virtual IP (VIP) configurations of the external cluster.
- additional_
details Mapping[str, Any] The additional details of the external cluster defined in
{"key": "value"}
format. Example:{"bar-key": "value"}
- compartment_
id str The OCID of the compartment.
- component_
name str The name of the external cluster.
- display_
name str A filter to only return the resources that match the entire display name.
- external_
cluster_ strid - external_
connector_ strid The OCID of the external connector.
- external_
db_ strsystem_ id The OCID of the external DB system.
- grid_
home str The directory in which Oracle Grid Infrastructure is installed.
- id str
The OCID of the external cluster.
- is_
flex_ boolcluster Indicates whether the cluster is Oracle Flex Cluster or not.
- lifecycle_
details str Additional information about the current lifecycle state.
- network_
configurations GetExternal Clusters External Cluster Collection Item Network Configuration] The list of network address configurations of the external cluster.
- ocr_
file_ strlocation The location of the Oracle Cluster Registry (OCR).
- scan_
configurations GetExternal Clusters External Cluster Collection Item Scan Configuration] The list of Single Client Access Name (SCAN) configurations of the external cluster.
- state str
The current lifecycle state of the external cluster.
- time_
created str The date and time the external cluster was created.
- time_
updated str The date and time the external cluster was last updated.
- version str
The cluster version.
- vip_
configurations GetExternal Clusters External Cluster Collection Item Vip Configuration] The list of Virtual IP (VIP) configurations of the external cluster.
- additional
Details Map<Any> The additional details of the external cluster defined in
{"key": "value"}
format. Example:{"bar-key": "value"}
- compartment
Id String The OCID of the compartment.
- component
Name String The name of the external cluster.
- display
Name String A filter to only return the resources that match the entire display name.
- external
Cluster StringId - external
Connector StringId The OCID of the external connector.
- external
Db StringSystem Id The OCID of the external DB system.
- grid
Home String The directory in which Oracle Grid Infrastructure is installed.
- id String
The OCID of the external cluster.
- is
Flex BooleanCluster Indicates whether the cluster is Oracle Flex Cluster or not.
- lifecycle
Details String Additional information about the current lifecycle state.
- network
Configurations List<Property Map> The list of network address configurations of the external cluster.
- ocr
File StringLocation The location of the Oracle Cluster Registry (OCR).
- scan
Configurations List<Property Map> The list of Single Client Access Name (SCAN) configurations of the external cluster.
- state String
The current lifecycle state of the external cluster.
- time
Created String The date and time the external cluster was created.
- time
Updated String The date and time the external cluster was last updated.
- version String
The cluster version.
- vip
Configurations List<Property Map> The list of Virtual IP (VIP) configurations of the external cluster.
GetExternalClustersExternalClusterCollectionItemNetworkConfiguration
- Network
Number int The network number from which VIPs are obtained.
- Network
Type string The network type.
- Subnet string
The subnet for the network.
- Network
Number int The network number from which VIPs are obtained.
- Network
Type string The network type.
- Subnet string
The subnet for the network.
- network
Number Integer The network number from which VIPs are obtained.
- network
Type String The network type.
- subnet String
The subnet for the network.
- network
Number number The network number from which VIPs are obtained.
- network
Type string The network type.
- subnet string
The subnet for the network.
- network_
number int The network number from which VIPs are obtained.
- network_
type str The network type.
- subnet str
The subnet for the network.
- network
Number Number The network number from which VIPs are obtained.
- network
Type String The network type.
- subnet String
The subnet for the network.
GetExternalClustersExternalClusterCollectionItemScanConfiguration
- Network
Number int The network number from which VIPs are obtained.
- Scan
Name string The name of the SCAN listener.
- Scan
Port int The port number of the SCAN listener.
- Scan
Protocol string The protocol of the SCAN listener.
- Network
Number int The network number from which VIPs are obtained.
- Scan
Name string The name of the SCAN listener.
- Scan
Port int The port number of the SCAN listener.
- Scan
Protocol string The protocol of the SCAN listener.
- network
Number Integer The network number from which VIPs are obtained.
- scan
Name String The name of the SCAN listener.
- scan
Port Integer The port number of the SCAN listener.
- scan
Protocol String The protocol of the SCAN listener.
- network
Number number The network number from which VIPs are obtained.
- scan
Name string The name of the SCAN listener.
- scan
Port number The port number of the SCAN listener.
- scan
Protocol string The protocol of the SCAN listener.
- network_
number int The network number from which VIPs are obtained.
- scan_
name str The name of the SCAN listener.
- scan_
port int The port number of the SCAN listener.
- scan_
protocol str The protocol of the SCAN listener.
- network
Number Number The network number from which VIPs are obtained.
- scan
Name String The name of the SCAN listener.
- scan
Port Number The port number of the SCAN listener.
- scan
Protocol String The protocol of the SCAN listener.
GetExternalClustersExternalClusterCollectionItemVipConfiguration
- Address string
The VIP name or IP address.
- Network
Number int The network number from which VIPs are obtained.
- Node
Name string The name of the node with the VIP.
- Address string
The VIP name or IP address.
- Network
Number int The network number from which VIPs are obtained.
- Node
Name string The name of the node with the VIP.
- address String
The VIP name or IP address.
- network
Number Integer The network number from which VIPs are obtained.
- node
Name String The name of the node with the VIP.
- address string
The VIP name or IP address.
- network
Number number The network number from which VIPs are obtained.
- node
Name string The name of the node with the VIP.
- address str
The VIP name or IP address.
- network_
number int The network number from which VIPs are obtained.
- node_
name str The name of the node with the VIP.
- address String
The VIP name or IP address.
- network
Number Number The network number from which VIPs are obtained.
- node
Name String The name of the node with the VIP.
GetExternalClustersFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.