VMSubnet

System Center
 

Updated: June 27, 2017

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

Reads, creates, and deletes virtual network subnets from Virtual Machine Manager (VMM).

GETPOSTPUTDELETE
YesYesNoYes

GET

Reads all subnet objects that are associated with the specified stamp.

If you supply the ID property, the subnet with that identifier is returned.

If you supply the Subnet property, all subnets whose value matches the specified subnet are returned.

If you supply the Name property, the subnet with that name is returned.

Entity Properties

NameTypeMandatoryDescription
NameEdm.StringNoThe name of a subnet.
SubnetEdm.StringNoThe IP subnet (IPv4 or IPv6) in Classless Inter-Domain Routing (CIDR) notation

Example format for an IPv4 subnet: 192.168.0.1/24

Example format for an IPv6 subnet: FD4A:29CD:184F:3A2C::/64
StampIdEdm.GuidYesThe identifier of the stamp that restricts the query.
IDEdm.GuidNoThe identifier of a specific subnet object.

POST

Creates a new subnet for a virtual network.

Entity Properties

NameTypeMandatoryDescription
StampIdEdm.GuidYesThe identifier of the stamp that restricts the query.
NameEdm.StringYesThe name of the subnet.
SubnetEdm.StringYesThe IP subnet (IPv4 or IPv6) in Classless Inter-Domain Routing (CIDR) notation

Example format for an IPv4 subnet: 192.168.0.1/24

Example format for an IPv6 subnet: FD4A:29CD:184F:3A2C::/64
VMNetworkIdEdm.GuidYesThe virtual network to assign the subnet to.
VMNetworkNameEdm.StringNoThe name of the virtual network.

DELETE

Deletes the specified subnet.

Entity Properties

NameTypeMandatoryDescription
StampIdEdm.GuidYesThe identifier of the stamp that restricts the query.
IDEdm.GuidNoThe identifier of the subnet object to delete.

VMM Collections Reference R2

Show: