1. Packages
  2. Nutanix
  3. API Docs
  4. VolumeGroupDiskV2
Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg

nutanix.VolumeGroupDiskV2

Explore with Pulumi AI

Provides a resource to Creates a new Volume Disk.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pierskarsenbarg/nutanix";

const exampleVolumeGroupV2 = new nutanix.VolumeGroupV2("exampleVolumeGroupV2", {
    description: "Test Volume group with min spec and no Auth",
    shouldLoadBalanceVmAttachments: false,
    sharingStatus: "SHARED",
    targetName: "volumegroup-test-0",
    createdBy: "Test",
    clusterReference: "<Cluster uuid>",
    iscsiFeatures: [{
        enabledAuthentications: "CHAP",
        targetSecret: "1234567891011",
    }],
    storageFeatures: [{
        flashModes: [{
            isEnabled: true,
        }],
    }],
    usageType: "USER",
    isHidden: false,
});
// create new volume group disk  and attached it to the previous volume group
const exampleVolumeGroupDiskV2 = new nutanix.VolumeGroupDiskV2("exampleVolumeGroupDiskV2", {
    volumeGroupExtId: resource.nutanix_volume_group_v2.example.id,
    index: 1,
    description: "create volume disk test",
    diskSizeBytes: 5368709120,
    diskDataSourceReferences: [{
        name: "disk1",
        extId: _var.disk_data_source_ref_ext_id,
        entityType: "STORAGE_CONTAINER",
        uris: [
            "uri1",
            "uri2",
        ],
    }],
    diskStorageFeatures: [{
        flashModes: [{
            isEnabled: false,
        }],
    }],
});
Copy
import pulumi
import pulumi_nutanix as nutanix

example_volume_group_v2 = nutanix.VolumeGroupV2("exampleVolumeGroupV2",
    description="Test Volume group with min spec and no Auth",
    should_load_balance_vm_attachments=False,
    sharing_status="SHARED",
    target_name="volumegroup-test-0",
    created_by="Test",
    cluster_reference="<Cluster uuid>",
    iscsi_features=[{
        "enabled_authentications": "CHAP",
        "target_secret": "1234567891011",
    }],
    storage_features=[{
        "flash_modes": [{
            "is_enabled": True,
        }],
    }],
    usage_type="USER",
    is_hidden=False)
# create new volume group disk  and attached it to the previous volume group
example_volume_group_disk_v2 = nutanix.VolumeGroupDiskV2("exampleVolumeGroupDiskV2",
    volume_group_ext_id=resource["nutanix_volume_group_v2"]["example"]["id"],
    index=1,
    description="create volume disk test",
    disk_size_bytes=5368709120,
    disk_data_source_references=[{
        "name": "disk1",
        "ext_id": var["disk_data_source_ref_ext_id"],
        "entity_type": "STORAGE_CONTAINER",
        "uris": [
            "uri1",
            "uri2",
        ],
    }],
    disk_storage_features=[{
        "flash_modes": [{
            "is_enabled": False,
        }],
    }])
Copy
package main

import (
	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := nutanix.NewVolumeGroupV2(ctx, "exampleVolumeGroupV2", &nutanix.VolumeGroupV2Args{
			Description:                    pulumi.String("Test Volume group with min spec and no Auth"),
			ShouldLoadBalanceVmAttachments: pulumi.Bool(false),
			SharingStatus:                  pulumi.String("SHARED"),
			TargetName:                     pulumi.String("volumegroup-test-0"),
			CreatedBy:                      pulumi.String("Test"),
			ClusterReference:               pulumi.String("<Cluster uuid>"),
			IscsiFeatures: nutanix.VolumeGroupV2IscsiFeatureArray{
				&nutanix.VolumeGroupV2IscsiFeatureArgs{
					EnabledAuthentications: pulumi.String("CHAP"),
					TargetSecret:           pulumi.String("1234567891011"),
				},
			},
			StorageFeatures: nutanix.VolumeGroupV2StorageFeatureArray{
				&nutanix.VolumeGroupV2StorageFeatureArgs{
					FlashModes: nutanix.VolumeGroupV2StorageFeatureFlashModeArray{
						&nutanix.VolumeGroupV2StorageFeatureFlashModeArgs{
							IsEnabled: pulumi.Bool(true),
						},
					},
				},
			},
			UsageType: pulumi.String("USER"),
			IsHidden:  pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		// create new volume group disk  and attached it to the previous volume group
		_, err = nutanix.NewVolumeGroupDiskV2(ctx, "exampleVolumeGroupDiskV2", &nutanix.VolumeGroupDiskV2Args{
			VolumeGroupExtId: pulumi.Any(resource.Nutanix_volume_group_v2.Example.Id),
			Index:            pulumi.Int(1),
			Description:      pulumi.String("create volume disk test"),
			DiskSizeBytes:    pulumi.Int(5368709120),
			DiskDataSourceReferences: nutanix.VolumeGroupDiskV2DiskDataSourceReferenceArray{
				&nutanix.VolumeGroupDiskV2DiskDataSourceReferenceArgs{
					Name:       pulumi.String("disk1"),
					ExtId:      pulumi.Any(_var.Disk_data_source_ref_ext_id),
					EntityType: pulumi.String("STORAGE_CONTAINER"),
					Uris: pulumi.StringArray{
						pulumi.String("uri1"),
						pulumi.String("uri2"),
					},
				},
			},
			DiskStorageFeatures: nutanix.VolumeGroupDiskV2DiskStorageFeatureArray{
				&nutanix.VolumeGroupDiskV2DiskStorageFeatureArgs{
					FlashModes: nutanix.VolumeGroupDiskV2DiskStorageFeatureFlashModeArray{
						&nutanix.VolumeGroupDiskV2DiskStorageFeatureFlashModeArgs{
							IsEnabled: pulumi.Bool(false),
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = PiersKarsenbarg.Nutanix;

return await Deployment.RunAsync(() => 
{
    var exampleVolumeGroupV2 = new Nutanix.VolumeGroupV2("exampleVolumeGroupV2", new()
    {
        Description = "Test Volume group with min spec and no Auth",
        ShouldLoadBalanceVmAttachments = false,
        SharingStatus = "SHARED",
        TargetName = "volumegroup-test-0",
        CreatedBy = "Test",
        ClusterReference = "<Cluster uuid>",
        IscsiFeatures = new[]
        {
            new Nutanix.Inputs.VolumeGroupV2IscsiFeatureArgs
            {
                EnabledAuthentications = "CHAP",
                TargetSecret = "1234567891011",
            },
        },
        StorageFeatures = new[]
        {
            new Nutanix.Inputs.VolumeGroupV2StorageFeatureArgs
            {
                FlashModes = new[]
                {
                    new Nutanix.Inputs.VolumeGroupV2StorageFeatureFlashModeArgs
                    {
                        IsEnabled = true,
                    },
                },
            },
        },
        UsageType = "USER",
        IsHidden = false,
    });

    // create new volume group disk  and attached it to the previous volume group
    var exampleVolumeGroupDiskV2 = new Nutanix.VolumeGroupDiskV2("exampleVolumeGroupDiskV2", new()
    {
        VolumeGroupExtId = resource.Nutanix_volume_group_v2.Example.Id,
        Index = 1,
        Description = "create volume disk test",
        DiskSizeBytes = 5368709120,
        DiskDataSourceReferences = new[]
        {
            new Nutanix.Inputs.VolumeGroupDiskV2DiskDataSourceReferenceArgs
            {
                Name = "disk1",
                ExtId = @var.Disk_data_source_ref_ext_id,
                EntityType = "STORAGE_CONTAINER",
                Uris = new[]
                {
                    "uri1",
                    "uri2",
                },
            },
        },
        DiskStorageFeatures = new[]
        {
            new Nutanix.Inputs.VolumeGroupDiskV2DiskStorageFeatureArgs
            {
                FlashModes = new[]
                {
                    new Nutanix.Inputs.VolumeGroupDiskV2DiskStorageFeatureFlashModeArgs
                    {
                        IsEnabled = false,
                    },
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.VolumeGroupV2;
import com.pulumi.nutanix.VolumeGroupV2Args;
import com.pulumi.nutanix.inputs.VolumeGroupV2IscsiFeatureArgs;
import com.pulumi.nutanix.inputs.VolumeGroupV2StorageFeatureArgs;
import com.pulumi.nutanix.VolumeGroupDiskV2;
import com.pulumi.nutanix.VolumeGroupDiskV2Args;
import com.pulumi.nutanix.inputs.VolumeGroupDiskV2DiskDataSourceReferenceArgs;
import com.pulumi.nutanix.inputs.VolumeGroupDiskV2DiskStorageFeatureArgs;
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) {
        var exampleVolumeGroupV2 = new VolumeGroupV2("exampleVolumeGroupV2", VolumeGroupV2Args.builder()
            .description("Test Volume group with min spec and no Auth")
            .shouldLoadBalanceVmAttachments(false)
            .sharingStatus("SHARED")
            .targetName("volumegroup-test-0")
            .createdBy("Test")
            .clusterReference("<Cluster uuid>")
            .iscsiFeatures(VolumeGroupV2IscsiFeatureArgs.builder()
                .enabledAuthentications("CHAP")
                .targetSecret("1234567891011")
                .build())
            .storageFeatures(VolumeGroupV2StorageFeatureArgs.builder()
                .flashModes(VolumeGroupV2StorageFeatureFlashModeArgs.builder()
                    .isEnabled(true)
                    .build())
                .build())
            .usageType("USER")
            .isHidden(false)
            .build());

        // create new volume group disk  and attached it to the previous volume group
        var exampleVolumeGroupDiskV2 = new VolumeGroupDiskV2("exampleVolumeGroupDiskV2", VolumeGroupDiskV2Args.builder()
            .volumeGroupExtId(resource.nutanix_volume_group_v2().example().id())
            .index(1)
            .description("create volume disk test")
            .diskSizeBytes(5368709120)
            .diskDataSourceReferences(VolumeGroupDiskV2DiskDataSourceReferenceArgs.builder()
                .name("disk1")
                .extId(var_.disk_data_source_ref_ext_id())
                .entityType("STORAGE_CONTAINER")
                .uris(                
                    "uri1",
                    "uri2")
                .build())
            .diskStorageFeatures(VolumeGroupDiskV2DiskStorageFeatureArgs.builder()
                .flashModes(VolumeGroupDiskV2DiskStorageFeatureFlashModeArgs.builder()
                    .isEnabled(false)
                    .build())
                .build())
            .build());

    }
}
Copy
resources:
  exampleVolumeGroupV2:
    type: nutanix:VolumeGroupV2
    properties:
      description: Test Volume group with min spec and no Auth
      shouldLoadBalanceVmAttachments: false
      sharingStatus: SHARED
      targetName: volumegroup-test-0
      createdBy: Test
      clusterReference: <Cluster uuid>
      iscsiFeatures:
        - enabledAuthentications: CHAP
          targetSecret: '1234567891011'
      storageFeatures:
        - flashModes:
            - isEnabled: true
      usageType: USER
      isHidden: false
  # create new volume group disk  and attached it to the previous volume group
  exampleVolumeGroupDiskV2:
    type: nutanix:VolumeGroupDiskV2
    properties:
      volumeGroupExtId: ${resource.nutanix_volume_group_v2.example.id}
      index: 1
      description: create volume disk test
      diskSizeBytes: 5.36870912e+09
      diskDataSourceReferences:
        - name: disk1
          extId: ${var.disk_data_source_ref_ext_id}
          entityType: STORAGE_CONTAINER
          uris:
            - uri1
            - uri2
      diskStorageFeatures:
        - flashModes:
            - isEnabled: false
Copy

Create VolumeGroupDiskV2 Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new VolumeGroupDiskV2(name: string, args: VolumeGroupDiskV2Args, opts?: CustomResourceOptions);
@overload
def VolumeGroupDiskV2(resource_name: str,
                      args: VolumeGroupDiskV2Args,
                      opts: Optional[ResourceOptions] = None)

@overload
def VolumeGroupDiskV2(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      disk_data_source_references: Optional[Sequence[VolumeGroupDiskV2DiskDataSourceReferenceArgs]] = None,
                      disk_size_bytes: Optional[int] = None,
                      volume_group_ext_id: Optional[str] = None,
                      description: Optional[str] = None,
                      disk_storage_features: Optional[Sequence[VolumeGroupDiskV2DiskStorageFeatureArgs]] = None,
                      index: Optional[int] = None)
func NewVolumeGroupDiskV2(ctx *Context, name string, args VolumeGroupDiskV2Args, opts ...ResourceOption) (*VolumeGroupDiskV2, error)
public VolumeGroupDiskV2(string name, VolumeGroupDiskV2Args args, CustomResourceOptions? opts = null)
public VolumeGroupDiskV2(String name, VolumeGroupDiskV2Args args)
public VolumeGroupDiskV2(String name, VolumeGroupDiskV2Args args, CustomResourceOptions options)
type: nutanix:VolumeGroupDiskV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. VolumeGroupDiskV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. VolumeGroupDiskV2Args
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. VolumeGroupDiskV2Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. VolumeGroupDiskV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. VolumeGroupDiskV2Args
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var volumeGroupDiskV2Resource = new Nutanix.VolumeGroupDiskV2("volumeGroupDiskV2Resource", new()
{
    DiskDataSourceReferences = new[]
    {
        new Nutanix.Inputs.VolumeGroupDiskV2DiskDataSourceReferenceArgs
        {
            ExtId = "string",
            EntityType = "string",
            Name = "string",
            Uris = new[]
            {
                "string",
            },
        },
    },
    DiskSizeBytes = 0,
    VolumeGroupExtId = "string",
    Description = "string",
    DiskStorageFeatures = new[]
    {
        new Nutanix.Inputs.VolumeGroupDiskV2DiskStorageFeatureArgs
        {
            FlashModes = new[]
            {
                new Nutanix.Inputs.VolumeGroupDiskV2DiskStorageFeatureFlashModeArgs
                {
                    IsEnabled = false,
                },
            },
        },
    },
    Index = 0,
});
Copy
example, err := nutanix.NewVolumeGroupDiskV2(ctx, "volumeGroupDiskV2Resource", &nutanix.VolumeGroupDiskV2Args{
	DiskDataSourceReferences: nutanix.VolumeGroupDiskV2DiskDataSourceReferenceArray{
		&nutanix.VolumeGroupDiskV2DiskDataSourceReferenceArgs{
			ExtId:      pulumi.String("string"),
			EntityType: pulumi.String("string"),
			Name:       pulumi.String("string"),
			Uris: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
	},
	DiskSizeBytes:    pulumi.Int(0),
	VolumeGroupExtId: pulumi.String("string"),
	Description:      pulumi.String("string"),
	DiskStorageFeatures: nutanix.VolumeGroupDiskV2DiskStorageFeatureArray{
		&nutanix.VolumeGroupDiskV2DiskStorageFeatureArgs{
			FlashModes: nutanix.VolumeGroupDiskV2DiskStorageFeatureFlashModeArray{
				&nutanix.VolumeGroupDiskV2DiskStorageFeatureFlashModeArgs{
					IsEnabled: pulumi.Bool(false),
				},
			},
		},
	},
	Index: pulumi.Int(0),
})
Copy
var volumeGroupDiskV2Resource = new VolumeGroupDiskV2("volumeGroupDiskV2Resource", VolumeGroupDiskV2Args.builder()
    .diskDataSourceReferences(VolumeGroupDiskV2DiskDataSourceReferenceArgs.builder()
        .extId("string")
        .entityType("string")
        .name("string")
        .uris("string")
        .build())
    .diskSizeBytes(0)
    .volumeGroupExtId("string")
    .description("string")
    .diskStorageFeatures(VolumeGroupDiskV2DiskStorageFeatureArgs.builder()
        .flashModes(VolumeGroupDiskV2DiskStorageFeatureFlashModeArgs.builder()
            .isEnabled(false)
            .build())
        .build())
    .index(0)
    .build());
Copy
volume_group_disk_v2_resource = nutanix.VolumeGroupDiskV2("volumeGroupDiskV2Resource",
    disk_data_source_references=[{
        "ext_id": "string",
        "entity_type": "string",
        "name": "string",
        "uris": ["string"],
    }],
    disk_size_bytes=0,
    volume_group_ext_id="string",
    description="string",
    disk_storage_features=[{
        "flash_modes": [{
            "is_enabled": False,
        }],
    }],
    index=0)
Copy
const volumeGroupDiskV2Resource = new nutanix.VolumeGroupDiskV2("volumeGroupDiskV2Resource", {
    diskDataSourceReferences: [{
        extId: "string",
        entityType: "string",
        name: "string",
        uris: ["string"],
    }],
    diskSizeBytes: 0,
    volumeGroupExtId: "string",
    description: "string",
    diskStorageFeatures: [{
        flashModes: [{
            isEnabled: false,
        }],
    }],
    index: 0,
});
Copy
type: nutanix:VolumeGroupDiskV2
properties:
    description: string
    diskDataSourceReferences:
        - entityType: string
          extId: string
          name: string
          uris:
            - string
    diskSizeBytes: 0
    diskStorageFeatures:
        - flashModes:
            - isEnabled: false
    index: 0
    volumeGroupExtId: string
Copy

VolumeGroupDiskV2 Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The VolumeGroupDiskV2 resource accepts the following input properties:

DiskDataSourceReferences This property is required. List<PiersKarsenbarg.Nutanix.Inputs.VolumeGroupDiskV2DiskDataSourceReference>
-(Required) Disk Data Source Reference.
DiskSizeBytes This property is required. int
  • ize of the disk in bytes. This field is mandatory during Volume Group creation if a new disk is being created on the storage container.
VolumeGroupExtId This property is required. string
The external identifier of the volume group.
Description string
  • Volume Disk description.
DiskStorageFeatures List<PiersKarsenbarg.Nutanix.Inputs.VolumeGroupDiskV2DiskStorageFeature>
  • Storage optimization features which must be enabled on the Volume Disks. This is an optional field. If omitted, the disks will honor the Volume Group specific storage features setting.
Index int
  • Index of the disk in a Volume Group. This field is optional and immutable.
DiskDataSourceReferences This property is required. []VolumeGroupDiskV2DiskDataSourceReferenceArgs
-(Required) Disk Data Source Reference.
DiskSizeBytes This property is required. int
  • ize of the disk in bytes. This field is mandatory during Volume Group creation if a new disk is being created on the storage container.
VolumeGroupExtId This property is required. string
The external identifier of the volume group.
Description string
  • Volume Disk description.
DiskStorageFeatures []VolumeGroupDiskV2DiskStorageFeatureArgs
  • Storage optimization features which must be enabled on the Volume Disks. This is an optional field. If omitted, the disks will honor the Volume Group specific storage features setting.
Index int
  • Index of the disk in a Volume Group. This field is optional and immutable.
diskDataSourceReferences This property is required. List<VolumeGroupDiskV2DiskDataSourceReference>
-(Required) Disk Data Source Reference.
diskSizeBytes This property is required. Integer
  • ize of the disk in bytes. This field is mandatory during Volume Group creation if a new disk is being created on the storage container.
volumeGroupExtId This property is required. String
The external identifier of the volume group.
description String
  • Volume Disk description.
diskStorageFeatures List<VolumeGroupDiskV2DiskStorageFeature>
  • Storage optimization features which must be enabled on the Volume Disks. This is an optional field. If omitted, the disks will honor the Volume Group specific storage features setting.
index Integer
  • Index of the disk in a Volume Group. This field is optional and immutable.
diskDataSourceReferences This property is required. VolumeGroupDiskV2DiskDataSourceReference[]
-(Required) Disk Data Source Reference.
diskSizeBytes This property is required. number
  • ize of the disk in bytes. This field is mandatory during Volume Group creation if a new disk is being created on the storage container.
volumeGroupExtId This property is required. string
The external identifier of the volume group.
description string
  • Volume Disk description.
diskStorageFeatures VolumeGroupDiskV2DiskStorageFeature[]
  • Storage optimization features which must be enabled on the Volume Disks. This is an optional field. If omitted, the disks will honor the Volume Group specific storage features setting.
index number
  • Index of the disk in a Volume Group. This field is optional and immutable.
disk_data_source_references This property is required. Sequence[VolumeGroupDiskV2DiskDataSourceReferenceArgs]
-(Required) Disk Data Source Reference.
disk_size_bytes This property is required. int
  • ize of the disk in bytes. This field is mandatory during Volume Group creation if a new disk is being created on the storage container.
volume_group_ext_id This property is required. str
The external identifier of the volume group.
description str
  • Volume Disk description.
disk_storage_features Sequence[VolumeGroupDiskV2DiskStorageFeatureArgs]
  • Storage optimization features which must be enabled on the Volume Disks. This is an optional field. If omitted, the disks will honor the Volume Group specific storage features setting.
index int
  • Index of the disk in a Volume Group. This field is optional and immutable.
diskDataSourceReferences This property is required. List<Property Map>
-(Required) Disk Data Source Reference.
diskSizeBytes This property is required. Number
  • ize of the disk in bytes. This field is mandatory during Volume Group creation if a new disk is being created on the storage container.
volumeGroupExtId This property is required. String
The external identifier of the volume group.
description String
  • Volume Disk description.
diskStorageFeatures List<Property Map>
  • Storage optimization features which must be enabled on the Volume Disks. This is an optional field. If omitted, the disks will honor the Volume Group specific storage features setting.
index Number
  • Index of the disk in a Volume Group. This field is optional and immutable.

Outputs

All input properties are implicitly available as output properties. Additionally, the VolumeGroupDiskV2 resource produces the following output properties:

ExtId string
  • A globally unique identifier of an instance that is suitable for external consumption.
Id string
The provider-assigned unique ID for this managed resource.
ExtId string
  • A globally unique identifier of an instance that is suitable for external consumption.
Id string
The provider-assigned unique ID for this managed resource.
extId String
  • A globally unique identifier of an instance that is suitable for external consumption.
id String
The provider-assigned unique ID for this managed resource.
extId string
  • A globally unique identifier of an instance that is suitable for external consumption.
id string
The provider-assigned unique ID for this managed resource.
ext_id str
  • A globally unique identifier of an instance that is suitable for external consumption.
id str
The provider-assigned unique ID for this managed resource.
extId String
  • A globally unique identifier of an instance that is suitable for external consumption.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing VolumeGroupDiskV2 Resource

Get an existing VolumeGroupDiskV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: VolumeGroupDiskV2State, opts?: CustomResourceOptions): VolumeGroupDiskV2
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        disk_data_source_references: Optional[Sequence[VolumeGroupDiskV2DiskDataSourceReferenceArgs]] = None,
        disk_size_bytes: Optional[int] = None,
        disk_storage_features: Optional[Sequence[VolumeGroupDiskV2DiskStorageFeatureArgs]] = None,
        ext_id: Optional[str] = None,
        index: Optional[int] = None,
        volume_group_ext_id: Optional[str] = None) -> VolumeGroupDiskV2
func GetVolumeGroupDiskV2(ctx *Context, name string, id IDInput, state *VolumeGroupDiskV2State, opts ...ResourceOption) (*VolumeGroupDiskV2, error)
public static VolumeGroupDiskV2 Get(string name, Input<string> id, VolumeGroupDiskV2State? state, CustomResourceOptions? opts = null)
public static VolumeGroupDiskV2 get(String name, Output<String> id, VolumeGroupDiskV2State state, CustomResourceOptions options)
resources:  _:    type: nutanix:VolumeGroupDiskV2    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Description string
  • Volume Disk description.
DiskDataSourceReferences List<PiersKarsenbarg.Nutanix.Inputs.VolumeGroupDiskV2DiskDataSourceReference>
-(Required) Disk Data Source Reference.
DiskSizeBytes int
  • ize of the disk in bytes. This field is mandatory during Volume Group creation if a new disk is being created on the storage container.
DiskStorageFeatures List<PiersKarsenbarg.Nutanix.Inputs.VolumeGroupDiskV2DiskStorageFeature>
  • Storage optimization features which must be enabled on the Volume Disks. This is an optional field. If omitted, the disks will honor the Volume Group specific storage features setting.
ExtId string
  • A globally unique identifier of an instance that is suitable for external consumption.
Index int
  • Index of the disk in a Volume Group. This field is optional and immutable.
VolumeGroupExtId string
The external identifier of the volume group.
Description string
  • Volume Disk description.
DiskDataSourceReferences []VolumeGroupDiskV2DiskDataSourceReferenceArgs
-(Required) Disk Data Source Reference.
DiskSizeBytes int
  • ize of the disk in bytes. This field is mandatory during Volume Group creation if a new disk is being created on the storage container.
DiskStorageFeatures []VolumeGroupDiskV2DiskStorageFeatureArgs
  • Storage optimization features which must be enabled on the Volume Disks. This is an optional field. If omitted, the disks will honor the Volume Group specific storage features setting.
ExtId string
  • A globally unique identifier of an instance that is suitable for external consumption.
Index int
  • Index of the disk in a Volume Group. This field is optional and immutable.
VolumeGroupExtId string
The external identifier of the volume group.
description String
  • Volume Disk description.
diskDataSourceReferences List<VolumeGroupDiskV2DiskDataSourceReference>
-(Required) Disk Data Source Reference.
diskSizeBytes Integer
  • ize of the disk in bytes. This field is mandatory during Volume Group creation if a new disk is being created on the storage container.
diskStorageFeatures List<VolumeGroupDiskV2DiskStorageFeature>
  • Storage optimization features which must be enabled on the Volume Disks. This is an optional field. If omitted, the disks will honor the Volume Group specific storage features setting.
extId String
  • A globally unique identifier of an instance that is suitable for external consumption.
index Integer
  • Index of the disk in a Volume Group. This field is optional and immutable.
volumeGroupExtId String
The external identifier of the volume group.
description string
  • Volume Disk description.
diskDataSourceReferences VolumeGroupDiskV2DiskDataSourceReference[]
-(Required) Disk Data Source Reference.
diskSizeBytes number
  • ize of the disk in bytes. This field is mandatory during Volume Group creation if a new disk is being created on the storage container.
diskStorageFeatures VolumeGroupDiskV2DiskStorageFeature[]
  • Storage optimization features which must be enabled on the Volume Disks. This is an optional field. If omitted, the disks will honor the Volume Group specific storage features setting.
extId string
  • A globally unique identifier of an instance that is suitable for external consumption.
index number
  • Index of the disk in a Volume Group. This field is optional and immutable.
volumeGroupExtId string
The external identifier of the volume group.
description str
  • Volume Disk description.
disk_data_source_references Sequence[VolumeGroupDiskV2DiskDataSourceReferenceArgs]
-(Required) Disk Data Source Reference.
disk_size_bytes int
  • ize of the disk in bytes. This field is mandatory during Volume Group creation if a new disk is being created on the storage container.
disk_storage_features Sequence[VolumeGroupDiskV2DiskStorageFeatureArgs]
  • Storage optimization features which must be enabled on the Volume Disks. This is an optional field. If omitted, the disks will honor the Volume Group specific storage features setting.
ext_id str
  • A globally unique identifier of an instance that is suitable for external consumption.
index int
  • Index of the disk in a Volume Group. This field is optional and immutable.
volume_group_ext_id str
The external identifier of the volume group.
description String
  • Volume Disk description.
diskDataSourceReferences List<Property Map>
-(Required) Disk Data Source Reference.
diskSizeBytes Number
  • ize of the disk in bytes. This field is mandatory during Volume Group creation if a new disk is being created on the storage container.
diskStorageFeatures List<Property Map>
  • Storage optimization features which must be enabled on the Volume Disks. This is an optional field. If omitted, the disks will honor the Volume Group specific storage features setting.
extId String
  • A globally unique identifier of an instance that is suitable for external consumption.
index Number
  • Index of the disk in a Volume Group. This field is optional and immutable.
volumeGroupExtId String
The external identifier of the volume group.

Supporting Types

VolumeGroupDiskV2DiskDataSourceReference
, VolumeGroupDiskV2DiskDataSourceReferenceArgs

ExtId This property is required. string
  • The external identifier of the Data Source Reference.
EntityType string
  • The Entity Type of the Data Source Reference.
Name string
  • The name of the Data Source Reference.bled for the Volume Group.
Uris List<string>
  • The uri list of the Data Source Reference.
ExtId This property is required. string
  • The external identifier of the Data Source Reference.
EntityType string
  • The Entity Type of the Data Source Reference.
Name string
  • The name of the Data Source Reference.bled for the Volume Group.
Uris []string
  • The uri list of the Data Source Reference.
extId This property is required. String
  • The external identifier of the Data Source Reference.
entityType String
  • The Entity Type of the Data Source Reference.
name String
  • The name of the Data Source Reference.bled for the Volume Group.
uris List<String>
  • The uri list of the Data Source Reference.
extId This property is required. string
  • The external identifier of the Data Source Reference.
entityType string
  • The Entity Type of the Data Source Reference.
name string
  • The name of the Data Source Reference.bled for the Volume Group.
uris string[]
  • The uri list of the Data Source Reference.
ext_id This property is required. str
  • The external identifier of the Data Source Reference.
entity_type str
  • The Entity Type of the Data Source Reference.
name str
  • The name of the Data Source Reference.bled for the Volume Group.
uris Sequence[str]
  • The uri list of the Data Source Reference.
extId This property is required. String
  • The external identifier of the Data Source Reference.
entityType String
  • The Entity Type of the Data Source Reference.
name String
  • The name of the Data Source Reference.bled for the Volume Group.
uris List<String>
  • The uri list of the Data Source Reference.

VolumeGroupDiskV2DiskStorageFeature
, VolumeGroupDiskV2DiskStorageFeatureArgs

FlashModes List<PiersKarsenbarg.Nutanix.Inputs.VolumeGroupDiskV2DiskStorageFeatureFlashMode>
  • this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
FlashModes []VolumeGroupDiskV2DiskStorageFeatureFlashMode
  • this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
flashModes List<VolumeGroupDiskV2DiskStorageFeatureFlashMode>
  • this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
flashModes VolumeGroupDiskV2DiskStorageFeatureFlashMode[]
  • this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
flash_modes Sequence[VolumeGroupDiskV2DiskStorageFeatureFlashMode]
  • this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.
flashModes List<Property Map>
  • this field will avoid down migration of data from the hot tier unless the overrides field is specified for the virtual disks.

VolumeGroupDiskV2DiskStorageFeatureFlashMode
, VolumeGroupDiskV2DiskStorageFeatureFlashModeArgs

IsEnabled bool
  • Indicates whether the flash mode is enabled for the Volume Group Disk.

See detailed information in Nutanix Volumes V4.

IsEnabled bool
  • Indicates whether the flash mode is enabled for the Volume Group Disk.

See detailed information in Nutanix Volumes V4.

isEnabled Boolean
  • Indicates whether the flash mode is enabled for the Volume Group Disk.

See detailed information in Nutanix Volumes V4.

isEnabled boolean
  • Indicates whether the flash mode is enabled for the Volume Group Disk.

See detailed information in Nutanix Volumes V4.

is_enabled bool
  • Indicates whether the flash mode is enabled for the Volume Group Disk.

See detailed information in Nutanix Volumes V4.

isEnabled Boolean
  • Indicates whether the flash mode is enabled for the Volume Group Disk.

See detailed information in Nutanix Volumes V4.

Package Details

Repository
nutanix pierskarsenbarg/pulumi-nutanix
License
Apache-2.0
Notes
This Pulumi package is based on the nutanix Terraform Provider.