次の方法で共有


VMSubnets

 

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

VMSubnets

Reads, creates, and deletes virtual network subnets.

HTTP Verbs

GET POST PUT DELETE
Yes Yes No Yes

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

Name Type Mandatory Description
Name Edm.String No The name of a subnet
Subnet Edm.String No The 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
StampId Edm.Guid Yes The identifier of the stamp to restrict the query to
ID Edm.Guid No The identifier of a specific subnet object

POST

Creates a new subnet for a virtual network.

Entity Properties

Name Type Mandatory Description
StampId Edm.Guid Yes The identifier of the stamp to restrict the query to
Name Edm.String Yes The name of the subnet
Subnet Edm.String Yes The 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
VMNetworkId Edm.Guid Yes The virtual network to assign he subnet to

DELETE

Deletes the specified subnet.

Entity Properties

Name Type Mandatory Description
StampId Edm.Guid Yes The identifier of the stamp to restrict the query to
ID Edm.Guid Yes The identifier of the subnet object to delete

See Also

VMM Collections Reference