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 Variable | Description |
---|---|
cluster | Cluster ENDPOINT IP or FQDN |
clusterPassword | Cluster Username |
clusterUser | Cluster Password |
There are other environment variables that will be set when you make API calls, like
token
when you run theGenerate Access Token
API call. Thistoken
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 forenvironment.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
-
OnPrem-ProtectionJob - Generate Access Token POST https://{{cluster}}/irisservices/api/v1/public/accessTokens
-
OnPrem-ProtectionJob - Register vCenter POST https://{{cluster}}/irisservices/api/v1/public/protectionSources/register
-
OnPrem-ProtectionJob - Get Protection Sources GET https://{{cluster}}/irisservices/api/v1/public/protectionSources/rootNodes?environments=kVMware
-
OnPrem-ProtectionJob - Select a VirtualMachine GET https://{{cluster}}/irisservices/api/v1/public/protectionSources/virtualMachines?vCenterId={{sourceIdRegistered}}
-
OnPrem-ProtectionJob - Get Protection Policy GET https://{{cluster}}/irisservices/api/v1/public/protectionPolicies
-
OnPrem-ProtectionJob - Create a Protection Job POST https://{{cluster}}/irisservices/api/v1/public/protectionJobs
-
OnPrem-ProtectionJob - Delete the Protection Job DELETE https://{{cluster}}/irisservices/api/v1/public/protectionJobs/{{protectionJobId}}
-
OnPrem-ProtectionJob - Unregister vCenter DELETE https://{{cluster}}/irisservices/api/v1/public/protectionSources/{{sourceIdRegistered}}
-
Cohesity-Cluster-GFLAGs - Generate Access Token POST https://{{cluster}}/irisservices/api/v1/public/accessTokens
-
Cohesity-Cluster-GFLAGs - List GFLAGs GET https://{{cluster}}/irisservices/api/v1/clusters/gflag