Bidondo
Mar 09, 2020Nimbostratus
AS3 PATCH method to add new pool?
AS3 noob here. Been successful using POST to create partition, app, VS, and pool. Now, I simply want to add a new standalone pool to the tenant, but not attached to a virtual server (because I'm using dynamic pool routing via DG) using the PATCH method. Should be very easy, but seeing some interesting errors, which I'm sure is related to schema formatting. Any advice? The restnoded logs were not much help. Payload follows using PATCH method, followed by the error. Also tried adding to the schema without the app, but same deal...
[
{
"path": "/Sample/A1",
"op": "add",
"value": {
"web_pool_new": {
"class": "Pool",
"monitors": [
"http"
],
"members": [{
"servicePort": 80,
"serverAddresses": [
"192.0.1.20",
"192.0.1.21"
]
}
]
}
}
}
]
{
"code": 422,
"errors": [
"/Sample/A1: should have required property 'class'"
],
"declarationFullId": "",
"message": "declaration is invalid"
}