8 years ago
Rest API and Powershell
So I have had pretty good luck converting the Python examples to Powershell.
The one thing I can not figure out how to do is return volume usage for a specific host.
Anyone got any example ...
Thank you for your quick response. I feel like I am close. I wrote code to return the device and datasource info. Here is a sample output:
id : 58
deviceId : 1
dataSourceId : 94
dataSourceName : WinVolumeUsage-
dataSourceDescription :
dataSourceDisplayName : Volume Usage
graphs :
overviewGraphs :
groupName : Disks
deviceName : c896-01
deviceDisplayName : volta-c896-01
monitoringInstanceNumber : 2
instanceNumber : 2
instanceAutoGroupEnabled : False
groupsDisabledThisSource :
status : 0
createdOn : 0
updatedOn : 1490145619
assignedOn : 1490145552
nextAutoDiscoveryOn : 1490231952
autoDiscovery : True
isMultiple : True
alertStatus : none
alertStatusPriority : 100000
sdtStatus : SDT-none-none
alertDisableStatus : none-none-none
stopMonitoring : False
alertingDisabledOn :
sdtAt : _hs-customer
dataSourceType : DS
From this I believe the
$resourcePath = '/device/devices/1/devicedatasources/94/instances/2/data' should be correct but I get an output of:
Status:1007
Response:
What am I missing?