Develop > API calls > Update an existing infrastructure machine

Update an existing infrastructure machine

Updates an existing infrastructure machine.

URI Method Parameters Returns
http://[host]:[port] { "name": "Dev_Machine", "description": "An existing machine for Development purpose", "username": "vineet", "password": "password", "privateKey": "privateKey" } PUT

Name: Name of the XI Machine.
description: Description about the Machine.
username: user name of machine.
password: password of the machine.
private key = private key to log on to the machine.

200 - updated,

400 - bad request,

404 - not found

500 - Internal Server Error

Example

The following URL was sent:

https://localhost:8444/csa/api/codar/existing-infrastructure/e786177c-44c4-48f8-93cb-aa310fe4b1dd

The following JSON was returned:

{
"@self":"/csa/codar/xi/existing-infrastructure/e786177c-44c4-48f8-93cb-aa310fe4b1dd",
"@type":"urn:x-hp:2012:software:cloud:data_model:ExistingInfrastructureDetails",
"id":"e786177c-44c4-48f8-93cb-aa310fe4b1dd",
"name":"test",
"description":"An existing machine for Development purpose",
"displayName":"Dev_Machine",
"ipAddress":"",
"hostName":"dev.csacloud.local",
"username":"vineet",
"password":"********",
"privateKey":"privateKey",
"updatedBy":"admin",
"updatedOn":"2016-09-26T10:21:25.728Z"  
}