def exportJsonConfigToDict(self, xpathList=None): """ Description Export the current configuration to a JSON config format and convert to a Python Dict. Parameter xpathList: To get entire configuration = ['/descendant-or-self::*'] To get code fragments such as /vport = ['/vport/descendant-or-self::*'] Return JSON config in a dictionary format. """ if xpathList == None: xpathList = ['/descendant-or-self::*'] data = {'arg1': self.ixnObj.apiSessionId+"/resourceManager", 'arg2': xpathList, 'arg3': True, 'arg4': 'json' } url = self.ixnObj.sessionUrl+'/resourceManager/operations/exportconfig' response = self.ixnObj.post(url, data=data) response = self.ixnObj.waitForComplete(response, url+'/'+response.json()['id'], silentMode=False) return json.loads(response.json()['result'])