Resource Center/Bare Metal Management (Plus)/Bare Metal Management Operations
POSTBare Metal Management OperationsSince 3.4.0SynchronousAuth Required
AddPreconfigurationTemplate
AddPreconfigurationTemplate
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 preconfigured template.
descriptionStringOptional. The detailed description of the template.
distributionStringRequiredThe distribution of the operating system.
typeStringRequiredThe type of the template.
contentStringRequiredThe content of the template.
resourceUuidStringOptional. The UUID of the template.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/baremetal/preconfigurations
/zstack/v1/baremetal/preconfigurations
Request Example
curl -X POST 'http://{host}/zstack/v1/baremetal/preconfigurations' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"name":"<name>","description":"<description>","distribution":"<distribution>","type":"<type>","content":"<content>","resourceUuid":"<resourceUuid>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "0bfb87d3a9c842bbbf509a4b7eb6e3b2", "name": "centos_7_x86_64_mini_v1.cfg", "description": "centos-7-minimal kickstart file", "distribution": "centos-7-x86_64", "type": "kickstart", "content": "...", "md5sum": "0447e03f5a6747c0984842b5ee117a21", "isPredefined": false, "state": "Enabled", "createDate": "Jan 11, 2019 10:38:59 AM", "lastOpDate": "Jan 11, 2019 10:38:59 AM" } }Change History
This API has no change history records yet.
