Nexfs Management API Documentation
Method Index
GetErrorLog
Retrieving the in memory error log with the Nexfs Management API
Nexfs retains a copy of the last 100 error messages in memory
Action: GetErrorLog
Request a copy of the in memory Nexfs system error log
Permissions
To retrieve the nexfs system error log a requesting session must have the nexfs/GetErrorLog role enabled.
Request Parameters
A request must be made against the nexfs management console api with the GetErrorLog action.
The request must be signed with a valid AWS V4 style Signature using an active temporary session security token.
Action
GetErrorLog
Request Body
The request does not have a request body.
Response Syntax
HTTP1/1 200
{
"LogErrors": [
"String",
"String",
...
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in json format by the service.
LogErrors
json array label for the successful Get Error Logs response, the array may contain zero or more log entries
String
Each entry in the LogErrors json array will contain a complete single log Message.
Errors
Also See Rest Error Responses
401 Unauthorized The request cannot be authenticated
403 Forbidden Session does not have the rights to perform the requested action
Example Request
GET http://nexfs.example.com:9200/nexfsconsoleapi?Action=GetErrorLog
Authorization: AWS4-HMAC-SHA256 Credential=347768d3ae58427580834cbb448a1958/20220823/nexfs/nexfsconsoleapi/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=1b0b733766b04599d96702e72921948d2055fdd1f91e04c1f716f1a2836e9448
content-type: application/x-www-form-urlencoded; charset=utf-8
host: nexfs.example.com
x-amz-date: 20220823T163439Z
Example Response
{
"LogErrors": [
"Sat, 20 Aug 2022 12:55:08 NZST:tgt_portal_create(2306) failed to create portal portal=interface32:3260",
"Sat, 20 Aug 2022 12:55:08 NZST:iscsi_add_portal(424) failed to create/bind to portal interface32:3260",
"Sat, 20 Aug 2022 12:55:08 NZST:iscsi_tcp_init_portal(322) unable to get address info, Resource temporarily unavailable",
"Sat, 20 Aug 2022 12:55:08 NZST:tgt_portal_create(2306) failed to create portal portal=eth01:3260",
"Sat, 20 Aug 2022 12:55:08 NZST:iscsi_add_portal(424) failed to create/bind to portal eth01:3260",
"Sat, 20 Aug 2022 12:55:08 NZST:iscsi_tcp_init_portal(322) unable to get address info, Resource temporarily unavailable",
"Sat, 20 Aug 2022 12:55:08 NZST:tgt_portal_create(2306) failed to create portal portal=en01:3260",
"Sat, 20 Aug 2022 12:55:08 NZST:iscsi_add_portal(424) failed to create/bind to portal en01:3260"
]
}