getHciCluster

Use this data source to access information about an existing Azure Stack HCI Cluster instance.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.stack.getHciCluster({
name: "existing",
resourceGroupName: "existing",
});
export const id = example.then(example => example.id);
export const location = example.then(example => example.location);
export const clientId = example.then(example => example.clientId);
import pulumi
import pulumi_azure as azure
example = azure.stack.get_hci_cluster(name="existing",
resource_group_name="existing")
pulumi.export("id", example.id)
pulumi.export("location", example.location)
pulumi.export("clientId", example.client_id)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.Stack.GetHciCluster.Invoke(new()
{
Name = "existing",
ResourceGroupName = "existing",
});
return new Dictionary<string, object?>
{
["id"] = example.Apply(getHciClusterResult => getHciClusterResult.Id),
["location"] = example.Apply(getHciClusterResult => getHciClusterResult.Location),
["clientId"] = example.Apply(getHciClusterResult => getHciClusterResult.ClientId),
};
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/stack"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := stack.LookupHciCluster(ctx, &stack.LookupHciClusterArgs{
Name: "existing",
ResourceGroupName: "existing",
}, nil)
if err != nil {
return err
}
ctx.Export("id", example.Id)
ctx.Export("location", example.Location)
ctx.Export("clientId", example.ClientId)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.stack.StackFunctions;
import com.pulumi.azure.stack.inputs.GetHciClusterArgs;
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 example = StackFunctions.getHciCluster(GetHciClusterArgs.builder()
.name("existing")
.resourceGroupName("existing")
.build());
ctx.export("id", example.id());
ctx.export("location", example.location());
ctx.export("clientId", example.clientId());
}
}
variables:
example:
fn::invoke:
function: azure:stack:getHciCluster
arguments:
name: existing
resourceGroupName: existing
outputs:
id: ${example.id}
location: ${example.location}
clientId: ${example.clientId}

API Providers

This data source uses the following Azure API Providers:

  • Microsoft.AzureStackHCI: 2024-01-01, 2022-05-04

Return

A collection of values returned by getHciCluster.

Parameters

argument

A collection of arguments for invoking getHciCluster.


suspend fun getHciCluster(name: String, resourceGroupName: String): GetHciClusterResult

Return

A collection of values returned by getHciCluster.

Parameters

name

The name of the Azure Stack HCI Cluster.

resourceGroupName

The name of the Resource Group where the Azure Stack HCI Cluster exists.

See also


Return

A collection of values returned by getHciCluster.

Parameters

argument

Builder for com.pulumi.azure.stack.kotlin.inputs.GetHciClusterPlainArgs.

See also