- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- adding generic data center object
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
adding generic data center object
i've been working on migrating a lot of our app groups from standard groups with host objects inside them to be generic data center objects. I've got a front end api written that our dev ops groups are adding to which looks in several json files, finds the right group in the right file, adds a new host IP to the group.
for the firewall groups that originated before we did the R81 upgrades im running a sync program to find the Checkpoint group, read the json contents, and add IP's where need.
I want to convert these traditional groups to gdc objects which is fine if i've imported it all etc ...
i'd like to have something do a search and see if it's imported and if not import it.
i thought the add-data-center-object would do it but i keep running into errors with key pairs or wrong content.
i know the name and uid of the generic data center file in Checkpoint. I can get the uid of the group i want to import. but so far it's a no go on usability.
has anyone had any success with this ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It would help if you could share an actual example of what you are trying to do. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i've got a Data Center object names group999
{
"objects" : [ {
"uid" : "64e16ac4-84c3-46b7-bd00-8d453b983c0b",
"name" : "group999",
"type" : "data-center-server",
"domain" : {
"uid" : "d0f9678c-e3dc-498e-be00-2238123af99d",
"name" : "IPv6-TestLab",
"domain-type" : "domain"
},
"icon" : "NetworkObjects/ExternalDataSource",
"color" : "black"
} ],
"from" : 1,
"to" : 1,
"total" : 1
}
in it i've got several groups present. my test case is to import group test_1
inside the json file on my web server the the test_1 group has uid
![](/skins/images/84DAB6BD358ECB13CE1094473F6E2961/responsive_peak/images/icon_anonymous_message.png)