VMware Cloud Community
cjchalmers
Contributor
Contributor

Default name of Datacenter in ESXi

Apologies if this appears a stupid question...

I am trying to learn and do a POC of accessing vSphere using the Java sdk webservice

I have downloaded an instance of ESXi 6 and have this up-and-running

I can connect via the web client application and can login and retrieve simple data via the Java sdk.

The problem is that I want to add a vm instance and to do so  I need to specify a datacenter name - as in the sample code that is delivered with the sdk

I know that with a single instance of ESXi that I have there shall be only one

But what is the default name of the datacenter or how do I find this out? Perhaps retrieving and traversing over the folders?

I don't see any way to set/change the name of the datacenter via the web client

Colin

Tags (1)
0 Kudos
1 Reply
rcporto
Leadership
Leadership

Did you tried without specify the datacenter since you're using just a single ESXi ? When using vCenter the default datacenter is ha-datacenter.

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
0 Kudos