Forum Discussion
JustJozef
Feb 20, 2023Cirrus
icontrol - policy-diff and merge
Hello, trying to compare and merge two ASM policies via REST API but with no success. I called endpoint POST /mgmt/tm/asm/tasks/policy-diff with body: {"firstPolicyReference": { "link": "http://l...
plc
May 31, 2024Nimbostratus
Hey JustJozef
You need to call then the selfLink of the response.
curl -sku <user> "https://localhost/mgmt/tm/asm/tasks/policy-diff/<ID>" | jq .
After that you'll get another link for policyDIffReference, something like that:
...
"result":
"result": {
"policyDiffReference": {
"link": "https://localhost/mgmt/tm/asm/policy-diffs/<Diff_ID>ver=17.1.1",
...
Call this policyDiffReference link adding "/diferences" as the endpoint.
curl -sku <user> "https://localhost/mgmt/tm/asm/policy-diffs/<Diff_ID>/differences" | jq .
That did it for me, hope it helps you as well.
Cheers
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects