Cohesity

App · 21 actions

Watch and run your Cohesity backups through Helios: list clusters and alerts, start, pause or cancel protection group runs, check policies, objects and snapshots, and follow recoveries.

Actions

ActionWhat it does
Back up protection group nowStart a backup of a protection group now, outside its schedule.
Cancel protection group runCancel a protection group run that is still going.
Cancel recoveryCancel a recovery that is still running.
Delete protection groupDelete a protection group.
Get protected objectGet one object and how it is protected.
Get protection groupGet one protection group: what it protects, its policy, whether it is paused and, if asked, its last run.
Get protection group runGet one run of a protection group with its status, times and counts of objects backed up and failed.
Get protection policyGet one protection policy with its backup schedule and retention.
Get recoveryGet one recovery with its status, times and messages.
List alertsList alerts from every cluster connected to Helios, filtered by state, severity and when they were raised.
List all protection runsList a summary of every protection group's runs on a cluster in a time range, filtered by status: a quick way to find failed backups.
List clustersList the Cohesity clusters connected to Helios, with each one's id, health, version and capacity.
List object snapshotsList the snapshots (restore points) of one object, optionally in a time range or from one protection group.
List protected objectsList the objects a cluster knows (VMs, servers, databases, mailboxes), optionally only protected ones.
List protection group runsList a protection group's runs, newest first, filtered by time, status and backup type.
List protection groupsList a cluster's protection groups (its backup jobs), filtered by the status of their last run or whether they are paused.
List protection policiesList a cluster's protection policies: the schedules and retention protection groups follow.
List protection sourcesList the sources registered on a cluster, such as vCenters, physical servers, NAS and Microsoft 365.
List recoveriesList a cluster's recoveries (restores), filtered by when they started and their status.
List storage domainsList a cluster's storage domains, optionally with how much each uses.
Set protection group statePause a protection group's schedule so no new runs start, or resume it.

Back up protection group now

Start a backup of a protection group now, outside its schedule. Use 'List protection group runs' to follow it.

Inputs

Clustercluster_idtextRequired
The Cohesity cluster. Pick one, or give its id from 'List clusters'.
Protection groupprotection_group_idtextRequired
The protection group. Pick one, or give its id from an earlier step.
Backup typerun_typetext
Incremental (default), full, log or system.One of: kRegular (Incremental), kFull (Full), kLog (Log), kSystem (System).

Outputs

protection_group_idtext
The protection group backed up
run_typetext
The kind of backup started
startedtrue/false
True once Cohesity has accepted the run
Example output
{
  "protection_group_id": "1234567890:1600000000000:42",
  "run_type": "kRegular",
  "started": true
}

Cancel protection group run

Cancel a protection group run that is still going.

Inputs

Clustercluster_idtextRequired
The Cohesity cluster. Pick one, or give its id from 'List clusters'.
Protection groupprotection_group_idtextRequired
The protection group. Pick one, or give its id from an earlier step.
Run IDrun_idtextRequired
The run's id, such as 42:1700000000000000, from 'List protection group runs'.

Outputs

canceledtrue/false
True once Cohesity accepted the cancel
resultslist
What Cohesity said for each run
run_idtext
The run canceled
Example output
{
  "canceled": true,
  "results": [
    {
      "runId": "42:1764500000000000"
    }
  ],
  "run_id": "42:1764500000000000"
}

Cancel recovery

Cancel a recovery that is still running.

Inputs

Clustercluster_idtextRequired
The Cohesity cluster. Pick one, or give its id from 'List clusters'.
Recovery IDrecovery_idtextRequired
The recovery's id, from 'List recoveries'.

Outputs

canceledtrue/false
True once Cohesity accepted the cancel
recovery_idtext
The recovery canceled
Example output
{
  "canceled": true,
  "recovery_id": "1234567890:1600000000000:99"
}

Delete protection group

Delete a protection group. Its snapshots are kept unless you choose to delete them too.

Inputs

Clustercluster_idtextRequired
The Cohesity cluster. Pick one, or give its id from 'List clusters'.
Protection groupprotection_group_idtextRequired
The protection group. Pick one, or give its id from an earlier step.
Delete its snapshotsdelete_snapshotstrue/false
Also delete every snapshot the group took. This can't be undone.

Outputs

deletedtrue/false
True once deleted
protection_group_idtext
The protection group deleted
snapshots_deletedtrue/false
Whether its snapshots were deleted too
Example output
{
  "deleted": true,
  "protection_group_id": "1234567890:1600000000000:42",
  "snapshots_deleted": false
}

Get protected object

Get one object and how it is protected.

Inputs

Clustercluster_idtextRequired
The Cohesity cluster. Pick one, or give its id from 'List clusters'.
Object IDobject_idnumberRequired
The object's id, a number from 'List protected objects'.At least 0.
Include last runinclude_last_run_infotrue/false
Also return the details of the last run.

Outputs

objectobject
An object Cohesity can protect (a VM, server, database, mailbox...)
Example output
{
  "object": {
    "environment": "kPhysical",
    "id": 1001,
    "logicalSizeBytes": 500000000000,
    "name": "sql-01",
    "objectType": "kHost",
    "protectionType": "kFile",
    "sourceId": 1000,
    "sourceName": "Physical servers"
  }
}

Get protection group

Get one protection group: what it protects, its policy, whether it is paused and, if asked, its last run.

Inputs

Clustercluster_idtextRequired
The Cohesity cluster. Pick one, or give its id from 'List clusters'.
Protection groupprotection_group_idtextRequired
The protection group. Pick one, or give its id from an earlier step.
Include last runinclude_last_run_infotrue/false
Also return the details of the last run.

Outputs

protection_groupobject
A protection group
Example output
{
  "protection_group": {
    "description": "Nightly backup of the SQL servers",
    "environment": "kPhysical",
    "id": "1234567890:1600000000000:42",
    "isActive": true,
    "isDeleted": false,
    "isPaused": false,
    "lastRun": {
      "environment": "kPhysical",
      "id": "42:1764500000000000",
      "isReplicationRun": false,
      "localBackupInfo": {
        "endTimeUsecs": 1764500900000000,
        "failedObjectsCount": 0,
        "messages": [],
        "runType": "kRegular",
        "startTimeUsecs": 1764500000000000,
        "status": "Succeeded",
        "successfulObjectsCount": 12
      },
      "protectionGroupId": "1234567890:1600000000000:42",
      "protectionGroupName": "SQL servers"
    },
    "name": "SQL servers",
    "numProtectedObjects": 12,
    "policyId": "1234567890:1600000000000:7",
    "priority": "kMedium",
    "storageDomainId": 5
  }
}

Get protection group run

Get one run of a protection group with its status, times and counts of objects backed up and failed.

Inputs

Clustercluster_idtextRequired
The Cohesity cluster. Pick one, or give its id from 'List clusters'.
Protection groupprotection_group_idtextRequired
The protection group. Pick one, or give its id from an earlier step.
Run IDrun_idtextRequired
The run's id, such as 42:1700000000000000, from 'List protection group runs'.
Include each objectinclude_object_detailstrue/false
Also return the result for each object in the run.

Outputs

runobject
A protection group run
Example output
{
  "run": {
    "environment": "kPhysical",
    "id": "42:1764500000000000",
    "isReplicationRun": false,
    "localBackupInfo": {
      "endTimeUsecs": 1764500900000000,
      "failedObjectsCount": 0,
      "messages": [],
      "runType": "kRegular",
      "startTimeUsecs": 1764500000000000,
      "status": "Succeeded",
      "successfulObjectsCount": 12
    },
    "protectionGroupId": "1234567890:1600000000000:42",
    "protectionGroupName": "SQL servers"
  }
}

Get protection policy

Get one protection policy with its backup schedule and retention.

Inputs

Clustercluster_idtextRequired
The Cohesity cluster. Pick one, or give its id from 'List clusters'.
Policypolicy_idtextRequired
The protection policy. Pick one, or give its id.

Outputs

policyobject
A protection policy
Example output
{
  "policy": {
    "backupPolicy": {},
    "description": "Daily, kept 30 days",
    "id": "1234567890:1600000000000:7",
    "isReplicated": false,
    "name": "Gold",
    "numProtectedObjects": 40,
    "numProtectionGroups": 3
  }
}

Get recovery

Get one recovery with its status, times and messages.

Inputs

Clustercluster_idtextRequired
The Cohesity cluster. Pick one, or give its id from 'List clusters'.
Recovery IDrecovery_idtextRequired
The recovery's id, from 'List recoveries'.

Outputs

recoveryobject
A recovery (restore)
Example output
{
  "recovery": {
    "endTimeUsecs": 1764500600000000,
    "id": "1234567890:1600000000000:99",
    "messages": [],
    "name": "Recover sql-01 files",
    "recoveryAction": "RecoverFiles",
    "snapshotEnvironment": "kPhysical",
    "startTimeUsecs": 1764500000000000,
    "status": "Succeeded"
  }
}

List alerts

List alerts from every cluster connected to Helios, filtered by state, severity and when they were raised.

Inputs

Statestateslist
Only alerts in one of these states.One or more of: kOpen (Open), kResolved (Resolved), kNote (Note), kSuppressed (Suppressed).
Severityseveritieslist
Only alerts of one of these severities.One or more of: kCritical (Critical), kWarning (Warning), kInfo (Info).
Raised afterstart_timedate and time
Only alerts raised after this time.
Raised beforeend_timedate and time
Only alerts raised before this time.
Most alertsmax_alertsnumber
The most alerts to return, 1 to 1000.From 1 to 1000.

Outputs

alertslist
The alerts
countnumber
How many were returned
Example output
{
  "alerts": [
    {
      "alertCategory": "kBackupRestore",
      "alertCode": "CE00610007",
      "alertDocument": {
        "alertCause": "The source could not be reached.",
        "alertDescription": "Backup of protection group 'SQL servers' failed.",
        "alertHelpText": "Check the source's network connection.",
        "alertName": "ProtectionGroupFailed"
      },
      "alertState": "kOpen",
      "clusterName": "dc1-cohesity",
      "firstTimestampUsecs": 1764500000000000,
      "id": "1234567890:1700000000000:5",
      "latestTimestampUsecs": 1764500000000000,
      "severity": "kCritical"
    }
  ],
  "count": 1
}

List all protection runs

List a summary of every protection group's runs on a cluster in a time range, filtered by status: a quick way to find failed backups.

Inputs

Clustercluster_idtextRequired
The Cohesity cluster. Pick one, or give its id from 'List clusters'.
Started afterstart_timedate and time
Only runs that started after this time.
Started beforeend_timedate and time
Only runs that started before this time.
Statusstatuseslist
Only runs with one of these statuses. Leave empty for all.One or more of: Accepted, Running, Succeeded, SucceededWithWarning (Succeeded with warning), Failed, Canceled, Canceling, Missed, Skipped, OnHold (On hold), Finalizing, Paused.

Outputs

countnumber
How many were returned
runslist
The runs
Example output
{
  "count": 1,
  "runs": [
    {
      "bytesWritten": 2000000000,
      "endTimeUsecs": 1764500900000000,
      "environment": "kPhysical",
      "id": "42:1764500000000000",
      "isFullRun": false,
      "isSlaViolated": false,
      "protectionGroupId": "1234567890:1600000000000:42",
      "protectionGroupName": "SQL servers",
      "startTimeUsecs": 1764500000000000,
      "status": "Succeeded",
      "successObjectsCount": 12,
      "totalObjectsCount": 12
    }
  ]
}

List clusters

List the Cohesity clusters connected to Helios, with each one's id, health, version and capacity.

Inputs

None.

Outputs

clusterslist
The clusters
countnumber
How many were returned
Example output
{
  "clusters": [
    {
      "clusterId": 1234567890,
      "clusterName": "dc1-cohesity",
      "currentVersion": "7.1.2",
      "health": "NonCritical",
      "isConnectedToHelios": true,
      "numberOfNodes": 4,
      "totalCapacity": 100000000000000,
      "usedCapacity": 42000000000000
    }
  ],
  "count": 1
}

List object snapshots

List the snapshots (restore points) of one object, optionally in a time range or from one protection group.

Inputs

Clustercluster_idtextRequired
The Cohesity cluster. Pick one, or give its id from 'List clusters'.
Object IDobject_idnumberRequired
The object's id, a number from 'List protected objects'.At least 0.
Taken afterfrom_timedate and time
Only snapshots taken after this time.
Taken beforeto_timedate and time
Only snapshots taken before this time.
Protection groupprotection_group_idtext
Only snapshots taken by this protection group.

Outputs

countnumber
How many were returned
snapshotslist
The snapshots
Example output
{
  "count": 1,
  "snapshots": [
    {
      "expiryTimeUsecs": 1767100000000000,
      "hasDataLock": false,
      "id": "snap-1001-1764500000000000",
      "objectId": 1001,
      "objectName": "sql-01",
      "protectionGroupId": "1234567890:1600000000000:42",
      "protectionGroupName": "SQL servers",
      "protectionGroupRunId": "42:1764500000000000",
      "runType": "kRegular",
      "snapshotTargetType": "Local",
      "snapshotTimestampUsecs": 1764500000000000
    }
  ]
}

List protected objects

List the objects a cluster knows (VMs, servers, databases, mailboxes), optionally only protected ones. Gets one page; to see more, run it again with the next cookie it gives.

Inputs

Clustercluster_idtextRequired
The Cohesity cluster. Pick one, or give its id from 'List clusters'.
Protected onlyonly_protected_objectstrue/false
On for only objects that are protected.
Include last runinclude_last_run_infotrue/false
Also return the details of the last run.
Page sizemax_countnumber
How many objects to return, 1 to 1000.From 1 to 1000.
Next page cookiecookietext
The 'next_cookie' from an earlier page.

Outputs

countnumber
How many were returned
next_cookietext
Pass as the next page cookie for more; empty on the last page
objectslist
The objects
Example output
{
  "count": 1,
  "next_cookie": "",
  "objects": [
    {
      "environment": "kPhysical",
      "id": 1001,
      "logicalSizeBytes": 500000000000,
      "name": "sql-01",
      "objectType": "kHost",
      "protectionType": "kFile",
      "sourceId": 1000,
      "sourceName": "Physical servers"
    }
  ]
}

List protection group runs

List a protection group's runs, newest first, filtered by time, status and backup type.

Inputs

Clustercluster_idtextRequired
The Cohesity cluster. Pick one, or give its id from 'List clusters'.
Protection groupprotection_group_idtextRequired
The protection group. Pick one, or give its id from an earlier step.
Started afterstart_timedate and time
Only runs that started after this time.
Started beforeend_timedate and time
Only runs that started before this time.
Statusstatuseslist
Only runs with one of these statuses. Leave empty for all.One or more of: Accepted, Running, Succeeded, SucceededWithWarning (Succeeded with warning), Failed, Canceled, Canceling, Missed, Skipped, OnHold (On hold), Finalizing, Paused.
Backup typerun_typeslist
Only runs of these types.One or more of: kRegular (Incremental), kFull (Full), kLog (Log), kSystem (System).
Most runsnum_runsnumber
The most runs to return, 1 to 1000. Cohesity's default is 100.From 1 to 1000.
Include each objectinclude_object_detailstrue/false
Also return the result for each object in the run.

Outputs

countnumber
How many were returned
runslist
The runs
total_runsnumber
How many runs match in all
Example output
{
  "count": 1,
  "runs": [
    {
      "environment": "kPhysical",
      "id": "42:1764500000000000",
      "isReplicationRun": false,
      "localBackupInfo": {
        "endTimeUsecs": 1764500900000000,
        "failedObjectsCount": 0,
        "messages": [],
        "runType": "kRegular",
        "startTimeUsecs": 1764500000000000,
        "status": "Succeeded",
        "successfulObjectsCount": 12
      },
      "protectionGroupId": "1234567890:1600000000000:42",
      "protectionGroupName": "SQL servers"
    }
  ],
  "total_runs": 1
}

List protection groups

List a cluster's protection groups (its backup jobs), filtered by the status of their last run or whether they are paused. Gets one page; to see more, run it again with the next page cookie it gives.

Inputs

Clustercluster_idtextRequired
The Cohesity cluster. Pick one, or give its id from 'List clusters'.
Last run statuslast_run_statuslist
Only groups whose last run ended in one of these.One or more of: Succeeded, SucceededWithWarning (Succeeded with warning), Failed, Running, Canceled, Canceling, Missed.
Paused onlyis_pausedtrue/false
On for only paused groups. Leave off for all.
Active onlyis_activetrue/false
On for only groups active on this cluster (not replicas).
Include last runinclude_last_run_infotrue/false
Also return the details of the last run.
Page sizemax_result_countnumber
How many groups to return, 1 to 1000.From 1 to 1000.
Next page cookiepagination_cookietext
The 'next_pagination_cookie' from an earlier page.

Outputs

countnumber
How many were returned
next_pagination_cookietext
Pass as the next page cookie for more; empty on the last page
protection_groupslist
The protection groups
Example output
{
  "count": 1,
  "next_pagination_cookie": "",
  "protection_groups": [
    {
      "description": "Nightly backup of the SQL servers",
      "environment": "kPhysical",
      "id": "1234567890:1600000000000:42",
      "isActive": true,
      "isDeleted": false,
      "isPaused": false,
      "lastRun": {
        "environment": "kPhysical",
        "id": "42:1764500000000000",
        "isReplicationRun": false,
        "localBackupInfo": {
          "endTimeUsecs": 1764500900000000,
          "failedObjectsCount": 0,
          "messages": [],
          "runType": "kRegular",
          "startTimeUsecs": 1764500000000000,
          "status": "Succeeded",
          "successfulObjectsCount": 12
        },
        "protectionGroupId": "1234567890:1600000000000:42",
        "protectionGroupName": "SQL servers"
      },
      "name": "SQL servers",
      "numProtectedObjects": 12,
      "policyId": "1234567890:1600000000000:7",
      "priority": "kMedium",
      "storageDomainId": 5
    }
  ]
}

List protection policies

List a cluster's protection policies: the schedules and retention protection groups follow.

Inputs

Clustercluster_idtextRequired
The Cohesity cluster. Pick one, or give its id from 'List clusters'.
Include usage figuresinclude_statstrue/false
Also return how much each is used.

Outputs

countnumber
How many were returned
policieslist
The policies
Example output
{
  "count": 1,
  "policies": [
    {
      "backupPolicy": {},
      "description": "Daily, kept 30 days",
      "id": "1234567890:1600000000000:7",
      "isReplicated": false,
      "name": "Gold",
      "numProtectedObjects": 40,
      "numProtectionGroups": 3
    }
  ]
}

List protection sources

List the sources registered on a cluster, such as vCenters, physical servers, NAS and Microsoft 365.

Inputs

Clustercluster_idtextRequired
The Cohesity cluster. Pick one, or give its id from 'List clusters'.

Outputs

countnumber
How many were returned
sourceslist
The sources
Example output
{
  "count": 1,
  "sources": [
    {
      "environment": "kVMware",
      "id": 1000,
      "name": "vcenter.example.com",
      "objectType": "kVCenter",
      "registrationId": 1000
    }
  ]
}

List recoveries

List a cluster's recoveries (restores), filtered by when they started and their status.

Inputs

Clustercluster_idtextRequired
The Cohesity cluster. Pick one, or give its id from 'List clusters'.
Started afterstart_timedate and time
Only recoveries that started after this time.
Started beforeend_timedate and time
Only recoveries that started before this time.
Statusstatuseslist
Only recoveries with one of these statuses.One or more of: Accepted, Running, Succeeded, SucceededWithWarning (Succeeded with warning), Failed, Canceled, Canceling, Missed, Skipped, OnHold (On hold), Finalizing.

Outputs

countnumber
How many were returned
recoverieslist
The recoveries
Example output
{
  "count": 1,
  "recoveries": [
    {
      "endTimeUsecs": 1764500600000000,
      "id": "1234567890:1600000000000:99",
      "messages": [],
      "name": "Recover sql-01 files",
      "recoveryAction": "RecoverFiles",
      "snapshotEnvironment": "kPhysical",
      "startTimeUsecs": 1764500000000000,
      "status": "Succeeded"
    }
  ]
}

List storage domains

List a cluster's storage domains, optionally with how much each uses.

Inputs

Clustercluster_idtextRequired
The Cohesity cluster. Pick one, or give its id from 'List clusters'.
Include usage figuresinclude_statstrue/false
Also return how much each is used.

Outputs

countnumber
How many were returned
storage_domainslist
The storage domains
Example output
{
  "count": 1,
  "storage_domains": [
    {
      "clusterPartitionName": "primary",
      "id": 5,
      "name": "DefaultStorageDomain",
      "removalState": "DontRemove",
      "s3BucketsEnabled": false
    }
  ]
}

Set protection group state

Pause a protection group's schedule so no new runs start, or resume it. A run already going carries on.

Inputs

Clustercluster_idtextRequired
The Cohesity cluster. Pick one, or give its id from 'List clusters'.
Protection groupprotection_group_idtextRequired
The protection group. Pick one, or give its id from an earlier step.
StatestatetextRequired
Paused, or running on its schedule.One of: kPause (Paused), kResume (Running on schedule).

Outputs

pausedtrue/false
Whether it is now paused
protection_group_idtext
The protection group changed
successful_idslist
The groups Cohesity changed
Example output
{
  "paused": true,
  "protection_group_id": "1234567890:1600000000000:42",
  "successful_ids": [
    "1234567890:1600000000000:42"
  ]
}

On this page