vsphere-automation-sdk-java icon indicating copy to clipboard operation
vsphere-automation-sdk-java copied to clipboard

Developer APIs for SDDC stretched cluster

Open Aishwarya2 opened this issue 5 years ago • 2 comments

  • [x] I am using the latest SDK version
  • [x] This API is compatible with my vCenter version (You can get the info from the Java API Reference Documentation)
  • [x] I have searched existing issues

Environment

  • sdk binding version:
  • Java version:
  • vSphere version:

  • Operating System/Shell (used to run SDK-based apps):

Steps or code snippet to reproduce

Actual behavior

Expected behavior

I am currently looking for a way to provision stretched cluster SDDCs and perform operations such as Add/Remove host, Add/remove cluster etc through APIs. Currently, there's a way to provision stretched cluster SDDC only through vmc console UI

Aishwarya2 avatar Apr 17 '20 22:04 Aishwarya2

Hi, you can find the latest vmc APIs here https://code.vmware.com/apis/603/vmware-cloud-on-aws#/sddc. Let me know if you still need help.

sumitAgrawal007 avatar Apr 23 '20 18:04 sumitAgrawal007

I wanted to clarify that I am not looking for documentation on VMC APIs. Presently, the only way to provision a stretched cluster SDDC is through the VMC Console UI

The API for provisioning SDDC has the following request payload when trying to provision a stretched cluster through UI. I got the payload from the network call made in the developer console of firefox browser when I provisioned a stretched cluster SDDC through vmc console UI:

{ "name":"testStretchCluster", "num_hosts":6, "provider":"AWS", "deployment_type":"MultiAZ", "region":"", "account_link_sddc_config":[ { "customer_subnet_ids":[ "<subnetID-1>", "<subnetID-2>" ], "connected_account_id":"<accountID>" } ], "sddc_type":"DEFAULT", "host_instance_type":"i3.metal", "skip_creating_vxlan":true }

This does not look any different from trying to provision a multiAZ SDDC. It looks like creating a stretched cluster SDDC calls some other API in the background. What's the difference in payload when provisioning a multi-AZ SDDC versus stretched cluster SDDC?

It seems like there are no developer APIs available that deals with any stretched cluster SDDC operations. If I am wrong, could you point me to the right resource? If not, please consider this as a feature request

Aishwarya2 avatar Apr 24 '20 16:04 Aishwarya2