Child pages
  • Add/Edit Admin/User Note for Baremetal Server
Skip to end of metadata
Go to start of metadata

To edit/make an admin note, use the following request:

PUT /baremetal_servers/:baremetal_server_id.xml
PUT /baremetal_servers/:baremetal_server_id.json


Add/Edit Admin Note XML Request example

curl -i -X PUT -u user:userpass http://onapp.test/baremetal_servers/:baremetal_server_id.xml -d '<baremetal_server><admin_note>agfagwe tiuuytjgh yuytu</admin_note></baremetal_server>' -H 'Accept:application/xml' -H 'Content-type:application/xml' 

Add/Edit Admin Note JSON Request example

curl -i -X PUT -u user:userpass http://onapp.test/baremetal_servers/:baremetal_server_id.json -d '{"baremetal_server":{"admin_note":"kjfjhjtrtjt"}}' -H 'Accept:application/json' -H 'Content-type:application/json'

Where:

admin_note – enter the text of your note.

baremetal_server_id - the ID of the baremetal server for which you add/edit a note.

 

Add/Edit User Note XML Request example

curl -i -X PUT -u user:userpass http://onapp.test/baremetal_servers/:baremetal_server_id.xml -d '<baremetal_server><note>agfagwe tiuuytjgh yuytu</note></baremetal_server>' -H 'Accept:application/xml' -H 'Content-type:application/xml' 

Add/Edit User Note JSON Request example

curl -i -X PUT -u user:userpass http://onapp.test/baremetal_servers/:baremetal_server_id.json -d '{"baremetal_server":{"note":"kjfjhjtrtjt"}}' -H 'Accept:application/json' -H 'Content-type:application/json'

Where:

note – enter the text of your note.

baremetal_server_id - the ID of the baremetal server for which you add/edit a note.

Returns HTTP 204 response on successful processing, and HTTP 404 when there is no baremetal server with a requested ID, or URL is incorrect.

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels