Latest cohesity recover and resolve alerts api migration - #4
Merged
Conversation
- Switch alerts endpoint from /mcm/alerts to /v2/mcm/alerts - Switch recovery endpoint from v1 public/restore/recover to /v2/data-protect/recoveries - Add get_object_snapshots method for snapshot lookup via v2 API - Update request payload structure for v2 recovery format - Bump pack version to 1.1.8 Made-with: Cursor
- Fix field names to match actual API response (entity_id not entityId, clusterId from top-level not propertyList) - Replace snapshots API with /mcm/argus/api/v1/public/incidences API which provides latestCleanSnapshotId directly - Simplify restore command to only require alert_id - Gate debug logging behind demisto.is_debug using demisto.results - Suppress API error tracebacks with clean return_error messages - Update mapper, layout, and YML to match new field structure Made-with: Cursor
- Rewrite unit tests to match v2 API migration (new URLs, alert_id args, v2 response format) - Add test data for incidences API (get_incidence_details_resp.json) - Update alerts test data to v2 format (alertsList wrapper, entity_id/job_id keys) - Make alert_id required in YML for ignore and restore commands - Add marketplaces (xsoar, marketplacev2, platform) to CohesityHelios.yml - Fix redundant f-string concatenation - Bump pack version to 1.1.10 with release notes Co-authored-by: Cursor <cursoragent@cursor.com>
haribalaji-ravi
force-pushed
the
latest_api_migration
branch
from
May 5, 2026 08:57
c845cc7 to
329589f
Compare
haribalaji-ravi
commented
May 5, 2026
haribalaji-ravi
left a comment
Collaborator
Author
There was a problem hiding this comment.
Please review
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contributing to Cortex XSOAR Content
Make sure to register your contribution by filling the contribution registration form
The Pull Request will be reviewed only after the contribution registration form is filled.
Status
Related Issues
Description
Must have