Forum Discussion

Glen_Pekarcsik's avatar
Glen_Pekarcsik
Icon for Nimbostratus rankNimbostratus
Feb 19, 2020

F5 ASM - Using API to merge policies and itemfilter

I am trying to use the ASM API - /mgmt/tm/asm/tasks/policy-merge to merge 2 ASM Policies. In the JSON payload, there is an itemFilter section that allows to merge only certain items from the policy. I only want to merge urls, parameters, file types, and geo_locations. Does anyone know what syntax I would use to filter for those in the itemFilter in the JSON below?

 

POST

{

  "policyDiffReference": {"link": "https://localhost/mgmt/tm/asm/policy-diffs/<policyid>"},

  "addMissingEntitiesToFirst": true,

  "addMissingEntitiesToSecond": true,

  "handleCommonEntities": "ignore",

  "handleMissingEntitiesEnum": ["ignore", "accept-from-first",

  "accept-from-second"],

  "itemFilter": " "

}

No RepliesBe the first to reply