We recommend using Azure Native.
Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi
azure.stack.getHciCluster
Explore with Pulumi AI
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)
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
})
}
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 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.applyValue(getHciClusterResult -> getHciClusterResult.id()));
ctx.export("location", example.applyValue(getHciClusterResult -> getHciClusterResult.location()));
ctx.export("clientId", example.applyValue(getHciClusterResult -> getHciClusterResult.clientId()));
}
}
variables:
example:
fn::invoke:
Function: azure:stack:getHciCluster
Arguments:
name: existing
resourceGroupName: existing
outputs:
id: ${example.id}
location: ${example.location}
clientId: ${example.clientId}
Using getHciCluster
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 getHciCluster(args: GetHciClusterArgs, opts?: InvokeOptions): Promise<GetHciClusterResult>
function getHciClusterOutput(args: GetHciClusterOutputArgs, opts?: InvokeOptions): Output<GetHciClusterResult>
def get_hci_cluster(name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetHciClusterResult
def get_hci_cluster_output(name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetHciClusterResult]
func LookupHciCluster(ctx *Context, args *LookupHciClusterArgs, opts ...InvokeOption) (*LookupHciClusterResult, error)
func LookupHciClusterOutput(ctx *Context, args *LookupHciClusterOutputArgs, opts ...InvokeOption) LookupHciClusterResultOutput
> Note: This function is named LookupHciCluster
in the Go SDK.
public static class GetHciCluster
{
public static Task<GetHciClusterResult> InvokeAsync(GetHciClusterArgs args, InvokeOptions? opts = null)
public static Output<GetHciClusterResult> Invoke(GetHciClusterInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetHciClusterResult> getHciCluster(GetHciClusterArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:stack/getHciCluster:getHciCluster
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of the Azure Stack HCI Cluster.
- Resource
Group stringName - The name of the Resource Group where the Azure Stack HCI Cluster exists.
- Name string
- The name of the Azure Stack HCI Cluster.
- Resource
Group stringName - The name of the Resource Group where the Azure Stack HCI Cluster exists.
- name String
- The name of the Azure Stack HCI Cluster.
- resource
Group StringName - The name of the Resource Group where the Azure Stack HCI Cluster exists.
- name string
- The name of the Azure Stack HCI Cluster.
- resource
Group stringName - The name of the Resource Group where the Azure Stack HCI Cluster exists.
- name str
- The name of the Azure Stack HCI Cluster.
- resource_
group_ strname - The name of the Resource Group where the Azure Stack HCI Cluster exists.
- name String
- The name of the Azure Stack HCI Cluster.
- resource
Group StringName - The name of the Resource Group where the Azure Stack HCI Cluster exists.
getHciCluster Result
The following output properties are available:
- Automanage
Configuration stringId - The ID of the Automanage Configuration assigned to the Azure Stack HCI Cluster.
- Client
Id string - The Client ID of the Azure Active Directory used by the Azure Stack HCI Cluster.
- Cloud
Id string - An immutable UUID for the Azure Stack HCI Cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identities
List<Get
Hci Cluster Identity> - An
identity
block as defined below. - Location string
- The Azure Region where the Azure Stack HCI Cluster exists.
- Name string
- Resource
Group stringName - Resource
Provider stringObject Id - The object ID of the Resource Provider Service Principal.
- Service
Endpoint string - The region specific Data Path Endpoint of the Azure Stack HCI Cluster.
- Dictionary<string, string>
- A mapping of tags assigned to the Azure Stack HCI Cluster.
- Tenant
Id string - The Tenant ID associated with this Managed Service Identity.
- Automanage
Configuration stringId - The ID of the Automanage Configuration assigned to the Azure Stack HCI Cluster.
- Client
Id string - The Client ID of the Azure Active Directory used by the Azure Stack HCI Cluster.
- Cloud
Id string - An immutable UUID for the Azure Stack HCI Cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identities
[]Get
Hci Cluster Identity - An
identity
block as defined below. - Location string
- The Azure Region where the Azure Stack HCI Cluster exists.
- Name string
- Resource
Group stringName - Resource
Provider stringObject Id - The object ID of the Resource Provider Service Principal.
- Service
Endpoint string - The region specific Data Path Endpoint of the Azure Stack HCI Cluster.
- map[string]string
- A mapping of tags assigned to the Azure Stack HCI Cluster.
- Tenant
Id string - The Tenant ID associated with this Managed Service Identity.
- automanage
Configuration StringId - The ID of the Automanage Configuration assigned to the Azure Stack HCI Cluster.
- client
Id String - The Client ID of the Azure Active Directory used by the Azure Stack HCI Cluster.
- cloud
Id String - An immutable UUID for the Azure Stack HCI Cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- identities
List<Get
Hci Cluster Identity> - An
identity
block as defined below. - location String
- The Azure Region where the Azure Stack HCI Cluster exists.
- name String
- resource
Group StringName - resource
Provider StringObject Id - The object ID of the Resource Provider Service Principal.
- service
Endpoint String - The region specific Data Path Endpoint of the Azure Stack HCI Cluster.
- Map<String,String>
- A mapping of tags assigned to the Azure Stack HCI Cluster.
- tenant
Id String - The Tenant ID associated with this Managed Service Identity.
- automanage
Configuration stringId - The ID of the Automanage Configuration assigned to the Azure Stack HCI Cluster.
- client
Id string - The Client ID of the Azure Active Directory used by the Azure Stack HCI Cluster.
- cloud
Id string - An immutable UUID for the Azure Stack HCI Cluster.
- id string
- The provider-assigned unique ID for this managed resource.
- identities
Get
Hci Cluster Identity[] - An
identity
block as defined below. - location string
- The Azure Region where the Azure Stack HCI Cluster exists.
- name string
- resource
Group stringName - resource
Provider stringObject Id - The object ID of the Resource Provider Service Principal.
- service
Endpoint string - The region specific Data Path Endpoint of the Azure Stack HCI Cluster.
- {[key: string]: string}
- A mapping of tags assigned to the Azure Stack HCI Cluster.
- tenant
Id string - The Tenant ID associated with this Managed Service Identity.
- automanage_
configuration_ strid - The ID of the Automanage Configuration assigned to the Azure Stack HCI Cluster.
- client_
id str - The Client ID of the Azure Active Directory used by the Azure Stack HCI Cluster.
- cloud_
id str - An immutable UUID for the Azure Stack HCI Cluster.
- id str
- The provider-assigned unique ID for this managed resource.
- identities
Sequence[Get
Hci Cluster Identity] - An
identity
block as defined below. - location str
- The Azure Region where the Azure Stack HCI Cluster exists.
- name str
- resource_
group_ strname - resource_
provider_ strobject_ id - The object ID of the Resource Provider Service Principal.
- service_
endpoint str - The region specific Data Path Endpoint of the Azure Stack HCI Cluster.
- Mapping[str, str]
- A mapping of tags assigned to the Azure Stack HCI Cluster.
- tenant_
id str - The Tenant ID associated with this Managed Service Identity.
- automanage
Configuration StringId - The ID of the Automanage Configuration assigned to the Azure Stack HCI Cluster.
- client
Id String - The Client ID of the Azure Active Directory used by the Azure Stack HCI Cluster.
- cloud
Id String - An immutable UUID for the Azure Stack HCI Cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- identities List<Property Map>
- An
identity
block as defined below. - location String
- The Azure Region where the Azure Stack HCI Cluster exists.
- name String
- resource
Group StringName - resource
Provider StringObject Id - The object ID of the Resource Provider Service Principal.
- service
Endpoint String - The region specific Data Path Endpoint of the Azure Stack HCI Cluster.
- Map<String>
- A mapping of tags assigned to the Azure Stack HCI Cluster.
- tenant
Id String - The Tenant ID associated with this Managed Service Identity.
Supporting Types
GetHciClusterIdentity
- Principal
Id string - The Principal ID associated with this Managed Service Identity.
- Tenant
Id string - The Tenant ID associated with this Managed Service Identity.
- Type string
- (Required) The type of Managed Service Identity configured on the Azure Stack HCI Cluster.
- Principal
Id string - The Principal ID associated with this Managed Service Identity.
- Tenant
Id string - The Tenant ID associated with this Managed Service Identity.
- Type string
- (Required) The type of Managed Service Identity configured on the Azure Stack HCI Cluster.
- principal
Id String - The Principal ID associated with this Managed Service Identity.
- tenant
Id String - The Tenant ID associated with this Managed Service Identity.
- type String
- (Required) The type of Managed Service Identity configured on the Azure Stack HCI Cluster.
- principal
Id string - The Principal ID associated with this Managed Service Identity.
- tenant
Id string - The Tenant ID associated with this Managed Service Identity.
- type string
- (Required) The type of Managed Service Identity configured on the Azure Stack HCI Cluster.
- principal_
id str - The Principal ID associated with this Managed Service Identity.
- tenant_
id str - The Tenant ID associated with this Managed Service Identity.
- type str
- (Required) The type of Managed Service Identity configured on the Azure Stack HCI Cluster.
- principal
Id String - The Principal ID associated with this Managed Service Identity.
- tenant
Id String - The Tenant ID associated with this Managed Service Identity.
- type String
- (Required) The type of Managed Service Identity configured on the Azure Stack HCI Cluster.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.