Forum Discussion

syncretism's avatar
syncretism
Icon for Nimbostratus rankNimbostratus
Jul 28, 2020

Partial Updates to Metadata for GTM and LTM

I'd like to add metadata to WIPs without overwriting any existing data (or, if the same metadata exists, to update that).   I connect to iControl REST with HTTP "PATCH" method and a JSON payload,...
  • Satoshi_Toyosa1's avatar
    Jul 29, 2020

    I presume you have a number of meta-data names and associated values inside the metadata property as shown in an example below and you want to replace/delete/modify just one of them. Unfortunately, you can perform only replace-all-with. If you need to partially replace, you need to first get the array (as shown in the square bracket), manipulate it, and send it back.

    "metadata": [
        {
          "name": "satMeta",
          "persist": "true",
          "value": "Sat"
        },
        {
          "name": "toyoMeta",
          "persist": "false",
          "value": "Toyo"
        }
      ],

    This limitation is also discussed in ltm internal datagroup (can't modify a subset of records and need to replace-all).