Start a Conversation

Solved!

Go to Solution

1 Rookie

 • 

8 Posts

25

May 14th, 2024 06:53

Questions about using POST body in the PowerFlex API

I have questions about using the PowerFlex API and documentation notation.

1. Do the query parameters in the POST method actually mean the body of the request? (Link)
Looking at the example, it looks like what is labeled as a query parameter actually needs to be passed as JSON in the body to work.

Are they always labeled this way?

2. what is the format of the values that should be passed as a list of values? For example, for AddPeerMdm (link), the documentation shows the value `peerSystemIps` as a string, but I was wondering what value I should actually send in the body.

So I tried sending it like this

{
"peerSystemId": "e0d0e1234c12720f",
"peerSystemIps": [
"1.2.3.5",
"1.2.3.4"
],
"name": "peerMdmNameSample",
"port": "1234"
}

But I got this result.

{
"message": "Parameter peerSystemIps value format is invalid.",
"httpStatusCode": 400,
"errorCode": 0
}

I'm wondering how I should pass the parameters in this case, and if there is any documentation on the format of the REST API that I can refer to when generating the request.

Moderator

 • 

8.5K Posts

May 14th, 2024 13:05

Hi,

Thanks for your question.

This guide gives more information. https://dell.to/4bAbQJf It looks like your command is correct though. You may want to call phone support.

Let us know if you have any additional questions.

1 Rookie

 • 

8 Posts

16-05-2024 01:31 AM

@DELL-Josh Cr​ Thank you.

By the way, I have one more question.

What is the difference between the guide (https://dell.to/4bAbQJf) you pointed me to and the API documentation I attached (link)? Can I assume that this documentation corresponds exactly to the 4.5.x version of the API?

Moderator

 • 

8.5K Posts

16-05-2024 16:00 PM

Yes, that is the difference. 

Thanks,

Josh

Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!

#Iwork4Dell

No Events found!

Top