Skip to main content

Discover working environments

Contributors netapp-ranuk

You can discover the on-premises ONTAP clusters and add them to a working environment using the cluster name as the working environment name.

1. Discover the working environments

HTTP method Path

GET

/occm/api/onprem/working-environments

curl example
curl --location --request GET 'https://cloudmanager.cloud.netapp.com/occm/api/onprem/working-environments' --header 'Content-Type: application/json' --header 'x-agent-id: <AGENT_ID>' --header 'Authorization: Bearer <ACCESS_TOKEN>'
Input body example
{
  "clusterPassword": "password",
  "description": "Onprem Working Environment",
  "clusterUserName": "admin",
  "name": "onpremwe",
  "location": "ON_PREM",
  "clusterAddress": "10.xxx.0.40",
  "tenantId": "workspaceUsXAxxxxxx"
}
JSON output example
{
  "publicId": "OnPremWorkingEnvironment-i7by5xxx",
  "tenantId": "Tenant-dfxx5",
  "description": "Onprem Working Environment",
  "name": "onpremwe",
  "discoverUserEmail": "user_Email@domain.com",
  "location": "ON_PREM",
  "reservedSize": null,
  "status": null,
  "interClusterLifs": null,
  "cronJobSchedules": null,
  "svms": null,
  "snapshotPolicies": null,
  "replicationProperties": null,
  "clusterProperties": null,
  "ontapClusterProperties": null,
  "workingEnvironmentType": "ON_PREM",
  "cloudSyncProperties": null,
  "actionsRequired": null,
  "capacityFeatures": null,
  "aff": false,
  "cbsProperties": null,
  "complianceProperties": null,
  "monitoringProperties": null
}