Cohesity Community

Number of APIs: 12

Introduction

This is community driven API collection/usecases. We encourage anyone using Cohesity APIs with Qodex to contribute back the collection.

Environment Variables

  • Choose the Community Qodex Environment for this collection. You need to set the following variables.
Environment VariableDescription
clusterCluster ENDPOINT IP or FQDN
clusterPasswordCluster Username
clusterUserCluster Password
  • There are other environment variables that will be set when you make API calls, like token when you run the Generate Access Token API call. This token is then referred by other APIs for Authentication.

  • In order to use these APIs, you need to call these in sequence so that the variables set by a previous API call can be used later.

  • If you want to run a particular API, you will have to set the required variables before hand under Community Qodex Environment

NOTE: To find out what environment variable is being set in Qodex, check the Test tab and look for environment.set("VARIABLE_NAME", VALUE) in the code.

Feedback

If you want to see more collections/use-cases reach out to us at cohesity-api-sdks@cohesity.com

  1. OnPrem-ProtectionJob - Generate Access Token POST https://{{cluster}}/irisservices/api/v1/public/accessTokens

  2. OnPrem-ProtectionJob - Register vCenter POST https://{{cluster}}/irisservices/api/v1/public/protectionSources/register

  3. OnPrem-ProtectionJob - Get Protection Sources GET https://{{cluster}}/irisservices/api/v1/public/protectionSources/rootNodes?environments=kVMware

  4. OnPrem-ProtectionJob - Select a VirtualMachine GET https://{{cluster}}/irisservices/api/v1/public/protectionSources/virtualMachines?vCenterId={{sourceIdRegistered}}

  5. OnPrem-ProtectionJob - Get Protection Policy GET https://{{cluster}}/irisservices/api/v1/public/protectionPolicies

  6. OnPrem-ProtectionJob - Create a Protection Job POST https://{{cluster}}/irisservices/api/v1/public/protectionJobs

  7. OnPrem-ProtectionJob - Delete the Protection Job DELETE https://{{cluster}}/irisservices/api/v1/public/protectionJobs/{{protectionJobId}}

  8. OnPrem-ProtectionJob - Unregister vCenter DELETE https://{{cluster}}/irisservices/api/v1/public/protectionSources/{{sourceIdRegistered}}

  9. Cohesity-Cluster-GFLAGs - Generate Access Token POST https://{{cluster}}/irisservices/api/v1/public/accessTokens

  10. Cohesity-Cluster-GFLAGs - List GFLAGs GET https://{{cluster}}/irisservices/api/v1/clusters/gflag