- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- Re: cluster status
- 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
cluster status
How can I retrieve the cluster and members status via the REST API?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please see:
https://sc1.checkpoint.com/documents/latest/GaiaAPIs/#web/show-cluster-state~v1.7%20
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks,
Is there an option to get this information with the Management API?
If I have multiple clusters then with the giga api I have to "login" and query each one separately with its own ip address.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There's /run-script, which you could use to run a management-side script to get the cluster status via CPRID. The API endpoint has been present since APIv1.0, but the arguments it expects have changed over time, so check the documentation for your management version.
There's also /gaia-api, which lets you run GAiA API commands through the management. It was added in APIv1.7 (R81).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks,
I am trying to use the /web_api/gaia-api/v1.7/show-cluster-state but I do not know what should I put as the target parameter. If I use the clusters uid I get the following error:
do I need add roles to access the cluster?
1 with uid 42540f48-92e9-4f59-b479-42f59c2315cb (cluster-member) with status ok
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The cluster as a whole doesn't have an OS, it has several (one per member). It doesn't know which one you want the OS information from.
Try with one of the members' IDs. I haven't actually used that API call, so I'm not sure how it works.
