vCenter

 View Only

I prompted an error when obtaining host software with VC

  • 1.  I prompted an error when obtaining host software with VC

    Posted Apr 12, 2024 03:06 AM

    I used the API /api/esx/software through the VC Developer Center, but when I filled in the information correctly, there was no way to get the correct return. At present, the wrong return is as follows:

    curl -X GET 'https://xxxxxxx/api/esx/software?auth_type=EXISTING&host=xxxxxx' -H 'vmware-api-session-id: xxxxx'

    "error_type": (string) "INVALID_ARGUMENT", VapiStdErrorsErrorType { ... }

    "messages": (Array, required) [ VapiStdLocalizableMessage (com.vmware.vapi.rest.unsupportedProperty) {

    "args": (Array, required) [ "auth_type" ],

    "default_message": (string, required) "Unsupported property with name: auth_type.",

    "id": (string, required) "com.vmware.vapi.rest.unsupportedProperty",}

    Can anyone help us with it?