Diagnostic Manager Generate Log Bundles Task
Deprecated since version 5.0 M/N it is recommended to use the CGI interface for the host bundles, use the address instead: https://<<ESX_name>>/cgi-bin/vm-support.cgi
for the VC bundles, use https://<<VC_name>>/appliance/support-bundle
The caller can download the bundles using an HTTP GET operation for each returned URL. Bundles are usually available for at least 24 hours, but the caller should not assume that the returned URLs are valid indefinitely. Servers often automatically delete generated diagnostic bundles after some given period of time.
Instructs the server to generate diagnostic bundles.
A diagnostic bundle includes log files and other configuration information that can be used to investigate potential server issues. Virtual machine and guest operation system state is excluded from diagnostic bundles.
Required privileges: Global.Diagnostics
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId
, in this case DiagnosticManager/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.
{
"includeDefault": false,
"host": [
{
"_typeName": "string",
"type": "string",
"value": "string"
}
]
}
Specifies if the bundle should include the default server. If called on a VirtualCenter server, then this means the VirtualCenter diagnostic files. If called directly on a host, then includeDefault must be set to true.
Lists hosts that are included. This is only used when called on VirtualCenter. If called directly on a host, then this parameter must be empty.
This method returns a Task object with which to monitor the operation. Upon success, the info.result property in the Task contains a list of DiagnosticManagerBundleInfo objects for each diagnostic bundle that has been generated.
{
"_typeName": "string",
"type": "string",
"value": "string"
}
LogBundlingFailed: if generation of support bundle failed.
TaskInProgress: if there is a pending request to generate a support bundle.
{
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}