Highlighted
Contributor
Contributor

API to create a datastore on vCenter

Jump to solution

Author : Svetlana Voskoboinikova

URL : http:////docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.storage.doc/GUID-3FD5AB1E-47B3-49B...

Topic Name : vSphere Storage APIs

Publication Name : vSphere Storage

Product/Version : VMware vSphere/6.7

Question :

How do I create a datastore on a vCenter(Cluster) through API?

1 Solution

Accepted Solutions
Highlighted
Immortal
Immortal

There is no REST API coverage for datastore creation. You'll have to use the old SOAP-based API.

View solution in original post

4 Replies
Highlighted
Immortal
Immortal

Did you read the API docs which are hosted on VMware {code}?

0 Kudos
Highlighted
Contributor
Contributor

Yes, I read these docs and couldn't find anything to create one:

https://code.vmware.com/apis/358/vsphere/doc/index-do_types.html

REST API - get

0 Kudos
Highlighted
Immortal
Immortal

There is no REST API coverage for datastore creation. You'll have to use the old SOAP-based API.

View solution in original post

Highlighted
VMware Employee
VMware Employee
0 Kudos