show config-replace log exec
Python
Copy
import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show config-replace log exec",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.0",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show config-replace log exec",
        "msg": "Success",
        "code": "200",
        "body": {
          "log_entry": [
            "Operation            : Config-replace to user config\nCheckpoint file name : .replace_tmp_13526\nScheme               : tmp\nCfg-replace done By  : admin\nCfg-replace mode     : atomic\nVerbose              : disabled\n",
            "Start Time           : Thu, 05:53:19 19 Jul 2018\n",
            "Start Time UTC       : Thu, 05:53:19 19 Jul 2018\n",
            "End Time             : Thu, 05:53:22 19 Jul 2018\n",
            "End Time UTC         : Thu, 05:53:22 19 Jul 2018\n",
            "Rollback Status      : Success\n"
          ]
        }
      }
    }
  }
}