Update vCenter Template
To update vCenter template initial credentials, use the following request:
1
2
| PUT /vcenter/templates/template_id.xml
PUT /vcenter/templates/template_id.json
|
XML Request Example
1
| curl -i -X PUT http://onapp.test/vcenter/templates/105.xml -d '<vcenter_image_template><initial_password>password</initial_password><initial_username>root</initial_username></vcenter_image_template>' -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml'
|
JSON Request Example
1
| curl -i -X PUT http://onapp.test/vcenter/templates/105.json -d '{"vcenter_image_template": {"initial_password": "password", "initial_username": "root"}}' -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json'
|
Where:
initial_password - the password for vCenter templates set during the template creation
initial_username - the username for vCenter templates set during the template creation