To edit a vCenter server, use the following request:
PUT /settings/vcenter_servers/:vcenter_server_id.xml
PUT /settings/vcenter_servers/:vcenter_server_id.json
XML Request Example
curl -i -X PUT -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://onapp.test/settings/vcenter_servers/5.xml -d '<vcenter_server><label>new_label</label><login>new_login</login><password>new_password</password></vcenter_server>'
CODE
JSON Request Example
curl -i -X PUT -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://onapp.test/settings/vcenter_servers/4.json -d '{"vcenter_server": {"label": "updated_label", "login": "updated_login", "password": "updated_password"}}'
CODE
Where:
label - the label of the vCenter server
login - your vCenter login
password - your vCenter password