CreateBaremetalInstance
CreateBaremetalInstance
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
nameStringRequiredThe name of the bare metal instance.
descriptionStringOptional. The detailed description of the bare metal instance.
chassisUuidStringRequiredThe UUID of the bare metal chassis.
imageUuidStringRequiredThe image UUID.
templateUuidStringOptional. The UUID of the preconfigured template.
usernameStringOptional. The system user of the bare metal instance.
passwordStringOptional. The password of the bare metal instance.
nicCfgsMapOptional. The network configurations of the bare metal instance.
bondingCfgsMapOptional. The network bonding configurations of the bare metal instance.
customConfigurationsMapOptional. The custom configurations of the bare metal instance.
strategyStringOptional. The strategy used to create the bare metal instance.
resourceUuidStringThe resource UUID. If you specify this parameter, the value of this parameter is the UUID of the bare metal instance.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/baremetal/instances
/zstack/v1/baremetal/instances
Request Example
curl -X POST 'http://{host}/zstack/v1/baremetal/instances' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"name":"<name>","description":"<description>","chassisUuid":"<chassisUuid>","imageUuid":"<imageUuid>","templateUuid":"<templateUuid>","username":"<username>","password":"<password>","nicCfgs":{},"bondingCfgs":{},"customConfigurations":{},"strategy":"<strategy>","resourceUuid":"<resourceUuid>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "1dc13c821a713f7fbfa7dd754f100a73", "name": "BM-1", "description": "This is a baremetal instance.", "zoneUuid": "0f67724b4dc5397ea39751fda57c4ce6", "clusterUuid": "7921d51dba31317e8c09d50e44abd010", "chassisUuid": "5183b18300e43aa784a643b86a9772b7", "imageUuid": "a39b3870f3ae393cadcc3b4cfb454653", "platform": "Linux", "state": "Created", "status": "Unprovisioned", "createDate": "Nov 14, 2017 10:20:57 PM", "lastOpDate": "Nov 14, 2017 10:20:57 PM", "bmNics": [ { "uuid": "006915f4766c32ee8b09bf951dd43264", "baremetalInstanceUuid": "1dc13c821a713f7fbfa7dd754f100a73", "l3NetworkUuid": "1fa935a68b4e312aa482df27b3b759a5", "mac": "6c:b3:11:1b:0b:1e", "ip": "192.168.0.10", "netmask": "255.255.255.0", "gateway": "192.168.0.1", "pxe": false } ] } }Change History
This API has no change history records yet.
