Share via


VirtualHardDisks

 

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

VirtualHardDisks

Reads all of the virtual hard disks that are optionally assigned to virtual machines or a virtual machine template.

HTTP Verbs

GET POST PUT DELETE
Yes No No No

GET

Reads all virtual hard disks. This GET operation is further restricted by the available properties that you can add.

If you supply the ID property, the virtual hard disk with that identifier is returned.

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

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

If you supply the Name property, the virtual hard disk with that name is returned.

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

Entity Properties

Name Type Mandatory Description
ID Edm.Guid No The identifier of the virtual hard disk to get
VMId Edm.Guid No The identifier of the virtual machine
TemplateId Edm.Guid No The identifier of the virtual machine template
StampId Edm.Guid Yes The identifier of the stamp to restrict the query to
Name Edm.String No The name of the virtual hard disk

See Also

VMM Collections Reference