As I mentioned on the other thread, this will require the use of Generic Objects API.
The Generic Objects API can be used to manipulate (parts of) objects that do not have otherwise have formal API support.
Changes made via this API are not guaranteed to work at all and may not work after upgrades.
Formal APIs should always be used where possible as they are versioned (and thus backward compatible) and are fully supported by TAC/R&D.
The downside of using the Generic Object API is that you will have to do some work to figure out the correct calls to make.
Formal support for editing MTA settings on a gateway object would require an RFE.
Note for @Amiad_Stern and team 😀
As a starting point, you'll have to dump the specific object in question.
For example, the command mgmt_cli -r true show generic-objects name dummygw -f json gives me:
{
"objects" : [ {
"uid" : "dd30a946-0bef-46bf-8944-33a8ca3183a2",
"name" : "dummygw",
"type" : "simple-gateway",
"domain" : {
"uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",
"name" : "SMC User",
"domain-type" : "domain"
}
}, {
"uid" : "128adaf9-c547-8249-b864-ebbff501c311",
"name" : "dummygw",
"type" : "CpmiRoboEndPointStatus",
"domain" : {
"uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",
"name" : "SMC User",
"domain-type" : "domain"
}
} ],
"from" : 1,
"to" : 2,
"total" : 2
}
I suppose I could have gotten the UID for the gateway object a different way.
But once you have it, then you can dump all the "hidden" settings in the object using show generic-object uid dd30a946-0bef-46bf-8944-33a8ca3183a2 -f json
I won't paste the output here, but I can assure you there is a section of MTA settings and the rules.
Where my knowledge falls down (and where I hope R&D can help) is how to use the API to actually create/edit these rules.