Develop > API calls > Create an existing infrastructure machine

Create an existing infrastructure machine

Creates an existing infrastructure machine.

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

Name: Name of the XI Machine.
description: Description about the Machine.
ipAddress: ipAddress/hostname username: user name of the 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/85b86661-5f3b-4abd-9dd1-7b861919b94b",
 "@type":"urn:x-hp:2012:software:cloud:data_model:ExistingInfrastructureDetails", 
"id":"85b86661-5f3b-4abd-9dd1-7b861919b94b", 
 "name":"Dev_Machine",
"description":"An existing machine for Development purpose",  
"displayName":"Dev_Machine",
"ipAddress":"10.0.0.1",
"hostName":"",
"username":"vineet",
"password":"********",
"privateKey":"privateKey",
"createdBy":"admin",
"createdOn":"2016-09-26T10:18:58.819Z"
"count": "0"  
}