Description

Empties the deferred log buffer. For more information about deferred logging, see Use deferred logging in PAS for OpenEdge .

Note that you identify the specific agent by the agentID , which you can obtain by executing /oemanager/applications/ ABL_app_name /agents , or you can specify all to flush the deferred log buffer to the agent log files of all agents in the application.

HTTP Operation

GET

URI


    //
    
     host_name
    :
    
     port
    /oemanager/applications/
    
     ABL_app_name
    /agents/
    {
    
     agentID
     | all
    }/resetDeferredLog
   
Note: Agent PID (for example, 1144 ) or agent ID (for example, W9UI_6dJQ-qSsk-o25mWAw ) can be used to identify the multi-session agent. Both values can be obtained using the List agents API.

Media type


    application/vnd.progress+json
   

Response codes


    200 Success 403 Access Denied 500 Unexpected Server Error
   

Command-line example

Flush deferred log buffer to agent log file for an agent with the agent ID LdS8phtPR0GIrhRrrSL3Xg :


       curl -X GET -u 
       
        username
       :
       
        password
        -v http://localhost:16680/oemanager/applications/oepas1/agents/LdS8phtPR0GIrhRrrSL3Xg/resetDeferredLog
      

Flush deferred log buffer to agent log file for all agents:


       curl -X GET -u 
       
        username
       :
       
        password
        -v http://localhost:16680/oemanager/applications/oepas1/agents/all/resetDeferredLog
      

ABL HTTP client example


       define variable resp as OpenEdge.Net.HTTP.IHttpResponse. resp = OpenEdge.Net.HTTP.ClientBuilder:Build():Client :Execute(OpenEdge.Net.HTTP.RequestBuilder :Get('http://localhost:16680/oemanager/applications/oepas1/agents/all/resetDeferredLog') :UsingCredentials(new OpenEdge.Net.HTTP.Credentials('', 'username', 'password')) :Request ).
      

Request body example

NA

Response body example


       { "operation": "RESET DEFERRED LOGS", "outcome": "SUCCESS", "result": { "resetDeferredLog": "true" }, "errmsg": "", "versionStr": "v12.1.0", "versionNo": 1 }