Hi, I have a script that sends an account modification request every hour, but I have many accounts (more than 1000) and I don't want to send 1000 requests, so I was wondering if there is a method to batch these accounts in just one request , I know it's possible in the zmprov command, but I'm using the soap API.
Thanks.
Zimbra SOAP API modify multiple accounts with one request
Re: Zimbra SOAP API modify multiple accounts with one request
Did you try to create an xml file with all the change and then send it with one comand?
Zimbra usually use the batch request, but you need to study how it works....
zmsoap help guide :
--json Use JSON instead of XML.
--file (-f) file-path Read request from file.
You can obtain how to write the xml from a zmsoap comand using "-v" option on a test modify comand.
Personally i prefer to use zmprov instead zmsoap , zmprov is easier to use for an admin ...
Zimbra usually use the batch request, but you need to study how it works....
zmsoap help guide :
--json Use JSON instead of XML.
--file (-f) file-path Read request from file.
You can obtain how to write the xml from a zmsoap comand using "-v" option on a test modify comand.
Personally i prefer to use zmprov instead zmsoap , zmprov is easier to use for an admin ...