VMware Cloud Community
sandipsubedi
Contributor
Contributor
Jump to solution

API to create a datastore on vCenter

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
daphnissov
Immortal
Immortal
Jump to solution

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
daphnissov
Immortal
Immortal
Jump to solution

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

Reply
0 Kudos
sandipsubedi
Contributor
Contributor
Jump to solution

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

Reply
0 Kudos
daphnissov
Immortal
Immortal
Jump to solution

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

shreedevi
VMware Employee
VMware Employee
Jump to solution

Reply
0 Kudos