Page tree
Skip to end of metadata
Go to start of metadata

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

PUT /virtual_machines/:virtual_machine_id.xml
PUT /virtual_machines/:virtual_machine_id.json 

or

PUT /virtual_machines/:virtual_machine_id/admin_note.xml
PUT /virtual_machines/:virtual_machine_id/admin_note.json

Add/Edit Admin Note XML Request example

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

or

curl -i -X PUT -u user:userpass http://onapp.test/virtual_machines/:virtual_machine_id/admin_note.xml -d '<virtual_machine><admin_note>agfagwe tiuuytjgh yuytu</admin_note></virtual_machine>' -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/virtual_machines/:virtual_machine_id.json -d '{"virtual_machine":{"admin_note":"kjfjhjtrtjt"}}' -H 'Accept:application/json' -H 'Content-type:application/json'

or

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

Where:

admin_note – enter the text of your note.

 

Add/Edit User Note

To edit/make a user note, use the following request:

PUT /virtual_machines/:virtual_machine_id.xml
PUT /virtual_machines/:virtual_machine_id.json

or

PUT /virtual_machines/:virtual_machine_id/note.xml
PUT /virtual_machines/:virtual_machine_id/note.json

XML Request example

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

or

 curl -i -X PUT -u user:userpass http://onapp.test/virtual_machines/:virtual_machine_id/note.xml -d '<virtual_machine><note>agfagwe tiuuytjgh yuytu</note></virtual_machine>' -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/virtual_machines/:virtual_machine_id.json -d '{"virtual_machine":{"note":"kjfjhjtrtjt"}}' -H 'Accept:application/json' -H 'Content-type:application/json'

or

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

 

Where:

note – enter the text of your note.

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

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