- Open a SSH session to the SDDC Manager VM, and switch to the root user
su -
- Using the command below, get SDDC Manager id.
curl http://localhost/inventory/sddcmanagercontrollers | json_pp
[
{
"id" : "71b43367-7df2-42a1-859b-e7faf8e1893a",
"hostName" : "sddc-manager.rainpole.local",
"managementIpAddress" : "172.19.20.5",
"ceipStatus" : "DISABLED",
"vmName" : "sddc-manager",
"status" : "ACTIVE",
"version" : "3.9.0.0-14610092",
"privateIpAddress" : "172.19.20.5",
"domainId" : "22c2d8e3-a2f5-469e-9ca6-f796736db9f0"
}
]
- Copy json output to a file and and update vmName attribute as appropriate.
cat test.json
{"domainId":"22c2d8e3-a2f5-469e-9ca6-f796736db9f0","vmName":"sddc-manger-new-name","ceipStatus":"DISABLED","id":"71b43367-7df2-42a1-859b-e7faf8e1893a","status":"ACTIVE","version":"3.9.0.0-14610092","hostName":"sddc-manager.rainpole.local","privateIpAddress":"172.19.20.5","managementIpAddress":"172.19.20.5"}
- Execute the below API command to update entity.
curl -X PUT -H 'Content-Type:application/json' -H 'Accept:application/json' -d @test.json http://localhost/inventory/sddcmanagercontrollers/<sddc-manager-id>
- Verify that the vmName is now reflected with the updated entry.
curl http://localhost/inventory/sddcmanagercontrollers | json_pp