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

nutanix.VmNetworkDeviceAssignIpV2

Explore with Pulumi AI

Create VmNetworkDeviceAssignIpV2 Resource

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

Constructor syntax

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

@overload
def VmNetworkDeviceAssignIpV2(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              ext_id: Optional[str] = None,
                              vm_ext_id: Optional[str] = None,
                              ip_addresses: Optional[Sequence[VmNetworkDeviceAssignIpV2IpAddressArgs]] = None)
func NewVmNetworkDeviceAssignIpV2(ctx *Context, name string, args VmNetworkDeviceAssignIpV2Args, opts ...ResourceOption) (*VmNetworkDeviceAssignIpV2, error)
public VmNetworkDeviceAssignIpV2(string name, VmNetworkDeviceAssignIpV2Args args, CustomResourceOptions? opts = null)
public VmNetworkDeviceAssignIpV2(String name, VmNetworkDeviceAssignIpV2Args args)
public VmNetworkDeviceAssignIpV2(String name, VmNetworkDeviceAssignIpV2Args args, CustomResourceOptions options)
type: nutanix:VmNetworkDeviceAssignIpV2
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. VmNetworkDeviceAssignIpV2Args
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. VmNetworkDeviceAssignIpV2Args
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. VmNetworkDeviceAssignIpV2Args
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. VmNetworkDeviceAssignIpV2Args
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. VmNetworkDeviceAssignIpV2Args
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 vmNetworkDeviceAssignIpV2Resource = new Nutanix.VmNetworkDeviceAssignIpV2("vmNetworkDeviceAssignIpV2Resource", new()
{
    ExtId = "string",
    VmExtId = "string",
    IpAddresses = new[]
    {
        new Nutanix.Inputs.VmNetworkDeviceAssignIpV2IpAddressArgs
        {
            Value = "string",
            PrefixLength = 0,
        },
    },
});
Copy
example, err := nutanix.NewVmNetworkDeviceAssignIpV2(ctx, "vmNetworkDeviceAssignIpV2Resource", &nutanix.VmNetworkDeviceAssignIpV2Args{
	ExtId:   pulumi.String("string"),
	VmExtId: pulumi.String("string"),
	IpAddresses: nutanix.VmNetworkDeviceAssignIpV2IpAddressArray{
		&nutanix.VmNetworkDeviceAssignIpV2IpAddressArgs{
			Value:        pulumi.String("string"),
			PrefixLength: pulumi.Int(0),
		},
	},
})
Copy
var vmNetworkDeviceAssignIpV2Resource = new VmNetworkDeviceAssignIpV2("vmNetworkDeviceAssignIpV2Resource", VmNetworkDeviceAssignIpV2Args.builder()
    .extId("string")
    .vmExtId("string")
    .ipAddresses(VmNetworkDeviceAssignIpV2IpAddressArgs.builder()
        .value("string")
        .prefixLength(0)
        .build())
    .build());
Copy
vm_network_device_assign_ip_v2_resource = nutanix.VmNetworkDeviceAssignIpV2("vmNetworkDeviceAssignIpV2Resource",
    ext_id="string",
    vm_ext_id="string",
    ip_addresses=[{
        "value": "string",
        "prefix_length": 0,
    }])
Copy
const vmNetworkDeviceAssignIpV2Resource = new nutanix.VmNetworkDeviceAssignIpV2("vmNetworkDeviceAssignIpV2Resource", {
    extId: "string",
    vmExtId: "string",
    ipAddresses: [{
        value: "string",
        prefixLength: 0,
    }],
});
Copy
type: nutanix:VmNetworkDeviceAssignIpV2
properties:
    extId: string
    ipAddresses:
        - prefixLength: 0
          value: string
    vmExtId: string
Copy

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

ExtId This property is required. string
VmExtId This property is required. string
IpAddresses List<PiersKarsenbarg.Nutanix.Inputs.VmNetworkDeviceAssignIpV2IpAddress>
ExtId This property is required. string
VmExtId This property is required. string
IpAddresses []VmNetworkDeviceAssignIpV2IpAddressArgs
extId This property is required. String
vmExtId This property is required. String
ipAddresses List<VmNetworkDeviceAssignIpV2IpAddress>
extId This property is required. string
vmExtId This property is required. string
ipAddresses VmNetworkDeviceAssignIpV2IpAddress[]
ext_id This property is required. str
vm_ext_id This property is required. str
ip_addresses Sequence[VmNetworkDeviceAssignIpV2IpAddressArgs]
extId This property is required. String
vmExtId This property is required. String
ipAddresses List<Property Map>

Outputs

All input properties are implicitly available as output properties. Additionally, the VmNetworkDeviceAssignIpV2 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 VmNetworkDeviceAssignIpV2 Resource

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

VmNetworkDeviceAssignIpV2IpAddress
, VmNetworkDeviceAssignIpV2IpAddressArgs

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

Package Details

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