getHciStoragePath

Use this data source to access information about an existing Stack HCI Storage Path.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.stack.getHciStoragePath({
name: "example-hci-storage-path-name",
resourceGroupName: "example-rg",
});
export const id = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.stack.get_hci_storage_path(name="example-hci-storage-path-name",
resource_group_name="example-rg")
pulumi.export("id", example.id)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.Stack.GetHciStoragePath.Invoke(new()
{
Name = "example-hci-storage-path-name",
ResourceGroupName = "example-rg",
});
return new Dictionary<string, object?>
{
["id"] = example.Apply(getHciStoragePathResult => getHciStoragePathResult.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.LookupHciStoragePath(ctx, &stack.LookupHciStoragePathArgs{
Name: "example-hci-storage-path-name",
ResourceGroupName: "example-rg",
}, nil)
if err != nil {
return err
}
ctx.Export("id", example.Id)
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.GetHciStoragePathArgs;
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.getHciStoragePath(GetHciStoragePathArgs.builder()
.name("example-hci-storage-path-name")
.resourceGroupName("example-rg")
.build());
ctx.export("id", example.id());
}
}
variables:
example:
fn::invoke:
function: azure:stack:getHciStoragePath
arguments:
name: example-hci-storage-path-name
resourceGroupName: example-rg
outputs:
id: ${example.id}

API Providers

This data source uses the following Azure API Providers:

  • Microsoft.AzureStackHCI: 2024-01-01

Return

A collection of values returned by getHciStoragePath.

Parameters

argument

A collection of arguments for invoking getHciStoragePath.


suspend fun getHciStoragePath(name: String, resourceGroupName: String): GetHciStoragePathResult

Return

A collection of values returned by getHciStoragePath.

Parameters

name

The name of this Stack HCI Storage Path.

resourceGroupName

The name of the Resource Group where the Stack HCI Storage Path exists.

See also


Return

A collection of values returned by getHciStoragePath.

Parameters

argument

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

See also