Develop > API calls > Create an existing infrastructure resource pool

Create an existing infrastructure resource pool

Creates an existing infrastructure resource pool.

URI Method Parameters Returns
http://[host]:[port] { "name": "RESOURCE POOL", "iconUrl": "/csa/api/blobstore/lifecycle_stage_development.png?tag=library", "description": "Resource pool for dev Machines" , "isShared": "false" , "xiMachineDetails" : [{ "xiMachineId" : "7c890d46-ff32-4403-be3b-7d3f2b2b4288"}, { "xiMachineId" : "523ea7b2-a608-48f9-b6f9-19f443825045"}] } POST

name: Name of the XI resource pool.
IconUrl=Image path of XI Resource Pool.
description: Description about resource pool.
isShared= Is the Pool associated or disassociated?
xiMachineDetails= Json contains the list of machines for XI Resource pool creation.

Note: name, IsShared, and MachineDetails are mandatory fields.

200 - updated,

400 - bad request,

404 - not found

 

Example

The following URL was sent:

https://localhost:8444/csa/api/codar/existing-infrastructure/resource-pool/createResourcePool

The following JSON was returned:

{
"@self": "/csa/codar/xi/existing-infrastructure-resource-pool/6ec27dab-09a5-4513-81a2-2b9d36ee7f5f",
"@type": "urn:x-hp:2012:software:cloud:data_model:ExistingInfrastructureResourcePool",
"name": "RESOURCE POOL",
"description": "Resource pool for dev Machines",
"isShared": true,
"createdBy": "admin",
"createdOn": "2016-09-21T10:40:35.981Z",
"iconUrl": "/csa/api/blobstore/lifecycle_stage_development.png?tag=library",
"xiMachinesDetails": [
{
"@self": "/csa/codar/xi/existing-infrastructure/7c890d46-ff32-4403-be3b-7d3f2b2b4288",
"@type": "urn:x-hp:2012:software:cloud:data_model:ExistingInfrastructureDetails",
"id": "7c890d46-ff32-4403-be3b-7d3f2b2b4288",
"name": "Dev_Machine",
"ipAddress": "10.2.12.121",
"hostName": "dev.csacloud.local"
},
{
"@self": "/csa/codar/xi/existing-infrastructure/523ea7b2-a608-48f9-b6f9-19f443825045",
"@type": "urn:x-hp:2012:software:cloud:data_model:ExistingInfrastructureDetails",
"id": "523ea7b2-a608-48f9-b6f9-19f443825045",
"name": "Dev_Machine",
"ipAddress": "10.2.15.150",
"hostName": "dev.csacloud.local"
}
]

}