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

nutanix.VmNetworkDeviceMigrateV2

Explore with Pulumi AI

Create VmNetworkDeviceMigrateV2 Resource

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

Constructor syntax

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

@overload
def VmNetworkDeviceMigrateV2(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             ext_id: Optional[str] = None,
                             migrate_type: Optional[str] = None,
                             subnets: Optional[Sequence[VmNetworkDeviceMigrateV2SubnetArgs]] = None,
                             vm_ext_id: Optional[str] = None,
                             ip_addresses: Optional[Sequence[VmNetworkDeviceMigrateV2IpAddressArgs]] = None)
func NewVmNetworkDeviceMigrateV2(ctx *Context, name string, args VmNetworkDeviceMigrateV2Args, opts ...ResourceOption) (*VmNetworkDeviceMigrateV2, error)
public VmNetworkDeviceMigrateV2(string name, VmNetworkDeviceMigrateV2Args args, CustomResourceOptions? opts = null)
public VmNetworkDeviceMigrateV2(String name, VmNetworkDeviceMigrateV2Args args)
public VmNetworkDeviceMigrateV2(String name, VmNetworkDeviceMigrateV2Args args, CustomResourceOptions options)
type: nutanix:VmNetworkDeviceMigrateV2
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. VmNetworkDeviceMigrateV2Args
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. VmNetworkDeviceMigrateV2Args
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. VmNetworkDeviceMigrateV2Args
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. VmNetworkDeviceMigrateV2Args
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. VmNetworkDeviceMigrateV2Args
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 vmNetworkDeviceMigrateV2Resource = new Nutanix.VmNetworkDeviceMigrateV2("vmNetworkDeviceMigrateV2Resource", new()
{
    ExtId = "string",
    MigrateType = "string",
    Subnets = new[]
    {
        new Nutanix.Inputs.VmNetworkDeviceMigrateV2SubnetArgs
        {
            ExtId = "string",
        },
    },
    VmExtId = "string",
    IpAddresses = new[]
    {
        new Nutanix.Inputs.VmNetworkDeviceMigrateV2IpAddressArgs
        {
            Value = "string",
            PrefixLength = 0,
        },
    },
});
Copy
example, err := nutanix.NewVmNetworkDeviceMigrateV2(ctx, "vmNetworkDeviceMigrateV2Resource", &nutanix.VmNetworkDeviceMigrateV2Args{
	ExtId:       pulumi.String("string"),
	MigrateType: pulumi.String("string"),
	Subnets: nutanix.VmNetworkDeviceMigrateV2SubnetArray{
		&nutanix.VmNetworkDeviceMigrateV2SubnetArgs{
			ExtId: pulumi.String("string"),
		},
	},
	VmExtId: pulumi.String("string"),
	IpAddresses: nutanix.VmNetworkDeviceMigrateV2IpAddressArray{
		&nutanix.VmNetworkDeviceMigrateV2IpAddressArgs{
			Value:        pulumi.String("string"),
			PrefixLength: pulumi.Int(0),
		},
	},
})
Copy
var vmNetworkDeviceMigrateV2Resource = new VmNetworkDeviceMigrateV2("vmNetworkDeviceMigrateV2Resource", VmNetworkDeviceMigrateV2Args.builder()
    .extId("string")
    .migrateType("string")
    .subnets(VmNetworkDeviceMigrateV2SubnetArgs.builder()
        .extId("string")
        .build())
    .vmExtId("string")
    .ipAddresses(VmNetworkDeviceMigrateV2IpAddressArgs.builder()
        .value("string")
        .prefixLength(0)
        .build())
    .build());
Copy
vm_network_device_migrate_v2_resource = nutanix.VmNetworkDeviceMigrateV2("vmNetworkDeviceMigrateV2Resource",
    ext_id="string",
    migrate_type="string",
    subnets=[{
        "ext_id": "string",
    }],
    vm_ext_id="string",
    ip_addresses=[{
        "value": "string",
        "prefix_length": 0,
    }])
Copy
const vmNetworkDeviceMigrateV2Resource = new nutanix.VmNetworkDeviceMigrateV2("vmNetworkDeviceMigrateV2Resource", {
    extId: "string",
    migrateType: "string",
    subnets: [{
        extId: "string",
    }],
    vmExtId: "string",
    ipAddresses: [{
        value: "string",
        prefixLength: 0,
    }],
});
Copy
type: nutanix:VmNetworkDeviceMigrateV2
properties:
    extId: string
    ipAddresses:
        - prefixLength: 0
          value: string
    migrateType: string
    subnets:
        - extId: string
    vmExtId: string
Copy

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

ExtId This property is required. string
MigrateType This property is required. string
Subnets This property is required. List<PiersKarsenbarg.Nutanix.Inputs.VmNetworkDeviceMigrateV2Subnet>
VmExtId This property is required. string
IpAddresses List<PiersKarsenbarg.Nutanix.Inputs.VmNetworkDeviceMigrateV2IpAddress>
ExtId This property is required. string
MigrateType This property is required. string
Subnets This property is required. []VmNetworkDeviceMigrateV2SubnetArgs
VmExtId This property is required. string
IpAddresses []VmNetworkDeviceMigrateV2IpAddressArgs
extId This property is required. String
migrateType This property is required. String
subnets This property is required. List<VmNetworkDeviceMigrateV2Subnet>
vmExtId This property is required. String
ipAddresses List<VmNetworkDeviceMigrateV2IpAddress>
extId This property is required. string
migrateType This property is required. string
subnets This property is required. VmNetworkDeviceMigrateV2Subnet[]
vmExtId This property is required. string
ipAddresses VmNetworkDeviceMigrateV2IpAddress[]
ext_id This property is required. str
migrate_type This property is required. str
subnets This property is required. Sequence[VmNetworkDeviceMigrateV2SubnetArgs]
vm_ext_id This property is required. str
ip_addresses Sequence[VmNetworkDeviceMigrateV2IpAddressArgs]
extId This property is required. String
migrateType This property is required. String
subnets This property is required. List<Property Map>
vmExtId This property is required. String
ipAddresses List<Property Map>

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing VmNetworkDeviceMigrateV2 Resource

Get an existing VmNetworkDeviceMigrateV2 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?: VmNetworkDeviceMigrateV2State, opts?: CustomResourceOptions): VmNetworkDeviceMigrateV2
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        ext_id: Optional[str] = None,
        ip_addresses: Optional[Sequence[VmNetworkDeviceMigrateV2IpAddressArgs]] = None,
        migrate_type: Optional[str] = None,
        subnets: Optional[Sequence[VmNetworkDeviceMigrateV2SubnetArgs]] = None,
        vm_ext_id: Optional[str] = None) -> VmNetworkDeviceMigrateV2
func GetVmNetworkDeviceMigrateV2(ctx *Context, name string, id IDInput, state *VmNetworkDeviceMigrateV2State, opts ...ResourceOption) (*VmNetworkDeviceMigrateV2, error)
public static VmNetworkDeviceMigrateV2 Get(string name, Input<string> id, VmNetworkDeviceMigrateV2State? state, CustomResourceOptions? opts = null)
public static VmNetworkDeviceMigrateV2 get(String name, Output<String> id, VmNetworkDeviceMigrateV2State state, CustomResourceOptions options)
resources:  _:    type: nutanix:VmNetworkDeviceMigrateV2    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.

Supporting Types

VmNetworkDeviceMigrateV2IpAddress
, VmNetworkDeviceMigrateV2IpAddressArgs

Value This property is required. string
PrefixLength int
Value This property is required. string
PrefixLength int
value This property is required. String
prefixLength Integer
value This property is required. string
prefixLength number
value This property is required. str
prefix_length int
value This property is required. String
prefixLength Number

VmNetworkDeviceMigrateV2Subnet
, VmNetworkDeviceMigrateV2SubnetArgs

ExtId string
ExtId string
extId String
extId string
ext_id str
extId String

Package Details

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