1 Rookie
•
8 Posts
0
47
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.
DELL-Josh Cr
Moderator
Moderator
•
8.7K Posts
0
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.