1. Packages
  2. Azure Classic
  3. API Docs
  4. elasticsan
  5. get

We recommend using Azure Native.

Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi

azure.elasticsan.get

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi

    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/v6/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.
    ResourceGroupName string
    The name of the Resource Group where the Elastic SAN exists.
    Name string
    The name of this Elastic SAN.
    ResourceGroupName string
    The name of the Resource Group where the Elastic SAN exists.
    name String
    The name of this Elastic SAN.
    resourceGroupName String
    The name of the Resource Group where the Elastic SAN exists.
    name string
    The name of this Elastic SAN.
    resourceGroupName string
    The name of the Resource Group where the Elastic SAN exists.
    name str
    The name of this Elastic SAN.
    resource_group_name str
    The name of the Resource Group where the Elastic SAN exists.
    name String
    The name of this Elastic SAN.
    resourceGroupName String
    The name of the Resource Group where the Elastic SAN exists.

    get Result

    The following output properties are available:

    BaseSizeInTib int
    The base size of the Elastic SAN resource in TiB.
    ExtendedSizeInTib int
    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.
    ResourceGroupName string
    Skus List<GetSkus>
    A sku block as defined below.
    Tags Dictionary<string, string>
    A mapping of tags assigned to the Elastic SAN.
    TotalIops int
    Total Provisioned IOps of the Elastic SAN resource.
    TotalMbps int
    Total Provisioned MBps Elastic SAN resource.
    TotalSizeInTib int
    Total size of the Elastic SAN resource in TB.
    TotalVolumeSizeInGib int
    Total size of the provisioned Volumes in GiB.
    VolumeGroupCount int
    Total number of volume groups in this Elastic SAN resource.
    Zones List<string>
    Logical zone for the Elastic SAN resource.
    BaseSizeInTib int
    The base size of the Elastic SAN resource in TiB.
    ExtendedSizeInTib int
    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.
    ResourceGroupName string
    Skus []GetSkus
    A sku block as defined below.
    Tags map[string]string
    A mapping of tags assigned to the Elastic SAN.
    TotalIops int
    Total Provisioned IOps of the Elastic SAN resource.
    TotalMbps int
    Total Provisioned MBps Elastic SAN resource.
    TotalSizeInTib int
    Total size of the Elastic SAN resource in TB.
    TotalVolumeSizeInGib int
    Total size of the provisioned Volumes in GiB.
    VolumeGroupCount int
    Total number of volume groups in this Elastic SAN resource.
    Zones []string
    Logical zone for the Elastic SAN resource.
    baseSizeInTib Integer
    The base size of the Elastic SAN resource in TiB.
    extendedSizeInTib Integer
    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.
    resourceGroupName String
    skus List<GetSkus>
    A sku block as defined below.
    tags Map<String,String>
    A mapping of tags assigned to the Elastic SAN.
    totalIops Integer
    Total Provisioned IOps of the Elastic SAN resource.
    totalMbps Integer
    Total Provisioned MBps Elastic SAN resource.
    totalSizeInTib Integer
    Total size of the Elastic SAN resource in TB.
    totalVolumeSizeInGib Integer
    Total size of the provisioned Volumes in GiB.
    volumeGroupCount Integer
    Total number of volume groups in this Elastic SAN resource.
    zones List<String>
    Logical zone for the Elastic SAN resource.
    baseSizeInTib number
    The base size of the Elastic SAN resource in TiB.
    extendedSizeInTib number
    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.
    resourceGroupName string
    skus GetSkus[]
    A sku block as defined below.
    tags {[key: string]: string}
    A mapping of tags assigned to the Elastic SAN.
    totalIops number
    Total Provisioned IOps of the Elastic SAN resource.
    totalMbps number
    Total Provisioned MBps Elastic SAN resource.
    totalSizeInTib number
    Total size of the Elastic SAN resource in TB.
    totalVolumeSizeInGib number
    Total size of the provisioned Volumes in GiB.
    volumeGroupCount number
    Total number of volume groups in this Elastic SAN resource.
    zones string[]
    Logical zone for the Elastic SAN resource.
    base_size_in_tib int
    The base size of the Elastic SAN resource in TiB.
    extended_size_in_tib int
    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_name str
    skus Sequence[GetSkus]
    A sku block as defined below.
    tags 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_in_tib int
    Total size of the Elastic SAN resource in TB.
    total_volume_size_in_gib int
    Total size of the provisioned Volumes in GiB.
    volume_group_count int
    Total number of volume groups in this Elastic SAN resource.
    zones Sequence[str]
    Logical zone for the Elastic SAN resource.
    baseSizeInTib Number
    The base size of the Elastic SAN resource in TiB.
    extendedSizeInTib Number
    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.
    resourceGroupName String
    skus List<Property Map>
    A sku block as defined below.
    tags Map<String>
    A mapping of tags assigned to the Elastic SAN.
    totalIops Number
    Total Provisioned IOps of the Elastic SAN resource.
    totalMbps Number
    Total Provisioned MBps Elastic SAN resource.
    totalSizeInTib Number
    Total size of the Elastic SAN resource in TB.
    totalVolumeSizeInGib Number
    Total size of the provisioned Volumes in GiB.
    volumeGroupCount Number
    Total number of volume groups in this Elastic SAN resource.
    zones List<String>
    Logical zone for the Elastic SAN resource.

    Supporting Types

    GetSkus

    Name string
    The name of this Elastic SAN.
    Tier string
    The SKU tier.
    Name string
    The name of this Elastic SAN.
    Tier string
    The SKU tier.
    name String
    The name of this Elastic SAN.
    tier String
    The SKU tier.
    name string
    The name of this Elastic SAN.
    tier string
    The SKU tier.
    name str
    The name of this Elastic SAN.
    tier str
    The SKU tier.
    name String
    The name of this Elastic SAN.
    tier String
    The SKU tier.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi