In the past month or so since joining the VMware Cloud on AWS (VMC) team, I have seen a number of inquiries from our Customer Success team, partners and customers on how to retrieve certain pieces information about their deployed SDDC, usually for information or integration purposes. Some of these questions can simply be answered by using the VMC Console UI, however there are others that is only available when using the VMC API, which provides a ton more data than what the UI could ever display. In any case, I figure it would be useful to share some of this information, especially as it pertains to the VMC API.
Below are just some of the frequently asked questions that I have seen and they can all be answered simply performing a GET /api/orgs/<orgId>/sddcs/<sddcId> on your specific SDDC via VMC API. In addition, I have also create two sample scripts which exercises these VMC APIs, one using the native VMC REST API and another with PowerCLI using the VMC cmdlet, which you can find more details below.
1) What version is my SDDC running?
This can be found in the VMC Console UI under the "Support" tab for a given SDDC.
You can also find this information using the VMC API by referring to the resource_config.sddc_manifest.vmc_version property.
2) When was my SDDC created?
This can be found in the VMC Console UI under the "Support" tab for a given SDDC.
You can also find this information using the VMC API by referring to the created property.
3) How long do I have until my 1-Node SDDC expires?
This can be found in the VMC Console UI under the SDDC card summary view or detailed view.
You can also find this information using the VMC API by referring to the expiration_date property. This property will be null if your SDDC is NOT a 1-Node, which is the only configuration which has an expiration.