We recommend using Azure Native.
Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi
azure.elasticsan.getVolumeGroup
Explore with Pulumi AI
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/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
}
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:
- Elastic
San stringId - The Elastic SAN ID within which the Elastic SAN Volume Group exists.
- Name string
- The name of the Elastic SAN Volume Group.
- Elastic
San stringId - The Elastic SAN ID within which the Elastic SAN Volume Group exists.
- Name string
- The name of the Elastic SAN Volume Group.
- elastic
San StringId - The Elastic SAN ID within which the Elastic SAN Volume Group exists.
- name String
- The name of the Elastic SAN Volume Group.
- elastic
San stringId - The Elastic SAN ID within which the Elastic SAN Volume Group exists.
- name string
- The name of the Elastic SAN Volume Group.
- elastic_
san_ strid - The Elastic SAN ID within which the Elastic SAN Volume Group exists.
- name str
- The name of the Elastic SAN Volume Group.
- elastic
San StringId - 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:
- Elastic
San stringId - Encryption
Type string - The type of the key used to encrypt the data of the disk.
- Encryptions
List<Get
Volume Group Encryption> - An
encryption
block as defined below. - Id string
- The provider-assigned unique ID for this managed resource.
- Identities
List<Get
Volume Group Identity> - An
identity
block as defined below. - Name string
- Network
Rules List<GetVolume Group Network Rule> - One or more
network_rule
blocks as defined below. - Protocol
Type string - The type of the storage target.
- Elastic
San stringId - Encryption
Type string - The type of the key used to encrypt the data of the disk.
- Encryptions
[]Get
Volume Group Encryption - An
encryption
block as defined below. - Id string
- The provider-assigned unique ID for this managed resource.
- Identities
[]Get
Volume Group Identity - An
identity
block as defined below. - Name string
- Network
Rules []GetVolume Group Network Rule - One or more
network_rule
blocks as defined below. - Protocol
Type string - The type of the storage target.
- elastic
San StringId - encryption
Type String - The type of the key used to encrypt the data of the disk.
- encryptions
List<Get
Volume Group Encryption> - An
encryption
block as defined below. - id String
- The provider-assigned unique ID for this managed resource.
- identities
List<Get
Volume Group Identity> - An
identity
block as defined below. - name String
- network
Rules List<GetVolume Group Network Rule> - One or more
network_rule
blocks as defined below. - protocol
Type String - The type of the storage target.
- elastic
San stringId - encryption
Type string - The type of the key used to encrypt the data of the disk.
- encryptions
Get
Volume Group Encryption[] - An
encryption
block as defined below. - id string
- The provider-assigned unique ID for this managed resource.
- identities
Get
Volume Group Identity[] - An
identity
block as defined below. - name string
- network
Rules GetVolume Group Network Rule[] - One or more
network_rule
blocks as defined below. - protocol
Type string - The type of the storage target.
- elastic_
san_ strid - encryption_
type str - The type of the key used to encrypt the data of the disk.
- encryptions
Sequence[Get
Volume Group Encryption] - An
encryption
block as defined below. - id str
- The provider-assigned unique ID for this managed resource.
- identities
Sequence[Get
Volume Group Identity] - An
identity
block as defined below. - name str
- network_
rules Sequence[GetVolume Group Network Rule] - One or more
network_rule
blocks as defined below. - protocol_
type str - The type of the storage target.
- elastic
San StringId - encryption
Type 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
- network
Rules List<Property Map> - One or more
network_rule
blocks as defined below. - protocol
Type String - The type of the storage target.
Supporting Types
GetVolumeGroupEncryption
- Current
Versioned stringKey Expiration Timestamp - The timestamp of the expiration time for the current version of the Customer Managed Key.
- Current
Versioned stringKey Id - The ID of the current versioned Key Vault Key in use.
- Key
Vault stringKey Id - The Key Vault Key URI for Customer Managed Key encryption, which can be either a full URI or a versionless URI.
- Last
Key stringRotation Timestamp - The timestamp of the last rotation of the Key Vault Key.
- User
Assigned stringIdentity Id - The ID of the User Assigned Identity used by this Elastic SAN Volume Group.
- Current
Versioned stringKey Expiration Timestamp - The timestamp of the expiration time for the current version of the Customer Managed Key.
- Current
Versioned stringKey Id - The ID of the current versioned Key Vault Key in use.
- Key
Vault stringKey Id - The Key Vault Key URI for Customer Managed Key encryption, which can be either a full URI or a versionless URI.
- Last
Key stringRotation Timestamp - The timestamp of the last rotation of the Key Vault Key.
- User
Assigned stringIdentity Id - The ID of the User Assigned Identity used by this Elastic SAN Volume Group.
- current
Versioned StringKey Expiration Timestamp - The timestamp of the expiration time for the current version of the Customer Managed Key.
- current
Versioned StringKey Id - The ID of the current versioned Key Vault Key in use.
- key
Vault StringKey Id - The Key Vault Key URI for Customer Managed Key encryption, which can be either a full URI or a versionless URI.
- last
Key StringRotation Timestamp - The timestamp of the last rotation of the Key Vault Key.
- user
Assigned StringIdentity Id - The ID of the User Assigned Identity used by this Elastic SAN Volume Group.
- current
Versioned stringKey Expiration Timestamp - The timestamp of the expiration time for the current version of the Customer Managed Key.
- current
Versioned stringKey Id - The ID of the current versioned Key Vault Key in use.
- key
Vault stringKey Id - The Key Vault Key URI for Customer Managed Key encryption, which can be either a full URI or a versionless URI.
- last
Key stringRotation Timestamp - The timestamp of the last rotation of the Key Vault Key.
- user
Assigned stringIdentity Id - The ID of the User Assigned Identity used by this Elastic SAN Volume Group.
- current_
versioned_ strkey_ expiration_ timestamp - The timestamp of the expiration time for the current version of the Customer Managed Key.
- current_
versioned_ strkey_ id - The ID of the current versioned Key Vault Key in use.
- key_
vault_ strkey_ id - The Key Vault Key URI for Customer Managed Key encryption, which can be either a full URI or a versionless URI.
- last_
key_ strrotation_ timestamp - The timestamp of the last rotation of the Key Vault Key.
- user_
assigned_ stridentity_ id - The ID of the User Assigned Identity used by this Elastic SAN Volume Group.
- current
Versioned StringKey Expiration Timestamp - The timestamp of the expiration time for the current version of the Customer Managed Key.
- current
Versioned StringKey Id - The ID of the current versioned Key Vault Key in use.
- key
Vault StringKey Id - The Key Vault Key URI for Customer Managed Key encryption, which can be either a full URI or a versionless URI.
- last
Key StringRotation Timestamp - The timestamp of the last rotation of the Key Vault Key.
- user
Assigned StringIdentity Id - The ID of the User Assigned Identity used by this Elastic SAN Volume Group.
GetVolumeGroupIdentity
- Identity
Ids List<string> - A list of the User Assigned Identity IDs assigned to this Elastic SAN Volume Group.
- Principal
Id string - The Principal ID associated with the Managed Service Identity assigned to this Elastic SAN Volume Group.
- Tenant
Id 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 []string - A list of the User Assigned Identity IDs assigned to this Elastic SAN Volume Group.
- Principal
Id string - The Principal ID associated with the Managed Service Identity assigned to this Elastic SAN Volume Group.
- Tenant
Id 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 List<String> - A list of the User Assigned Identity IDs assigned to this Elastic SAN Volume Group.
- principal
Id String - The Principal ID associated with the Managed Service Identity assigned to this Elastic SAN Volume Group.
- tenant
Id 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 string[] - A list of the User Assigned Identity IDs assigned to this Elastic SAN Volume Group.
- principal
Id string - The Principal ID associated with the Managed Service Identity assigned to this Elastic SAN Volume Group.
- tenant
Id 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.
- identity
Ids List<String> - A list of the User Assigned Identity IDs assigned to this Elastic SAN Volume Group.
- principal
Id String - The Principal ID associated with the Managed Service Identity assigned to this Elastic SAN Volume Group.
- tenant
Id 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
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.