Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.DatabaseManagement.getExternalCluster
Explore with Pulumi AI
This data source provides details about a specific External Cluster resource in Oracle Cloud Infrastructure Database Management service.
Gets the details for the external cluster specified by externalClusterId.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testExternalCluster = oci.DatabaseManagement.getExternalCluster({
    externalClusterId: testExternalClusterOciDatabaseManagementExternalCluster.id,
});
import pulumi
import pulumi_oci as oci
test_external_cluster = oci.DatabaseManagement.get_external_cluster(external_cluster_id=test_external_cluster_oci_database_management_external_cluster["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/databasemanagement"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := databasemanagement.GetExternalCluster(ctx, &databasemanagement.GetExternalClusterArgs{
			ExternalClusterId: testExternalClusterOciDatabaseManagementExternalCluster.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 testExternalCluster = Oci.DatabaseManagement.GetExternalCluster.Invoke(new()
    {
        ExternalClusterId = testExternalClusterOciDatabaseManagementExternalCluster.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.GetExternalClusterArgs;
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 testExternalCluster = DatabaseManagementFunctions.getExternalCluster(GetExternalClusterArgs.builder()
            .externalClusterId(testExternalClusterOciDatabaseManagementExternalCluster.id())
            .build());
    }
}
variables:
  testExternalCluster:
    fn::invoke:
      function: oci:DatabaseManagement:getExternalCluster
      arguments:
        externalClusterId: ${testExternalClusterOciDatabaseManagementExternalCluster.id}
Using getExternalCluster
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 getExternalCluster(args: GetExternalClusterArgs, opts?: InvokeOptions): Promise<GetExternalClusterResult>
function getExternalClusterOutput(args: GetExternalClusterOutputArgs, opts?: InvokeOptions): Output<GetExternalClusterResult>def get_external_cluster(external_cluster_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetExternalClusterResult
def get_external_cluster_output(external_cluster_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetExternalClusterResult]func GetExternalCluster(ctx *Context, args *GetExternalClusterArgs, opts ...InvokeOption) (*GetExternalClusterResult, error)
func GetExternalClusterOutput(ctx *Context, args *GetExternalClusterOutputArgs, opts ...InvokeOption) GetExternalClusterResultOutput> Note: This function is named GetExternalCluster in the Go SDK.
public static class GetExternalCluster 
{
    public static Task<GetExternalClusterResult> InvokeAsync(GetExternalClusterArgs args, InvokeOptions? opts = null)
    public static Output<GetExternalClusterResult> Invoke(GetExternalClusterInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetExternalClusterResult> getExternalCluster(GetExternalClusterArgs args, InvokeOptions options)
public static Output<GetExternalClusterResult> getExternalCluster(GetExternalClusterArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DatabaseManagement/getExternalCluster:getExternalCluster
  arguments:
    # arguments dictionaryThe following arguments are supported:
- External
Cluster stringId  - The OCID of the external cluster.
 
- External
Cluster stringId  - The OCID of the external cluster.
 
- external
Cluster StringId  - The OCID of the external cluster.
 
- external
Cluster stringId  - The OCID of the external cluster.
 
- external_
cluster_ strid  - The OCID of the external cluster.
 
- external
Cluster StringId  - The OCID of the external cluster.
 
getExternalCluster Result
The following output properties are available:
- Additional
Details Dictionary<string, string> - 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.
 - Dictionary<string, string>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: 
{"Operations.CostCenter": "42"} - Display
Name string - The user-friendly name for the external cluster. The name does not have to be unique.
 - External
Cluster stringId  - External
Connector stringId  - The OCID of the external connector.
 - External
Db stringSystem Id  - The OCID of the external DB system that the cluster is a part of.
 - Dictionary<string, string>
 - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: 
{"Department": "Finance"} - 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 Cluster 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 Cluster 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.
 - Dictionary<string, string>
 - System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: 
{"orcl-cloud.free-tier-retained": "true"} - 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 Cluster Vip Configuration>  - The list of Virtual IP (VIP) configurations of the external cluster.
 
- Additional
Details map[string]string - 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.
 - map[string]string
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: 
{"Operations.CostCenter": "42"} - Display
Name string - The user-friendly name for the external cluster. The name does not have to be unique.
 - External
Cluster stringId  - External
Connector stringId  - The OCID of the external connector.
 - External
Db stringSystem Id  - The OCID of the external DB system that the cluster is a part of.
 - map[string]string
 - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: 
{"Department": "Finance"} - 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 Cluster 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 Cluster 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.
 - map[string]string
 - System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: 
{"orcl-cloud.free-tier-retained": "true"} - 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 Cluster Vip Configuration  - The list of Virtual IP (VIP) configurations of the external cluster.
 
- additional
Details Map<String,String> - 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.
 - Map<String,String>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: 
{"Operations.CostCenter": "42"} - display
Name String - The user-friendly name for the external cluster. The name does not have to be unique.
 - external
Cluster StringId  - external
Connector StringId  - The OCID of the external connector.
 - external
Db StringSystem Id  - The OCID of the external DB system that the cluster is a part of.
 - Map<String,String>
 - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: 
{"Department": "Finance"} - 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 Cluster 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 Cluster 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.
 - Map<String,String>
 - System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: 
{"orcl-cloud.free-tier-retained": "true"} - 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 Cluster Vip Configuration>  - The list of Virtual IP (VIP) configurations of the external cluster.
 
- additional
Details {[key: string]: string} - 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.
 - {[key: string]: string}
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: 
{"Operations.CostCenter": "42"} - display
Name string - The user-friendly name for the external cluster. The name does not have to be unique.
 - external
Cluster stringId  - external
Connector stringId  - The OCID of the external connector.
 - external
Db stringSystem Id  - The OCID of the external DB system that the cluster is a part of.
 - {[key: string]: string}
 - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: 
{"Department": "Finance"} - 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 Cluster 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 Cluster 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.
 - {[key: string]: string}
 - System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: 
{"orcl-cloud.free-tier-retained": "true"} - 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 Cluster Vip Configuration[]  - The list of Virtual IP (VIP) configurations of the external cluster.
 
- additional_
details Mapping[str, str] - 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.
 - Mapping[str, str]
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: 
{"Operations.CostCenter": "42"} - display_
name str - The user-friendly name for the external cluster. The name does not have to be unique.
 - external_
cluster_ strid  - external_
connector_ strid  - The OCID of the external connector.
 - external_
db_ strsystem_ id  - The OCID of the external DB system that the cluster is a part of.
 - Mapping[str, str]
 - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: 
{"Department": "Finance"} - 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 Sequence[databasemanagement.Get External Cluster 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 Sequence[databasemanagement.Get External Cluster 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.
 - Mapping[str, str]
 - System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: 
{"orcl-cloud.free-tier-retained": "true"} - 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 Sequence[databasemanagement.Get External Cluster Vip Configuration]  - The list of Virtual IP (VIP) configurations of the external cluster.
 
- additional
Details Map<String> - 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.
 - Map<String>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: 
{"Operations.CostCenter": "42"} - display
Name String - The user-friendly name for the external cluster. The name does not have to be unique.
 - external
Cluster StringId  - external
Connector StringId  - The OCID of the external connector.
 - external
Db StringSystem Id  - The OCID of the external DB system that the cluster is a part of.
 - Map<String>
 - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: 
{"Department": "Finance"} - 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.
 - Map<String>
 - System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: 
{"orcl-cloud.free-tier-retained": "true"} - 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.
 
Supporting Types
GetExternalClusterNetworkConfiguration    
- 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.
 
GetExternalClusterScanConfiguration    
- 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.
 
GetExternalClusterVipConfiguration    
- 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.
 
Package Details
- Repository
 - oci pulumi/pulumi-oci
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
ociTerraform Provider.