- Products
- Learn
- Local User Groups
- Partners
- More
AI Security Masters
E1: How AI is Reshaping Our World
MVP 2026: Submissions
Are Now Open!
What's New in R82.10?
Watch NowOverlap in Security Validation
Help us to understand your needs better
CheckMates Go:
Maestro Madness
I am getting the following error when trying to importing access rules via the API using the Python script
Failed to import access-rule with name [Cleanup rule]. Error: message: Missing parameter: [layer]
python import_export_package.py -op import -sid "xxxxx" -m 1.1.1.1 -n TEST -f importing/policy.tar.gz
I have tried referencing the layer by name and UID, to no avail
action,layer,action-settings.enable-identity-captive-portal,comments,content-direction,content-negate,content.0,custom-fields.field-1,custom-fields.field-2,custom-fields.field-3,destination-negate,enabled,install-on.0,name,position,service-negate,source-negate,time.0,track.accounting,track.alert,track.per-connection,track.per-session,track.type,vpn.0,destination.0,service.0,source.0,source.1
Drop,77da8da0-9bd6-49ec-89a1-9fe3de97f7d1,,,any,false,Any,,,,false,true,Policy Targets,Cleanup rule,3,false,false,Any,false,none,false,false,None,Any,Any,,,Any,,Any,
Any help would be much appreciated
Thanks
Nick
Make sure you don't confuse policy package with layer.
You can do a "show-packages" / "show-package name "xxx"" to see which layers are added to it.
Hey
This is the output from show package name XXXX
There is only one layer, which is referenced in the import CSV posted above.
I get the same behaviour when trying to import access sections
[Expert@iedub-cpmgmt01:0]# mgmt_cli -s id.txt show packages
packages:
- uid: "60540955-9cd5-4dab-b5e9-8c3622694f29"
name: "REMOTE-OFFICE"
type: "package"
domain:
uid: "41e821a0-3720-11e3-aa6e-0800200c9fde"
name: "SMC User"
domain-type: "domain"
- uid: "55cc9342-d886-4cfd-bf5e-d438bb5e698e"
name: "REMOTE-OFFICES"
type: "package"
domain:
uid: "41e821a0-3720-11e3-aa6e-0800200c9fde"
name: "SMC User"
domain-type: "domain"
mgmt_cli -s id.txt show package name REMOTE-OFFICES
uid: "55cc9342-d886-4cfd-bf5e-d438bb5e698e"
name: "REMOTE-OFFICES"
type: "package"
domain:
uid: "41e821a0-3720-11e3-aa6e-0800200c9fde"
name: "SMC User"
domain-type: "domain"
access: true
access-layers:
- uid: "77da8da0-9bd6-49ec-89a1-9fe3de97f7d1"
name: "Network"
type: "access-layer"
domain:
uid: "41e821a0-3720-11e3-aa6e-0800200c9fde"
name: "SMC User"
domain-type: "domain"
Looks like the layer is just named "Network" which is the default.
So if you try the following command, does it fail? ;
mgmt_cli -s id.txt add access-section layer Network name FirstSection position top
Hi
That command works with no errors. This command is what I had to revert to manually importing the rules.
It is weird, as I created a new policy with one access rule, exported it via the Python script, tried to import it. Fails straight away.
Sounds like something the authors should look into.
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 16 | |
| 15 | |
| 7 | |
| 5 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 4 |
Tue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Thu 18 Dec 2025 @ 10:00 AM (CET)
Cloud Architect Series - Building a Hybrid Mesh Security Strategy across cloudsTue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Thu 18 Dec 2025 @ 10:00 AM (CET)
Cloud Architect Series - Building a Hybrid Mesh Security Strategy across cloudsThu 08 Jan 2026 @ 05:00 PM (CET)
AI Security Masters Session 1: How AI is Reshaping Our WorldAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY