Delete Upload
delete
/serviceapi/logan.uploads/{uploadId}
Deletes an upload.
Request
Supported Media Types
- application/json
Path Parameters
-
uploadId: string
Id of the upload.
Response
Supported Media Types
- application/json
200 Response
Operation succeeded.
400 Response
Bad request. See response body for explanation.
Root Schema : InternalErrorResponse
Type:
Show Source
object
-
messages(optional):
array messages
-
type(optional):
string
Allowed Values:
[ "PARSERERROR", "INVALIDPARAMETER", "UNSUPPORTEDSUBSYSTEM", "UNSUPPORTEDFILTER", "UNSUPPORTEDVERSION", "INVALIDJOBID", "INVALIDQUERYID", "FORBIDDEN", "INTERNALERROR", "JSONERROR", "INTERRUPTEDERROR", "EXECUTIONERROR", "COMPILATIONERROR", "SERVICEAVAILABILITYERROR" ]
-
violations(optional):
array violations
403 Response
Forbidden. User does not have required privileges.
500 Response
Internal server error. See response body for explanation.
Root Schema : InternalErrorResponse
Type:
Show Source
object
-
messages(optional):
array messages
-
type(optional):
string
Allowed Values:
[ "PARSERERROR", "INVALIDPARAMETER", "UNSUPPORTEDSUBSYSTEM", "UNSUPPORTEDFILTER", "UNSUPPORTEDVERSION", "INVALIDJOBID", "INVALIDQUERYID", "FORBIDDEN", "INTERNALERROR", "JSONERROR", "INTERRUPTEDERROR", "EXECUTIONERROR", "COMPILATIONERROR", "SERVICEAVAILABILITYERROR" ]
-
violations(optional):
array violations
Examples
The following example shows how to delete an upload with id 1066.
curl -u "OMC_USERNAME" -X DELETE -H "Content-Type:application/json" "https://{OMC_URL}/serviceapi/logan.uploads/1066"
Example of Response
The following shows an example of the response body.
{ "uploadUser":"user", "uploadName":"SyslogUpload", "deletedLogCount":10323, "deletedLogFiles" : 1 }
Example 2: Delete a File
Run the following command to delete the file with uploadName=SyslogUpload and fileName=sys.log:
curl -u "OMC_USERNAME" -X DELETE -H "Content-Type:application/json" "https://{OMC_URL}/serviceapi/?uploadName=SyslogUpload&fileName=sys.log"
Example of Response
The following shows an example of the response body.
{ "uploadUser" : "user", "uploadName" : "SyslogUpload", "fileName" : "sys.log", "deletedLogCount" : 102, "deletedLogFiles" : 1 }