I use the following to add script to the first policy on my SMS, using SmartConsole API.
add access-section layer "Network" position top name "Gateways Access"
add access-section layer "Network" position bottom name "Noise Suppression"
add access-section layer "Network" position bottom name "Stealth Rule"
add access-section layer "Network" position bottom name "Internet Access"
add access-section layer "Network" position bottom name "Cleanup Rule"
Later, I created a second policy for another gateway, I want to add these access-sections to the new policy.
I find that this still adds the sections to the first policy, no matter which policy I have selected in SmartConsole.
https://sc1.checkpoint.com/documents/latest/APIs/#gui-cli/add-access-section~v1.9%20
The API does not support specifying a package.
How do I script adding access-sections to a specific policy package using SmartConsole API?