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

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

azure.elasticsan.getVolumeGroup

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

    Use this data source to access information about an existing Elastic SAN Volume Group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.elasticsan.get({
        name: "existing",
        resourceGroupName: "existing",
    });
    const exampleGetVolumeGroup = example.then(example => azure.elasticsan.getVolumeGroup({
        name: "existing",
        elasticSanId: example.id,
    }));
    export const id = exampleGetVolumeGroup.then(exampleGetVolumeGroup => exampleGetVolumeGroup.id);
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.elasticsan.get(name="existing",
        resource_group_name="existing")
    example_get_volume_group = azure.elasticsan.get_volume_group(name="existing",
        elastic_san_id=example.id)
    pulumi.export("id", example_get_volume_group.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
    		}
    		exampleGetVolumeGroup, err := elasticsan.LookupVolumeGroup(ctx, &elasticsan.LookupVolumeGroupArgs{
    			Name:         "existing",
    			ElasticSanId: example.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("id", exampleGetVolumeGroup.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",
        });
    
        var exampleGetVolumeGroup = Azure.ElasticSan.GetVolumeGroup.Invoke(new()
        {
            Name = "existing",
            ElasticSanId = example.Apply(getResult => getResult.Id),
        });
    
        return new Dictionary<string, object?>
        {
            ["id"] = exampleGetVolumeGroup.Apply(getVolumeGroupResult => getVolumeGroupResult.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 com.pulumi.azure.elasticsan.inputs.GetVolumeGroupArgs;
    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());
    
            final var exampleGetVolumeGroup = ElasticsanFunctions.getVolumeGroup(GetVolumeGroupArgs.builder()
                .name("existing")
                .elasticSanId(example.applyValue(getResult -> getResult.id()))
                .build());
    
            ctx.export("id", exampleGetVolumeGroup.applyValue(getVolumeGroupResult -> getVolumeGroupResult.id()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: azure:elasticsan:get
          Arguments:
            name: existing
            resourceGroupName: existing
      exampleGetVolumeGroup:
        fn::invoke:
          Function: azure:elasticsan:getVolumeGroup
          Arguments:
            name: existing
            elasticSanId: ${example.id}
    outputs:
      id: ${exampleGetVolumeGroup.id}
    

    Using getVolumeGroup

    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 getVolumeGroup(args: GetVolumeGroupArgs, opts?: InvokeOptions): Promise<GetVolumeGroupResult>
    function getVolumeGroupOutput(args: GetVolumeGroupOutputArgs, opts?: InvokeOptions): Output<GetVolumeGroupResult>
    def get_volume_group(elastic_san_id: Optional[str] = None,
                         name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetVolumeGroupResult
    def get_volume_group_output(elastic_san_id: Optional[pulumi.Input[str]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetVolumeGroupResult]
    func LookupVolumeGroup(ctx *Context, args *LookupVolumeGroupArgs, opts ...InvokeOption) (*LookupVolumeGroupResult, error)
    func LookupVolumeGroupOutput(ctx *Context, args *LookupVolumeGroupOutputArgs, opts ...InvokeOption) LookupVolumeGroupResultOutput

    > Note: This function is named LookupVolumeGroup in the Go SDK.

    public static class GetVolumeGroup 
    {
        public static Task<GetVolumeGroupResult> InvokeAsync(GetVolumeGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetVolumeGroupResult> Invoke(GetVolumeGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVolumeGroupResult> getVolumeGroup(GetVolumeGroupArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:elasticsan/getVolumeGroup:getVolumeGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ElasticSanId string
    The Elastic SAN ID within which the Elastic SAN Volume Group exists.
    Name string
    The name of the Elastic SAN Volume Group.
    ElasticSanId string
    The Elastic SAN ID within which the Elastic SAN Volume Group exists.
    Name string
    The name of the Elastic SAN Volume Group.
    elasticSanId String
    The Elastic SAN ID within which the Elastic SAN Volume Group exists.
    name String
    The name of the Elastic SAN Volume Group.
    elasticSanId string
    The Elastic SAN ID within which the Elastic SAN Volume Group exists.
    name string
    The name of the Elastic SAN Volume Group.
    elastic_san_id str
    The Elastic SAN ID within which the Elastic SAN Volume Group exists.
    name str
    The name of the Elastic SAN Volume Group.
    elasticSanId String
    The Elastic SAN ID within which the Elastic SAN Volume Group exists.
    name String
    The name of the Elastic SAN Volume Group.

    getVolumeGroup Result

    The following output properties are available:

    ElasticSanId string
    EncryptionType string
    The type of the key used to encrypt the data of the disk.
    Encryptions List<GetVolumeGroupEncryption>
    An encryption block as defined below.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identities List<GetVolumeGroupIdentity>
    An identity block as defined below.
    Name string
    NetworkRules List<GetVolumeGroupNetworkRule>
    One or more network_rule blocks as defined below.
    ProtocolType string
    The type of the storage target.
    ElasticSanId string
    EncryptionType string
    The type of the key used to encrypt the data of the disk.
    Encryptions []GetVolumeGroupEncryption
    An encryption block as defined below.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identities []GetVolumeGroupIdentity
    An identity block as defined below.
    Name string
    NetworkRules []GetVolumeGroupNetworkRule
    One or more network_rule blocks as defined below.
    ProtocolType string
    The type of the storage target.
    elasticSanId String
    encryptionType String
    The type of the key used to encrypt the data of the disk.
    encryptions List<GetVolumeGroupEncryption>
    An encryption block as defined below.
    id String
    The provider-assigned unique ID for this managed resource.
    identities List<GetVolumeGroupIdentity>
    An identity block as defined below.
    name String
    networkRules List<GetVolumeGroupNetworkRule>
    One or more network_rule blocks as defined below.
    protocolType String
    The type of the storage target.
    elasticSanId string
    encryptionType string
    The type of the key used to encrypt the data of the disk.
    encryptions GetVolumeGroupEncryption[]
    An encryption block as defined below.
    id string
    The provider-assigned unique ID for this managed resource.
    identities GetVolumeGroupIdentity[]
    An identity block as defined below.
    name string
    networkRules GetVolumeGroupNetworkRule[]
    One or more network_rule blocks as defined below.
    protocolType string
    The type of the storage target.
    elastic_san_id str
    encryption_type str
    The type of the key used to encrypt the data of the disk.
    encryptions Sequence[GetVolumeGroupEncryption]
    An encryption block as defined below.
    id str
    The provider-assigned unique ID for this managed resource.
    identities Sequence[GetVolumeGroupIdentity]
    An identity block as defined below.
    name str
    network_rules Sequence[GetVolumeGroupNetworkRule]
    One or more network_rule blocks as defined below.
    protocol_type str
    The type of the storage target.
    elasticSanId String
    encryptionType String
    The type of the key used to encrypt the data of the disk.
    encryptions List<Property Map>
    An encryption block as defined below.
    id String
    The provider-assigned unique ID for this managed resource.
    identities List<Property Map>
    An identity block as defined below.
    name String
    networkRules List<Property Map>
    One or more network_rule blocks as defined below.
    protocolType String
    The type of the storage target.

    Supporting Types

    GetVolumeGroupEncryption

    CurrentVersionedKeyExpirationTimestamp string
    The timestamp of the expiration time for the current version of the Customer Managed Key.
    CurrentVersionedKeyId string
    The ID of the current versioned Key Vault Key in use.
    KeyVaultKeyId string
    The Key Vault Key URI for Customer Managed Key encryption, which can be either a full URI or a versionless URI.
    LastKeyRotationTimestamp string
    The timestamp of the last rotation of the Key Vault Key.
    UserAssignedIdentityId string
    The ID of the User Assigned Identity used by this Elastic SAN Volume Group.
    CurrentVersionedKeyExpirationTimestamp string
    The timestamp of the expiration time for the current version of the Customer Managed Key.
    CurrentVersionedKeyId string
    The ID of the current versioned Key Vault Key in use.
    KeyVaultKeyId string
    The Key Vault Key URI for Customer Managed Key encryption, which can be either a full URI or a versionless URI.
    LastKeyRotationTimestamp string
    The timestamp of the last rotation of the Key Vault Key.
    UserAssignedIdentityId string
    The ID of the User Assigned Identity used by this Elastic SAN Volume Group.
    currentVersionedKeyExpirationTimestamp String
    The timestamp of the expiration time for the current version of the Customer Managed Key.
    currentVersionedKeyId String
    The ID of the current versioned Key Vault Key in use.
    keyVaultKeyId String
    The Key Vault Key URI for Customer Managed Key encryption, which can be either a full URI or a versionless URI.
    lastKeyRotationTimestamp String
    The timestamp of the last rotation of the Key Vault Key.
    userAssignedIdentityId String
    The ID of the User Assigned Identity used by this Elastic SAN Volume Group.
    currentVersionedKeyExpirationTimestamp string
    The timestamp of the expiration time for the current version of the Customer Managed Key.
    currentVersionedKeyId string
    The ID of the current versioned Key Vault Key in use.
    keyVaultKeyId string
    The Key Vault Key URI for Customer Managed Key encryption, which can be either a full URI or a versionless URI.
    lastKeyRotationTimestamp string
    The timestamp of the last rotation of the Key Vault Key.
    userAssignedIdentityId string
    The ID of the User Assigned Identity used by this Elastic SAN Volume Group.
    current_versioned_key_expiration_timestamp str
    The timestamp of the expiration time for the current version of the Customer Managed Key.
    current_versioned_key_id str
    The ID of the current versioned Key Vault Key in use.
    key_vault_key_id str
    The Key Vault Key URI for Customer Managed Key encryption, which can be either a full URI or a versionless URI.
    last_key_rotation_timestamp str
    The timestamp of the last rotation of the Key Vault Key.
    user_assigned_identity_id str
    The ID of the User Assigned Identity used by this Elastic SAN Volume Group.
    currentVersionedKeyExpirationTimestamp String
    The timestamp of the expiration time for the current version of the Customer Managed Key.
    currentVersionedKeyId String
    The ID of the current versioned Key Vault Key in use.
    keyVaultKeyId String
    The Key Vault Key URI for Customer Managed Key encryption, which can be either a full URI or a versionless URI.
    lastKeyRotationTimestamp String
    The timestamp of the last rotation of the Key Vault Key.
    userAssignedIdentityId String
    The ID of the User Assigned Identity used by this Elastic SAN Volume Group.

    GetVolumeGroupIdentity

    IdentityIds List<string>
    A list of the User Assigned Identity IDs assigned to this Elastic SAN Volume Group.
    PrincipalId string
    The Principal ID associated with the Managed Service Identity assigned to this Elastic SAN Volume Group.
    TenantId string
    The Tenant ID associated with this Managed Service Identity assigned to this Elastic SAN Volume Group.
    Type string
    The type of Managed Identity assigned to this Elastic SAN Volume Group.
    IdentityIds []string
    A list of the User Assigned Identity IDs assigned to this Elastic SAN Volume Group.
    PrincipalId string
    The Principal ID associated with the Managed Service Identity assigned to this Elastic SAN Volume Group.
    TenantId string
    The Tenant ID associated with this Managed Service Identity assigned to this Elastic SAN Volume Group.
    Type string
    The type of Managed Identity assigned to this Elastic SAN Volume Group.
    identityIds List<String>
    A list of the User Assigned Identity IDs assigned to this Elastic SAN Volume Group.
    principalId String
    The Principal ID associated with the Managed Service Identity assigned to this Elastic SAN Volume Group.
    tenantId String
    The Tenant ID associated with this Managed Service Identity assigned to this Elastic SAN Volume Group.
    type String
    The type of Managed Identity assigned to this Elastic SAN Volume Group.
    identityIds string[]
    A list of the User Assigned Identity IDs assigned to this Elastic SAN Volume Group.
    principalId string
    The Principal ID associated with the Managed Service Identity assigned to this Elastic SAN Volume Group.
    tenantId string
    The Tenant ID associated with this Managed Service Identity assigned to this Elastic SAN Volume Group.
    type string
    The type of Managed Identity assigned to this Elastic SAN Volume Group.
    identity_ids Sequence[str]
    A list of the User Assigned Identity IDs assigned to this Elastic SAN Volume Group.
    principal_id str
    The Principal ID associated with the Managed Service Identity assigned to this Elastic SAN Volume Group.
    tenant_id str
    The Tenant ID associated with this Managed Service Identity assigned to this Elastic SAN Volume Group.
    type str
    The type of Managed Identity assigned to this Elastic SAN Volume Group.
    identityIds List<String>
    A list of the User Assigned Identity IDs assigned to this Elastic SAN Volume Group.
    principalId String
    The Principal ID associated with the Managed Service Identity assigned to this Elastic SAN Volume Group.
    tenantId String
    The Tenant ID associated with this Managed Service Identity assigned to this Elastic SAN Volume Group.
    type String
    The type of Managed Identity assigned to this Elastic SAN Volume Group.

    GetVolumeGroupNetworkRule

    Action string
    The action to take when an access attempt to this Elastic SAN Volume Group from this Subnet is made.
    SubnetId string
    The ID of the Subnet from which access to this Elastic SAN Volume Group is allowed.
    Action string
    The action to take when an access attempt to this Elastic SAN Volume Group from this Subnet is made.
    SubnetId string
    The ID of the Subnet from which access to this Elastic SAN Volume Group is allowed.
    action String
    The action to take when an access attempt to this Elastic SAN Volume Group from this Subnet is made.
    subnetId String
    The ID of the Subnet from which access to this Elastic SAN Volume Group is allowed.
    action string
    The action to take when an access attempt to this Elastic SAN Volume Group from this Subnet is made.
    subnetId string
    The ID of the Subnet from which access to this Elastic SAN Volume Group is allowed.
    action str
    The action to take when an access attempt to this Elastic SAN Volume Group from this Subnet is made.
    subnet_id str
    The ID of the Subnet from which access to this Elastic SAN Volume Group is allowed.
    action String
    The action to take when an access attempt to this Elastic SAN Volume Group from this Subnet is made.
    subnetId String
    The ID of the Subnet from which access to this Elastic SAN Volume Group is allowed.

    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 v5.81.0 published on Monday, Jun 24, 2024 by Pulumi