Get aggregates
You can retrieve a list of available disk aggregates.
1. Select the working environment to use
Perform the workflow Get working environments and choose the publicId
value of the working environment for the workingEnvironmentId
path parameter.
2. Get a list of aggregates
HTTP method | Path |
---|---|
GET |
/occm/api/onprem/aggregates/{workingEnvironmentId} |
- curl example
curl --location --request GET 'https://cloudmanager.cloud.netapp.com/occm/api/onprem/aggregates?workingEnvironmentId=<ONPREM_WORKING_ENV_ID>' --header 'Content-Type: application/json' --header 'x-agent-id: <AGENT_ID>' --header 'Authorization: Bearer <ACCESS_TOKEN>'
- Input
-
Path parameter <WORKING_ENV_ID>
(workingEnvironmentId)
- Output
-
An array of aggregates for the indicated working environment is returned as shown in the JSON output example.
- JSON output example
[
{
"name": "aggr2",
"totalCapacity": {
"size": 47xxxxxx,
"unit": "Byte"
},
"availableCapacity": {
"size": 4754xxxxxxxxx,
"unit": "Byte"
},
"state": "online",
"isInactiveDataReportingEnabled": false,
"isObjectStoreAttachEligible": true,
"objectStoreName": null,
"usedCapacity": {
"size": 1166xxxx,
"unit": "Byte"
},
"tieringRestriction": null,
"availabilityState": null
},
{
"name": "aggr1",
"totalCapacity": {
"size": 47560xxxxx,
"unit": "Byte"
},
"availableCapacity": {
"size": 474521083904,
"unit": "Byte"
},
"state": "online",
"isInactiveDataReportingEnabled": false,
"isObjectStoreAttachEligible": false,
"objectStoreName": "StorageAccount",
"usedCapacity": {
"size": 1086xxxxxx,
"unit": "Byte"
},
"tieringRestriction": null,
"availabilityState": "available"
}
]