Hi Guys,
I have a 3par storage and I am trying to monitor it by HTTP.
To simplyfy, i will use two API.
How to get a HTTP token from API 1 item and use it in API 2 to collect some information about my storage ?
I have a 3par storage and I am trying to monitor it by HTTP.
To simplyfy, i will use two API.
- API 1: /api/v1/credentials
HTML Code:
{"key":"0-1474a9cd79710b419b1d0fe9e0be1ace-8871fc65"}
- API 2: /api/v1/credentials
HTML Code:
{"total":7,"members":[{"id":0,"uuid":"8518cb0e-6c7e-4bfc-bd70-731758789ea6","name":"SSD_r1","numFPVVs":0,"numTPV Vs":5,"numTDVVs":0,"UsrUsage":{"totalMiB":4751744, "rawTotalMiB":9503488,"usedMiB":4751744,"rawUsedMi B":9503488},"SAUsage":{"totalMiB":16384,"rawTotalM iB":49152,"usedMiB":6144,"rawUsedMiB":18432},"SDUs age":{"totalMiB":165504,"rawTotalMiB":331008,"used MiB":0,"rawUsedMiB":0},"privateSpaceMiB":{"base":4 751744,"rawBase":9503488,"snapshot":0,"rawSnapshot ":0},"sharedSpaceMiB":0,"rawSharedSpaceMiB":0,"fre eSpaceMiB":165504,"rawFreeSpaceMiB":331008,"totalS paceMiB":4917248,"rawTotalSpaceMiB":9834496,"SAGro wth":
.
.
.
How to get a HTTP token from API 1 item and use it in API 2 to collect some information about my storage ?
Comment