How to retrieve a JSON file that had been uploaded to the SDDC manager using API Explorer
search cancel

How to retrieve a JSON file that had been uploaded to the SDDC manager using API Explorer

book

Article ID: 398597

calendar_today

Updated On: 05-22-2025

Products

VMware SDDC Manager VMware vCenter Server

Issue/Introduction

Please refer to "How Do You Retrieve APIs Using vSphere API Explorer".

Scenarios:

  • Used the API Explorer to stretch a vSAN cluster. Wanting to retrieve the JSON used.

Resolution

  • If you check the “operationsmanager.log” or “domainmanager.log” you should be able to find the task for when the cluster was stretched, and it should have the entire JSON in the logs.

    • Other than by this method, there is no way to retrieve the JSON for the task.

    • Depending on how long ago the task was completed, the logs may have already rolled over, and the details may no longer be accessible.

 

See the example below of what you might find in the logs.

  "clusterStretchSpec": {

        "deployWithoutLicenseKeys": false,

        "hostSpecs": [ {

            "azName": "",

            "hostName": "",

            "hostNetworkSpec": {

                "networkProfileName": "",

                "vmNics": [ {

                    "id": "",

                    "moveToNvds": false,

                    "uplink": "",

                    "vdsName": ""

                } ]

            },

            "id": "",

            "ipAddress": "",

            "licenseKey": "",

            "password": "",

            "serialNumber": "",

            "sshThumbprint": "",

            "username": ""

        } ],

        "isEdgeClusterConfiguredForMultiAZ": false,

        "networkSpec": {

            "networkProfiles": [ {

                "description": "",

                "name": "",

                "nsxtHostSwitchConfigs": [ {

                    "ipAddressPoolName": "",

                    "uplinkProfileName": "",

                    "vdsName": "",

                    "vdsUplinkToNsxUplink": [ {

                        "nsxUplinkName": "",

                        "vdsUplinkName": ""

                    } ]

                } ]

            } ],

            "nsxClusterSpec": {

                "ipAddressPoolsSpec": [ {

                    "description": "",

                    "ignoreUnavailableNsxtCluster": false,

                    "name": "",

                    "subnets": [ {

                        "cidr": "",

                        "gateway": "",

                        "ipAddressPoolRanges": [ {

                            "end": "",

                            "start": ""

                        } ]

                    } ]

                } ],

                "uplinkProfiles": [ {

                    "name": "",

                    "supportedTeamingPolicies": { },

                    "teamings": [ {

                        "activeUplinks": [ "" ],

                        "policy": "",

                        "standByUplinks": [ "" ]

                    } ],

                    "transportVlan": 0

                } ]

            }

        },