cancel
Showing results for 
Search instead for 
Did you mean: 
Login & Join the DevCentral Connects Group to watch the Recorded LiveStream (May 12) on Basic iControl Security - show notes included.

F5 ASM - Using API to merge policies and itemfilter

Glen_Pekarcsik
Nimbostratus
Nimbostratus

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": " "

}

0 REPLIES 0