Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Yael_G
Employee
Employee
Jump to solution

Coming up in R80.40 Management API - Batch Objects commands

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.

1 Solution

Accepted Solutions
HeikoAnkenbrand
Champion Champion
Champion

Hi @Yael_G,

Nice!

Will this also be integrated in R80.20/R80.30 with a JHFA?

➜ CCSM Elite, CCME, CCTE

View solution in original post

4 Replies
_Val_
Admin
Admin

Nice!

0 Kudos
HeikoAnkenbrand
Champion Champion
Champion

Hi @Yael_G,

Nice!

Will this also be integrated in R80.20/R80.30 with a JHFA?

➜ CCSM Elite, CCME, CCTE
Yael_G
Employee
Employee
Hi Ruby, currently no.
0 Kudos
TheJP
Explorer

A large part of my day to day watching putty sessions iterate through API calls has just come to an end! What am I going to do now?

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events