GetCluster
Use this data source to access information about an existing HDInsight Cluster.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.HDInsight.GetCluster.InvokeAsync(new Azure.HDInsight.GetClusterArgs
{
Name = "example",
ResourceGroupName = "example-resources",
}));
this.HttpsEndpoint = example.Apply(example => example.HttpsEndpoint);
}
[Output("httpsEndpoint")]
public Output<string> HttpsEndpoint { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/hdinsight"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := hdinsight.GetCluster(ctx, &hdinsight.GetClusterArgs{
Name: "example",
ResourceGroupName: "example-resources",
}, nil)
if err != nil {
return err
}
ctx.Export("httpsEndpoint", example.HttpsEndpoint)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.hdinsight.get_cluster(name="example",
resource_group_name="example-resources")
pulumi.export("httpsEndpoint", example.https_endpoint)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.hdinsight.getCluster({
name: "example",
resourceGroupName: "example-resources",
});
export const httpsEndpoint = example.then(example => example.httpsEndpoint);Using GetCluster
function getCluster(args: GetClusterArgs, opts?: InvokeOptions): Promise<GetClusterResult>function get_cluster(name=None, resource_group_name=None, opts=None)func GetCluster(ctx *Context, args *GetClusterArgs, opts ...InvokeOption) (*GetClusterResult, error)public static class GetCluster {
public static Task<GetClusterResult> InvokeAsync(GetClusterArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
Specifies the name of this HDInsight Cluster.
- Resource
Group stringName Specifies the name of the Resource Group in which this HDInsight Cluster exists.
- Name string
Specifies the name of this HDInsight Cluster.
- Resource
Group stringName Specifies the name of the Resource Group in which this HDInsight Cluster exists.
- name string
Specifies the name of this HDInsight Cluster.
- resource
Group stringName Specifies the name of the Resource Group in which this HDInsight Cluster exists.
- name str
Specifies the name of this HDInsight Cluster.
- resource_
group_ strname Specifies the name of the Resource Group in which this HDInsight Cluster exists.
GetCluster Result
The following output properties are available:
- Cluster
Version string The version of HDInsights which is used on this HDInsight Cluster.
- Component
Versions Dictionary<string, string> A map of versions of software used on this HDInsights Cluster.
- Edge
Ssh stringEndpoint The SSH Endpoint of the Edge Node for this HDInsight Cluster, if an Edge Node exists.
- Gateways
List<Get
Cluster Gateway> A
gatewayblock as defined below.- Https
Endpoint string The HTTPS Endpoint for this HDInsight Cluster.
- Id string
The provider-assigned unique ID for this managed resource.
- Kind string
The kind of HDInsight Cluster this is, such as a Spark or Storm cluster.
- Location string
The Azure Region in which this HDInsight Cluster exists.
- Name string
- Resource
Group stringName - Ssh
Endpoint string The SSH Endpoint for this HDInsight Cluster.
- Dictionary<string, string>
A map of tags assigned to the HDInsight Cluster.
- Tier string
The SKU / Tier of this HDInsight Cluster.
- Tls
Min stringVersion
- Cluster
Version string The version of HDInsights which is used on this HDInsight Cluster.
- Component
Versions map[string]string A map of versions of software used on this HDInsights Cluster.
- Edge
Ssh stringEndpoint The SSH Endpoint of the Edge Node for this HDInsight Cluster, if an Edge Node exists.
- Gateways
[]Get
Cluster Gateway A
gatewayblock as defined below.- Https
Endpoint string The HTTPS Endpoint for this HDInsight Cluster.
- Id string
The provider-assigned unique ID for this managed resource.
- Kind string
The kind of HDInsight Cluster this is, such as a Spark or Storm cluster.
- Location string
The Azure Region in which this HDInsight Cluster exists.
- Name string
- Resource
Group stringName - Ssh
Endpoint string The SSH Endpoint for this HDInsight Cluster.
- map[string]string
A map of tags assigned to the HDInsight Cluster.
- Tier string
The SKU / Tier of this HDInsight Cluster.
- Tls
Min stringVersion
- cluster
Version string The version of HDInsights which is used on this HDInsight Cluster.
- component
Versions {[key: string]: string} A map of versions of software used on this HDInsights Cluster.
- edge
Ssh stringEndpoint The SSH Endpoint of the Edge Node for this HDInsight Cluster, if an Edge Node exists.
- gateways
Get
Cluster Gateway[] A
gatewayblock as defined below.- https
Endpoint string The HTTPS Endpoint for this HDInsight Cluster.
- id string
The provider-assigned unique ID for this managed resource.
- kind string
The kind of HDInsight Cluster this is, such as a Spark or Storm cluster.
- location string
The Azure Region in which this HDInsight Cluster exists.
- name string
- resource
Group stringName - ssh
Endpoint string The SSH Endpoint for this HDInsight Cluster.
- {[key: string]: string}
A map of tags assigned to the HDInsight Cluster.
- tier string
The SKU / Tier of this HDInsight Cluster.
- tls
Min stringVersion
- cluster_
version str The version of HDInsights which is used on this HDInsight Cluster.
- component_
versions Dict[str, str] A map of versions of software used on this HDInsights Cluster.
- edge_
ssh_ strendpoint The SSH Endpoint of the Edge Node for this HDInsight Cluster, if an Edge Node exists.
- gateways
List[Get
Cluster Gateway] A
gatewayblock as defined below.- https_
endpoint str The HTTPS Endpoint for this HDInsight Cluster.
- id str
The provider-assigned unique ID for this managed resource.
- kind str
The kind of HDInsight Cluster this is, such as a Spark or Storm cluster.
- location str
The Azure Region in which this HDInsight Cluster exists.
- name str
- resource_
group_ strname - ssh_
endpoint str The SSH Endpoint for this HDInsight Cluster.
- Dict[str, str]
A map of tags assigned to the HDInsight Cluster.
- tier str
The SKU / Tier of this HDInsight Cluster.
- tls_
min_ strversion
Supporting Types
GetClusterGateway
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.