Hi all,
I am happy to update about important addition to R80.40 Management API - Batch Objects commands.
Batch API Significantly increase API performance in multiple object operations (add/set/delete).
- Object creation time reduced by up to 92% when compared to adding one-by-one*
- Object deletion time reduced by up to 87% when compared to deleting one-by-one*
*In the tested scenario of adding and deleting 256 hosts objects.
Commands:
- add-objects-batch
- set-objects-batch
- delete-objects-batch
Batch supported types: access-role, address-range, application-site-category, application-site-group, dns-domain, dynamic-object, group, group-with-exclusion, host, lsv-profile, multicast-address-range, network, package, security-zone, service-dce-rpc, service-group, service-icmp, service-other, service-sctp, service-tcp, service-udp, tag, time, time-group, vpn-community-meshed, vpn-community-star, wildcard.
Example:
add objects-batch
Add two hosts and two address ranges
Command
POST {{server}}/add-objects-batch
Content-Type: application/json
X-chkp-sid: {{session}}
{
"objects" : [ {
"type" : "host",
"list" : [ {
"name" : "New Host 1",
"ip-address" : "192.0.2.1"
}, {
"name" : "New Host 2",
"ip-address" : "192.0.2.2"
} ]
}, {
"type" : "address-range",
"list" : [ {
"name" : "New Address Range 1",
"ip-address-first" : "192.0.2.1",
"ip-address-last" : "192.0.2.10"
}, {
"name" : "New Address Range 2",
"ip-address-first" : "192.0.2.12",
"ip-address-last" : "192.0.2.20"
} ]
} ]
}
Output
{
"tasks" : [ {
"task-name" : "add-objects-batch",
"task-id" : "abcdef01-2345-6789-b3e1-ec3bf46e688a",
"status" : "succeeded",
"progress-percentage" : 100,
"progress-description" : "Operation Complete",
"suppressed" : false,
"task-details" : [ {
"status" : "Batch operation completed successfully"
} ]
} ]
}
Regards,
Management API team.