We recommend using Azure Native.
Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi
azure.elasticsan.get
Explore with Pulumi AI
Use this data source to access information about an existing Elastic SAN.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.elasticsan.get({
name: "existing",
resourceGroupName: "existing",
});
export const id = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.elasticsan.get(name="existing",
resource_group_name="existing")
pulumi.export("id", example.id)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/elasticsan"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := elasticsan.Get(ctx, &elasticsan.GetArgs{
Name: "existing",
ResourceGroupName: "existing",
}, nil)
if err != nil {
return err
}
ctx.Export("id", example.Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.ElasticSan.Get.Invoke(new()
{
Name = "existing",
ResourceGroupName = "existing",
});
return new Dictionary<string, object?>
{
["id"] = example.Apply(getResult => getResult.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.elasticsan.ElasticsanFunctions;
import com.pulumi.azure.elasticsan.inputs.GetArgs;
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 = ElasticsanFunctions.get(GetArgs.builder()
.name("existing")
.resourceGroupName("existing")
.build());
ctx.export("id", example.applyValue(getResult -> getResult.id()));
}
}
variables:
example:
fn::invoke:
Function: azure:elasticsan:get
Arguments:
name: existing
resourceGroupName: existing
outputs:
id: ${example.id}
Using get
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 get(args: GetArgs, opts?: InvokeOptions): Promise<GetResult>
function getOutput(args: GetOutputArgs, opts?: InvokeOptions): Output<GetResult>
def get(name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetResult
def get_output(name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetResult]
func Get(ctx *Context, args *GetArgs, opts ...InvokeOption) (*GetResult, error)
func GetOutput(ctx *Context, args *GetOutputArgs, opts ...InvokeOption) GetResultOutput
> Note: This function is named Get
in the Go SDK.
public static class Get
{
public static Task<GetResult> InvokeAsync(GetArgs args, InvokeOptions? opts = null)
public static Output<GetResult> Invoke(GetInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetResult> get(GetArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:elasticsan/get:get
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of this Elastic SAN.
- Resource
Group stringName - The name of the Resource Group where the Elastic SAN exists.
- Name string
- The name of this Elastic SAN.
- Resource
Group stringName - The name of the Resource Group where the Elastic SAN exists.
- name String
- The name of this Elastic SAN.
- resource
Group StringName - The name of the Resource Group where the Elastic SAN exists.
- name string
- The name of this Elastic SAN.
- resource
Group stringName - The name of the Resource Group where the Elastic SAN exists.
- name str
- The name of this Elastic SAN.
- resource_
group_ strname - The name of the Resource Group where the Elastic SAN exists.
- name String
- The name of this Elastic SAN.
- resource
Group StringName - The name of the Resource Group where the Elastic SAN exists.
get Result
The following output properties are available:
- Base
Size intIn Tib - The base size of the Elastic SAN resource in TiB.
- Extended
Size intIn Tib - The base size of the Elastic SAN resource in TiB.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure Region where the Elastic SAN exists.
- Name string
- The SKU name.
- Resource
Group stringName - Skus
List<Get
Skus> - A
sku
block as defined below. - Dictionary<string, string>
- A mapping of tags assigned to the Elastic SAN.
- Total
Iops int - Total Provisioned IOps of the Elastic SAN resource.
- Total
Mbps int - Total Provisioned MBps Elastic SAN resource.
- Total
Size intIn Tib - Total size of the Elastic SAN resource in TB.
- Total
Volume intSize In Gib - Total size of the provisioned Volumes in GiB.
- Volume
Group intCount - Total number of volume groups in this Elastic SAN resource.
- Zones List<string>
- Logical zone for the Elastic SAN resource.
- Base
Size intIn Tib - The base size of the Elastic SAN resource in TiB.
- Extended
Size intIn Tib - The base size of the Elastic SAN resource in TiB.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure Region where the Elastic SAN exists.
- Name string
- The SKU name.
- Resource
Group stringName - Skus
[]Get
Skus - A
sku
block as defined below. - map[string]string
- A mapping of tags assigned to the Elastic SAN.
- Total
Iops int - Total Provisioned IOps of the Elastic SAN resource.
- Total
Mbps int - Total Provisioned MBps Elastic SAN resource.
- Total
Size intIn Tib - Total size of the Elastic SAN resource in TB.
- Total
Volume intSize In Gib - Total size of the provisioned Volumes in GiB.
- Volume
Group intCount - Total number of volume groups in this Elastic SAN resource.
- Zones []string
- Logical zone for the Elastic SAN resource.
- base
Size IntegerIn Tib - The base size of the Elastic SAN resource in TiB.
- extended
Size IntegerIn Tib - The base size of the Elastic SAN resource in TiB.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure Region where the Elastic SAN exists.
- name String
- The SKU name.
- resource
Group StringName - skus
List<Get
Skus> - A
sku
block as defined below. - Map<String,String>
- A mapping of tags assigned to the Elastic SAN.
- total
Iops Integer - Total Provisioned IOps of the Elastic SAN resource.
- total
Mbps Integer - Total Provisioned MBps Elastic SAN resource.
- total
Size IntegerIn Tib - Total size of the Elastic SAN resource in TB.
- total
Volume IntegerSize In Gib - Total size of the provisioned Volumes in GiB.
- volume
Group IntegerCount - Total number of volume groups in this Elastic SAN resource.
- zones List<String>
- Logical zone for the Elastic SAN resource.
- base
Size numberIn Tib - The base size of the Elastic SAN resource in TiB.
- extended
Size numberIn Tib - The base size of the Elastic SAN resource in TiB.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- The Azure Region where the Elastic SAN exists.
- name string
- The SKU name.
- resource
Group stringName - skus
Get
Skus[] - A
sku
block as defined below. - {[key: string]: string}
- A mapping of tags assigned to the Elastic SAN.
- total
Iops number - Total Provisioned IOps of the Elastic SAN resource.
- total
Mbps number - Total Provisioned MBps Elastic SAN resource.
- total
Size numberIn Tib - Total size of the Elastic SAN resource in TB.
- total
Volume numberSize In Gib - Total size of the provisioned Volumes in GiB.
- volume
Group numberCount - Total number of volume groups in this Elastic SAN resource.
- zones string[]
- Logical zone for the Elastic SAN resource.
- base_
size_ intin_ tib - The base size of the Elastic SAN resource in TiB.
- extended_
size_ intin_ tib - The base size of the Elastic SAN resource in TiB.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- The Azure Region where the Elastic SAN exists.
- name str
- The SKU name.
- resource_
group_ strname - skus
Sequence[Get
Skus] - A
sku
block as defined below. - Mapping[str, str]
- A mapping of tags assigned to the Elastic SAN.
- total_
iops int - Total Provisioned IOps of the Elastic SAN resource.
- total_
mbps int - Total Provisioned MBps Elastic SAN resource.
- total_
size_ intin_ tib - Total size of the Elastic SAN resource in TB.
- total_
volume_ intsize_ in_ gib - Total size of the provisioned Volumes in GiB.
- volume_
group_ intcount - Total number of volume groups in this Elastic SAN resource.
- zones Sequence[str]
- Logical zone for the Elastic SAN resource.
- base
Size NumberIn Tib - The base size of the Elastic SAN resource in TiB.
- extended
Size NumberIn Tib - The base size of the Elastic SAN resource in TiB.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure Region where the Elastic SAN exists.
- name String
- The SKU name.
- resource
Group StringName - skus List<Property Map>
- A
sku
block as defined below. - Map<String>
- A mapping of tags assigned to the Elastic SAN.
- total
Iops Number - Total Provisioned IOps of the Elastic SAN resource.
- total
Mbps Number - Total Provisioned MBps Elastic SAN resource.
- total
Size NumberIn Tib - Total size of the Elastic SAN resource in TB.
- total
Volume NumberSize In Gib - Total size of the provisioned Volumes in GiB.
- volume
Group NumberCount - Total number of volume groups in this Elastic SAN resource.
- zones List<String>
- Logical zone for the Elastic SAN resource.
Supporting Types
GetSkus
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.