Diagnostic Manager Browse Diagnostic Log
Returns part of a log file.
Log entries are always returned chronologically, typically with the newest event last.
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.3.0 APIs.
Show optional properties
{
"key": "string"
}
{
"host": {
"_typeName": "string",
"type": "string",
"value": "string"
},
"key": "string",
"start": 0,
"lines": 0
}
A string key specifying the key for the log file to browse. Keys can be obtained using the queryDescriptions method.
The line number for the first entry to be returned. If the parameter is not specified, then the operation returns with lines starting from the top of the log.
The number of lines to return. If not specified, then all lines are returned from the start value to the end of the file.
A LogHeader that includes the log lines. Sometimes fewer log lines are returned than were requested. For example, fewer lines are returned than expected if the client requests lines that do not exist or if the server limits the number of lines that it returns. If zero lines are returned, then the end of the log file may have been reached.
{
"_typeName": "string",
"lineStart": 0,
"lineEnd": 0,
"lineText": [
"string"
]
}
The first line of this log segment.
The last line of this log segment.
Log entries, listed by line, for this log segment.
InvalidArgument: if the key refers to a nonexistent log file or the log file is not of type "plain".
CannotAccessFile: if the key refers to a file that cannot be accessed at the present time.
{
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
],
"file": "string"
}