03-05-2018 04:59 AM
Hello,
I'd like to create a simple web page that allows users to mark standalone UCS-C under their name.
I installed & configured Cisco IMC Supervisor and I can access to it via postman.
I'm looking for two postman entries to...
I tried the following http post to call SetLabelAction but I receive "Invalid request format".
POST /cloupia/api-v2/SetLabelAction HTTP/1.1
Host: 10.58.48.253
X-Cloupia-Request-Key: 39522BD025D7488DA49961714A48F134
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache
Postman-Token: afe4a423-347c-4d3a-9e80-22605bcc24b0
{
"serverIdKey": "CIMC_10_58_48_211;10.58.48.211",
"setLabel": "test2"
}
Any help ?
Thx,
A.
Solved! Go to Solution.
03-05-2018 07:02 AM
Hello,
I've manage to set the Label through following HTTP request:
POST /cloupia/api-v2/SetLabelAction HTTP/1.1
Host: 10.58.48.253
X-Cloupia-Request-Key: 39522BD025D7488DA49961714A48F134
Content-Type: application/xml
Cache-Control: no-cache
Postman-Token: 985b1e4b-a655-4c1d-ba37-e1f2e604ea11
<cuicOperationRequest>
<operationType>SET_LABEL</operationType>
<payload>
<![CDATA[
<SetLabelServer>
<serverIdKey>CIMC_10_58_48_161;10.58.48.161</serverIdKey>
<setLabel>available2</setLabel>
</SetLabelServer>
]]>
</payload>
</cuicOperationRequest>
Thank you,
Andrea
03-05-2018 07:02 AM
Hello,
I've manage to set the Label through following HTTP request:
POST /cloupia/api-v2/SetLabelAction HTTP/1.1
Host: 10.58.48.253
X-Cloupia-Request-Key: 39522BD025D7488DA49961714A48F134
Content-Type: application/xml
Cache-Control: no-cache
Postman-Token: 985b1e4b-a655-4c1d-ba37-e1f2e604ea11
<cuicOperationRequest>
<operationType>SET_LABEL</operationType>
<payload>
<![CDATA[
<SetLabelServer>
<serverIdKey>CIMC_10_58_48_161;10.58.48.161</serverIdKey>
<setLabel>available2</setLabel>
</SetLabelServer>
]]>
</payload>
</cuicOperationRequest>
Thank you,
Andrea
03-05-2018 10:20 AM
Hi Andrea,
Glad we could help.
Seriously, I am glad you figured it out.... One note, you posted the UCS API question in the Support APIs forum. You would certainly have better luck (when you don't solve it yourself, of course) by going to the UCS Community at Unified Computing System (UCS).
Best,
Keith
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide