A platform represents an underlying infrastructure on which a host can be provisioned. Settings and parameters may be associated to a platform, in particular for template rendering.
The following elements are defined as part of a platform representation:
{
"name": "Hyp3",
"description": "Hyp3 Hypervisor from Angleur",
"version": 2,
"organization": "Guardis Test",
"driver": {
"className": "com.guardis.cortex.server.driver.LibvirtDriver",
"name": "Libvirt",
"parameters": [
{
"description": "Url used by libvirt to connect to the platform.",
"key": "libvirt.connectUrl",
"name": "Connect Url",
"schema": {
"type": "string"
},
"value": "qemu:///system",
"version": 0
}
]
},
"files": [
{
"delimiter": {
"end": "}",
"start": "${"
},
"name": "libvirt.domain.fmt"
},
{
"delimiter": {
"end": "}",
"start": "${"
},
"name": "libvirt.disk.fmt"
}
],
"parameters": [
{
"description": "Mac address for eth0 network adapter, will be generated if empty.",
"key": "vm_mac",
"name": "Eth0 Mac Address",
"schema": {
"type": "string"
},
"version": 1
},
{
"description": "Allocated memory, in MB",
"key": "vm_memory",
"name": "Memory",
"schema": {
"type": "integer"
},
"value": 1024,
"version": 1
},
{
"description": "Allocated disk size, in MB",
"key": "vm_capacity",
"name": "Disk size",
"schema": {
"type": "integer"
},
"value": 3072,
"version": 1
},
{
"description": "Allocated CPUs",
"key": "vm_nvirtcpus",
"name": "Number of CPUs",
"schema": {
"type": "integer"
},
"value": 1,
"version": 1
},
{
"description": "Bridge name for eth0 network adapter.",
"key": "vm_bridge",
"name": "Eth0 Bridge",
"schema": {
"advanced": true,
"type": "string"
},
"version": 1
}
],
"settings": [
{
"key": "vm_bridge",
"value": "br0",
"version": 0
},
{
"key": "libvirt.connectUrl",
"value": "qemu://hyp3-devel.angleur.guardis.be/system",
"version": 0
}
]
}
/api/organizations/{org_name}/platforms
/api/organizations/{org_name}/platforms/{plat_name}
/organizations/{org_name}/platforms/{plat_name}/_clone?name=new_name
2016 © ComodIT. All Rights Reserved. Privacy Policy | Terms of Service