Mattews
Nov 10, 2020Cirrus
How to POST multiple declaration with AS3 without overwrite the existent ?
Hi
I need to know how to configure multiple VIP without overwrite the existent.
For now I have this declaration:
{
"class": "AS3",
"action": "deploy",
"persist": true,
"declaration": {
"class": "ADC",
"schemaVersion": "3.0.0",
"id": "example-declaration-01",
"label": "Sample 1",
"remark": "Simple HTTP application with round robin pool",
"{{ Layer }}": {
"class": "Tenant",
"defaultRouteDomain": 0,
"{{ nomeServizio }}": {
"class": "Application",
"template": "generic",
"{{ nomeServizio }}": {
"class": "Service_HTTP",
"iRules": [{"bigip": "/Common/dynamic_irule"}],
"virtualPort": {{ virtualPort| int }},
"virtualAddresses": ["{{ IPvirtualServer }}"],
"persistenceMethods": ["{{ metodoPersistenza }}"],
"pool": "{{ item.nomePool }}"
},
"{{ item.nomePool }}": {
"class": "Pool",
"monitors": {{ item.monitor }},
"members": [{
"servicePort": {{ item.membersPort|int }},
"serverAddresses": {{ item.IPmembers|list }}
}]
}
}
}
}
}
Now I POST this declaration using extra vars like "metodoPersistenza" etc in order to configure a VIP with external parameters, but if I try to POST this declaration again (with others extra vars) AS3 overwrites the previous VIP...
How can I do to configure multiple VIP in multiple declarations without overwriting the existent configurations?
Thanks in advance