logs/logFiles/deletelogFiles

API Name

logs/logFiles/deletelogFiles

Description

Deletes the passed log file if logged in user has permission to delete those file.

REST Methods

POST

Precondition

Server Manager Console must be running.

Permission

webProductLogInstance

Input Params

instanceName: The Managed Instance Name.

jdeHome: The Install Location of the Managed Home.

agentHostName: The Hostname of the Machine where the Managed Home Resides.

Sample Request

curl --location 'http://phoenix175736.appsdev0.fusionappsdphx1.oraclevcn.com:7101/manage/mgmtrestservice/logs/logFiles/deletelogFiles?instanceName=Html&agentHostName=phoenix175736.appsdev0.fusionappsdphx1.oraclevcn.com&jdeHome=C%3A%5Cwork%5Cinstall%5CSMA%5CSCFHA' \ --header 'Content-Type: application/json' \ --header 'Authorization: Basic SkRFOkpERQ==' \ --data '{ "logFiles":[ "C:\\work\\install\\SMA\\SCFHA\\targets\\Html\\logs\\jde_JDE_20240228_0.log", "C:\\work\\install\\SMA\\SCFHA\\targets\\Html\\logs\\jde_JDE_20240304_0.log" ] }'

Return

HTTP status 200 is returned.

Sample Response

Exception

Throws an exception if the operation fails for any reason.