cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
577
Views
0
Helpful
2
Replies

Cisco IMC Supervisor (SetLabelAction)

abuzzi
Cisco Employee
Cisco Employee

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...

  • mark the server (SetLabelAction)
  • retrieve all the current LabelAction across all the different servers


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.

1 Accepted Solution

Accepted Solutions

abuzzi
Cisco Employee
Cisco Employee

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

View solution in original post

2 Replies 2

abuzzi
Cisco Employee
Cisco Employee

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

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