Skip to main content

Get working environments

Contributors netapp-ranuk

You can retrieve the on-premises working environment details such as the public identifier, name, and type of the working environment, the storage VM name, the cluster properties, and more. These details can be used in the input body field while executing other on-prem workflows.

HTTP method and endpoint

This REST API call uses the following method and endpoint.

HTTP method Path

GET

occm/api/onprem/working-environments

Curl example
curl --request GET \
--location "https://cloudmanager.cloud.netapp.com/occm/api/onprem/working-environments/<ONPREM_WORKING_ENV_ID>" \
--header "Content-Type: application/json" \
--header "x-agent-id: <AGENT_ID>"" \
--header "Authorization: Bearer <ACCESS_TOKEN>"
JSON output example

The JSON output example includes on-premises working environment details.

{
  "publicId": "OnPremWorkingEnvironment-xxxx",
  "tenantId": "Tenant-zzxx",
  "description": "",
  "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
}