Freigeben über


VirtualNetworkAdapter

 

Applies To: System Center 2016 - Service Provider Foundation, System Center Technical Preview

VirtualNetworkAdapter

Gets, creates, updates, or deletes virtual network adapters in Virtual Machine Manager (VMM).

HTTP Verbs

GET POST PUT DELETE
Yes Yes Yes Yes

GET

Gets the specified virtual network adapters.

If you supply the ID property, the virtual network adapter with that identifier is returned.

If you supply the VMId property, the virtual network adapters that are assigned to the identified virtual machine are returned.

If you supply the TemplateId property, the virtual network adapters that are assigned to the identified virtual machine template are returned.

If you supply only the StampId property, all virtual network adapters for every virtual machine and virtual machine template that are assigned to that stamp are returned.

Entity Properties

Name Type Mandatory Description
StampId Edm.Guid Yes The identifier of the stamp that restricts the query.
TemplateId Edm.Guid No The identifier of the virtual machine template.
VMId Edm.Guid Yes The identifier of the virtual machine that contains the virtual network adapter.

POST

Creates a new virtual network adapter.

Entity Properties

Name Type Mandatory Description
StampId Edm.Guid Yes The identifier of the stamp that restricts the query.
VMNetworkId Edm.Guid No The identifier of the network that is assigned to this adapter.
VMId Edm.String No The identifier of the virtual machine.
IsSynthetic Edm.Boolean No When this property is set to false, the virtual network adapter is created as an emulated virtual network adapter; otherwise, it is a high-performance Hyper-V virtual network adapter.

PUT

Updates an existing virtual network adapter.

Entity Properties

Name Type Mandatory Description
ID Edm.Guid Yes The identifier of the object to update.
StampId Edm.Guid Yes The identifier of the stamp that restricts the query.
IPv4AddressType Edm.String No Sets the IPv4 addressing type. Use either “Dynamic” or “Static.”
IPv6AddressType Edm.String No Sets the IPv6 addressing type. Use either “Dynamic” or “Static.”
VMNetworkName Edm.String No Specifies the virtual machine network (VMNetwork) that the virtual network adapter is assigned to. Use an empty string to specify “no connection.”
VMNetworkId Edm.Guid No The identifier of the network that is assigned to this adapter.
VMSubnetId Edm.Guid No The identifier of the virtual machine subnet.
MACAddressType Edm.String No Sets the media access control (MAC) addressing type. Use either “Dynamic” or “Static.”
MACAddress Edm.String No A comma-delimited list of MAC address values.
EnableMACAddressSpoofing Edm.Boolean No Set to true to enable MAC address spoofing.

DELETE

Deletes the specified virtual network adapter.

Entity Properties

Name Type Mandatory Description
ID Edm.Guid No The identifier of the object to delete.
StampId Edm.Guid Yes The identifier of the stamp that restricts the query.

See Also

VMM Collections Reference R2