Skip to content

Latest cohesity recover and resolve alerts api migration - #4

Merged
haribalaji-ravi merged 4 commits into
masterfrom
latest_api_migration
May 6, 2026
Merged

Latest cohesity recover and resolve alerts api migration#4
haribalaji-ravi merged 4 commits into
masterfrom
latest_api_migration

Conversation

@haribalaji-ravi

@haribalaji-ravi haribalaji-ravi commented May 5, 2026

Copy link
Copy Markdown
Collaborator

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

  • In Progress
  • Ready
  • In Hold - (Reason for hold)

Related Issues

Description

Must have

  • Tests
  • Documentation

haribalaji-ravi and others added 4 commits April 15, 2026 07:12
- 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
haribalaji-ravi force-pushed the latest_api_migration branch from c845cc7 to 329589f Compare May 5, 2026 08:57

@haribalaji-ravi haribalaji-ravi left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review

@haribalaji-ravi
haribalaji-ravi merged commit e9ce3f1 into master May 6, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant