cancel
Showing results for 
Search instead for 
Did you mean: 

PATCH vs POST in AS3

Mattews
Cirrus
Cirrus

Hi all,

 

which are the main advantages of using PATCH instead of POST for pushing declaration on F5 devices? Conversely, which are the main advantages of using POST instead of PATCH?

 

Thanks in advance

1 REPLY 1

PeteWhite
F5 Employee
F5 Employee

Patch is used to update an existing declaration without sending the whole thing again. For instance, you would use POST to send the whole declaration consisting of virtual servers, pools, profiles etc. However, to add a new pool member you would only need to use a PATCH to update that pool section, not the whole declaration. However, depending on your deployment pipeline, it may be simpler to just update the declaration and redeploy with POST ( and an action of redeploy ). Hopefully that makes some sense. https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/latest/refguide/as3-api.html