Start a Conversation

Unsolved

B

7 Posts

1765

October 18th, 2019 01:00

Query DELL DSM via Rest API

Hi there, 

i try to get some data from the DSM for my two SCv3020.

So i found the Dell Storage Manager REST API Cookbook.

I got the script and got first data..

But when it tries to access the /StorageCenter/ScDiskFolderTier/[InstanceId]/StorageUsage

I get only "HTTP/1.1" 400"

How can i check if the script from dell is wrong?

25 Posts

October 18th, 2019 09:00

An HTTP service will send a 400 response if it thinks you have sent an invalid/incorrect/inappropriate. There is no way to tell from your code, what the actual arguments sent will be, or (more important) what the server expects you to send.

To diagnose this you will need to:

  • find out what your code is actually sending, and
  • find out what the server is expecting you to send.

The second may involve:

  • looking at the web page(s) that a normal user with a web browser uses to make the request,
  • looking at the body of the 400 response you are getting from the server,
  • looking at the server logs, and / or
  • looking at the server's web API documentation (or source code).

7 Posts

October 26th, 2019 02:00

I did get a step further, i was able to use postman to access the api.

The respone when i tried to access the

/api/rest/StorageCenter/ScDiskFolderTier/[InstanceID]/StorageUsage

was:

{
"result": "ParsingError - Block size should be greater than or equal to zero: -17.432.518.656",
"error": "Block size should be greater than or equal to zero: -17.432.518.656",
"errorDetail": "",
"errorCode": "ParsingError",
"localizedError": "Block size should be greater than or equal to zero: -17432518656"
}
 
Is this an Error from the Compellent?
No Events found!

Top