Forum Discussion
AS3 Declaration
Morning Guys,
I'm having a little issue. I POST an AS3 declaration and it deploys it to the F5 just fine.
The problem comes in when I try to create another Virtual Server the same way with a different name/different IP and what not, it will overwrite the previous. Anyone know how to solve this?
{
"class": "AS3",
"action": "deploy",
"persist": false,
"declaration": {
"class": "ADC",
"label": "josh_80_test3",
"schemaVersion": "3.0.0",
"app_admins": {
"class": "Tenant",
"A2": {
"class": "Application",
"joshtest_80_test3": {
"label": "josh_80_test3",
"class": "Service_HTTP",
"virtualAddresses": [
"192.168.1.10"
],
"pool": "josh_test_pool3"
},
"josh_test_pool3": {
"class": "Pool",
"monitors": [
"http"
],
"members": [
{
"servicePort": 89,
"serverAddresses": [
"192.0.1.12",
"192.0.1.13"
]
}
]
}
}
}
}
}
{
"class": "AS3",
"action": "deploy",
"persist": false,
"declaration": {
"class": "ADC",
"label": "josh_80_test2",
"schemaVersion": "3.0.0",
"app_admins": {
"class": "Tenant",
"A2": {
"class": "Application",
"joshtest_80_test2": {
"label": "josh_80_test2",
"class": "Service_HTTP",
"virtualAddresses": [
"10.0.1.13"
],
"pool": "josh_test_pool2"
},
"josh_test_pool2": {
"class": "Pool",
"monitors": [
"http"
],
"members": [
{
"servicePort": 90,
"serverAddresses": [
"192.0.1.12",
"192.0.1.13"
]
}
]
}
}
}
}
}
1 Reply
Adding additional VS is not done the same way as creating the first one. You should use PATCH method for this.
https://support.f5.com/csp/article/K91316819
https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/latest/refguide/as3-api.html#using-patch-to-add-an-application-to-a-tenant
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com