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,
},
},
});
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),
},
},
})
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());
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,
}])
const vmNetworkDeviceMigrateV2Resource = new nutanix.VmNetworkDeviceMigrateV2("vmNetworkDeviceMigrateV2Resource", {
extId: "string",
migrateType: "string",
subnets: [{
extId: "string",
}],
vmExtId: "string",
ipAddresses: [{
value: "string",
prefixLength: 0,
}],
});
type: nutanix:VmNetworkDeviceMigrateV2
properties:
extId: string
ipAddresses:
- prefixLength: 0
value: string
migrateType: string
subnets:
- extId: string
vmExtId: string
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:
- Ext
Id This property is required. string - Migrate
Type This property is required. string - Subnets
This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Vm Network Device Migrate V2Subnet> - Vm
Ext Id This property is required. string - Ip
Addresses List<PiersKarsenbarg. Nutanix. Inputs. Vm Network Device Migrate V2Ip Address>
- Ext
Id This property is required. string - Migrate
Type This property is required. string - Subnets
This property is required. []VmNetwork Device Migrate V2Subnet Args - Vm
Ext Id This property is required. string - Ip
Addresses []VmNetwork Device Migrate V2Ip Address Args
- ext
Id This property is required. String - migrate
Type This property is required. String - subnets
This property is required. List<VmNetwork Device Migrate V2Subnet> - vm
Ext Id This property is required. String - ip
Addresses List<VmNetwork Device Migrate V2Ip Address>
- ext
Id This property is required. string - migrate
Type This property is required. string - subnets
This property is required. VmNetwork Device Migrate V2Subnet[] - vm
Ext Id This property is required. string - ip
Addresses VmNetwork Device Migrate V2Ip Address[]
- ext_
id This property is required. str - migrate_
type This property is required. str - subnets
This property is required. Sequence[VmNetwork Device Migrate V2Subnet Args] - vm_
ext_ id This property is required. str - ip_
addresses Sequence[VmNetwork Device Migrate V2Ip Address Args]
- ext
Id This property is required. String - migrate
Type This property is required. String - subnets
This property is required. List<Property Map> - vm
Ext Id This property is required. String - ip
Addresses 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.
- ext
Id String - ip
Addresses List<Property Map> - migrate
Type String - subnets List<Property Map>
- vm
Ext StringId
Supporting Types
VmNetworkDeviceMigrateV2IpAddress, VmNetworkDeviceMigrateV2IpAddressArgs
- Value
This property is required. string - Prefix
Length int
- Value
This property is required. string - Prefix
Length int
- value
This property is required. String - prefix
Length Integer
- value
This property is required. string - prefix
Length number
- value
This property is required. str - prefix_
length int
- value
This property is required. String - prefix
Length Number
VmNetworkDeviceMigrateV2Subnet, VmNetworkDeviceMigrateV2SubnetArgs
- Ext
Id string
- Ext
Id string
- ext
Id String
- ext
Id string
- ext_
id str
- ext
Id String
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanix
Terraform Provider.