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

nutanix.VolumeGroupVmV2

Explore with Pulumi AI

Provides a resource to Create a new Volume Group.

Example Usage

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

const vgVmExample = new nutanix.VolumeGroupVmV2("vgVmExample", {
    volumeGroupExtId: "<vg uuid>",
    vmExtId: _var.vg_vm_ext_id,
});
Copy
import pulumi
import pulumi_nutanix as nutanix

vg_vm_example = nutanix.VolumeGroupVmV2("vgVmExample",
    volume_group_ext_id="<vg uuid>",
    vm_ext_id=var["vg_vm_ext_id"])
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.NewVolumeGroupVmV2(ctx, "vgVmExample", &nutanix.VolumeGroupVmV2Args{
			VolumeGroupExtId: pulumi.String("<vg uuid>"),
			VmExtId:          pulumi.Any(_var.Vg_vm_ext_id),
		})
		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 vgVmExample = new Nutanix.VolumeGroupVmV2("vgVmExample", new()
    {
        VolumeGroupExtId = "<vg uuid>",
        VmExtId = @var.Vg_vm_ext_id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.VolumeGroupVmV2;
import com.pulumi.nutanix.VolumeGroupVmV2Args;
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 vgVmExample = new VolumeGroupVmV2("vgVmExample", VolumeGroupVmV2Args.builder()
            .volumeGroupExtId("<vg uuid>")
            .vmExtId(var_.vg_vm_ext_id())
            .build());

    }
}
Copy
resources:
  vgVmExample:
    type: nutanix:VolumeGroupVmV2
    properties:
      volumeGroupExtId: <vg uuid>
      vmExtId: ${var.vg_vm_ext_id}
Copy

Create VolumeGroupVmV2 Resource

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

Constructor syntax

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

@overload
def VolumeGroupVmV2(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    vm_ext_id: Optional[str] = None,
                    volume_group_ext_id: Optional[str] = None,
                    index: Optional[int] = None)
func NewVolumeGroupVmV2(ctx *Context, name string, args VolumeGroupVmV2Args, opts ...ResourceOption) (*VolumeGroupVmV2, error)
public VolumeGroupVmV2(string name, VolumeGroupVmV2Args args, CustomResourceOptions? opts = null)
public VolumeGroupVmV2(String name, VolumeGroupVmV2Args args)
public VolumeGroupVmV2(String name, VolumeGroupVmV2Args args, CustomResourceOptions options)
type: nutanix:VolumeGroupVmV2
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. VolumeGroupVmV2Args
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. VolumeGroupVmV2Args
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. VolumeGroupVmV2Args
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. VolumeGroupVmV2Args
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. VolumeGroupVmV2Args
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 volumeGroupVmV2Resource = new Nutanix.VolumeGroupVmV2("volumeGroupVmV2Resource", new()
{
    VmExtId = "string",
    VolumeGroupExtId = "string",
    Index = 0,
});
Copy
example, err := nutanix.NewVolumeGroupVmV2(ctx, "volumeGroupVmV2Resource", &nutanix.VolumeGroupVmV2Args{
	VmExtId:          pulumi.String("string"),
	VolumeGroupExtId: pulumi.String("string"),
	Index:            pulumi.Int(0),
})
Copy
var volumeGroupVmV2Resource = new VolumeGroupVmV2("volumeGroupVmV2Resource", VolumeGroupVmV2Args.builder()
    .vmExtId("string")
    .volumeGroupExtId("string")
    .index(0)
    .build());
Copy
volume_group_vm_v2_resource = nutanix.VolumeGroupVmV2("volumeGroupVmV2Resource",
    vm_ext_id="string",
    volume_group_ext_id="string",
    index=0)
Copy
const volumeGroupVmV2Resource = new nutanix.VolumeGroupVmV2("volumeGroupVmV2Resource", {
    vmExtId: "string",
    volumeGroupExtId: "string",
    index: 0,
});
Copy
type: nutanix:VolumeGroupVmV2
properties:
    index: 0
    vmExtId: string
    volumeGroupExtId: string
Copy

VolumeGroupVmV2 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 VolumeGroupVmV2 resource accepts the following input properties:

VmExtId This property is required. string
-(Required) A globally unique identifier of an instance that is suitable for external consumption.
VolumeGroupExtId This property is required. string
-(Required) The external identifier of the volume group.
Index int

-(Optional) The index on the SCSI bus to attach the VM to the Volume Group.

See detailed information in Nutanix Volumes V4.

VmExtId This property is required. string
-(Required) A globally unique identifier of an instance that is suitable for external consumption.
VolumeGroupExtId This property is required. string
-(Required) The external identifier of the volume group.
Index int

-(Optional) The index on the SCSI bus to attach the VM to the Volume Group.

See detailed information in Nutanix Volumes V4.

vmExtId This property is required. String
-(Required) A globally unique identifier of an instance that is suitable for external consumption.
volumeGroupExtId This property is required. String
-(Required) The external identifier of the volume group.
index Integer

-(Optional) The index on the SCSI bus to attach the VM to the Volume Group.

See detailed information in Nutanix Volumes V4.

vmExtId This property is required. string
-(Required) A globally unique identifier of an instance that is suitable for external consumption.
volumeGroupExtId This property is required. string
-(Required) The external identifier of the volume group.
index number

-(Optional) The index on the SCSI bus to attach the VM to the Volume Group.

See detailed information in Nutanix Volumes V4.

vm_ext_id This property is required. str
-(Required) A globally unique identifier of an instance that is suitable for external consumption.
volume_group_ext_id This property is required. str
-(Required) The external identifier of the volume group.
index int

-(Optional) The index on the SCSI bus to attach the VM to the Volume Group.

See detailed information in Nutanix Volumes V4.

vmExtId This property is required. String
-(Required) A globally unique identifier of an instance that is suitable for external consumption.
volumeGroupExtId This property is required. String
-(Required) The external identifier of the volume group.
index Number

-(Optional) The index on the SCSI bus to attach the VM to the Volume Group.

See detailed information in Nutanix Volumes V4.

Outputs

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

ExtId string
A globally unique identifier of a task.
Id string
The provider-assigned unique ID for this managed resource.
ExtId string
A globally unique identifier of a task.
Id string
The provider-assigned unique ID for this managed resource.
extId String
A globally unique identifier of a task.
id String
The provider-assigned unique ID for this managed resource.
extId string
A globally unique identifier of a task.
id string
The provider-assigned unique ID for this managed resource.
ext_id str
A globally unique identifier of a task.
id str
The provider-assigned unique ID for this managed resource.
extId String
A globally unique identifier of a task.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing VolumeGroupVmV2 Resource

Get an existing VolumeGroupVmV2 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?: VolumeGroupVmV2State, opts?: CustomResourceOptions): VolumeGroupVmV2
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        ext_id: Optional[str] = None,
        index: Optional[int] = None,
        vm_ext_id: Optional[str] = None,
        volume_group_ext_id: Optional[str] = None) -> VolumeGroupVmV2
func GetVolumeGroupVmV2(ctx *Context, name string, id IDInput, state *VolumeGroupVmV2State, opts ...ResourceOption) (*VolumeGroupVmV2, error)
public static VolumeGroupVmV2 Get(string name, Input<string> id, VolumeGroupVmV2State? state, CustomResourceOptions? opts = null)
public static VolumeGroupVmV2 get(String name, Output<String> id, VolumeGroupVmV2State state, CustomResourceOptions options)
resources:  _:    type: nutanix:VolumeGroupVmV2    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:
ExtId string
A globally unique identifier of a task.
Index int

-(Optional) The index on the SCSI bus to attach the VM to the Volume Group.

See detailed information in Nutanix Volumes V4.

VmExtId string
-(Required) A globally unique identifier of an instance that is suitable for external consumption.
VolumeGroupExtId string
-(Required) The external identifier of the volume group.
ExtId string
A globally unique identifier of a task.
Index int

-(Optional) The index on the SCSI bus to attach the VM to the Volume Group.

See detailed information in Nutanix Volumes V4.

VmExtId string
-(Required) A globally unique identifier of an instance that is suitable for external consumption.
VolumeGroupExtId string
-(Required) The external identifier of the volume group.
extId String
A globally unique identifier of a task.
index Integer

-(Optional) The index on the SCSI bus to attach the VM to the Volume Group.

See detailed information in Nutanix Volumes V4.

vmExtId String
-(Required) A globally unique identifier of an instance that is suitable for external consumption.
volumeGroupExtId String
-(Required) The external identifier of the volume group.
extId string
A globally unique identifier of a task.
index number

-(Optional) The index on the SCSI bus to attach the VM to the Volume Group.

See detailed information in Nutanix Volumes V4.

vmExtId string
-(Required) A globally unique identifier of an instance that is suitable for external consumption.
volumeGroupExtId string
-(Required) The external identifier of the volume group.
ext_id str
A globally unique identifier of a task.
index int

-(Optional) The index on the SCSI bus to attach the VM to the Volume Group.

See detailed information in Nutanix Volumes V4.

vm_ext_id str
-(Required) A globally unique identifier of an instance that is suitable for external consumption.
volume_group_ext_id str
-(Required) The external identifier of the volume group.
extId String
A globally unique identifier of a task.
index Number

-(Optional) The index on the SCSI bus to attach the VM to the Volume Group.

See detailed information in Nutanix Volumes V4.

vmExtId String
-(Required) A globally unique identifier of an instance that is suitable for external consumption.
volumeGroupExtId String
-(Required) The external identifier of the volume group.

Package Details

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