Resource Center/Bare Metal Management (Plus)/Bare Metal Management Operations
PUTBare Metal Management OperationsSince 3.4.0SynchronousAuth Required
UpdatePreconfigurationTemplate
UpdatePreconfigurationTemplate
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
uuidStringRequiredThe UUID of the preconfigured template.
Body Fields
updatepreconfigurationtemplateObjectRequiredupdatepreconfigurationtemplate request body object.
nameStringOptional. The name of the template.
descriptionStringOptional. The detailed description of the template.
distributionStringOptional. The distribution of the operating system.
typeStringOptional. The type of the template.
contentStringOptional. The content of the template.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/baremetal/preconfigurations/{uuid}/actions
/zstack/v1/baremetal/preconfigurations/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/baremetal/preconfigurations/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"updatepreconfigurationtemplate":{"name":"<name>","description":"<description>","distribution":"<distribution>","type":"<type>","content":"<content>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "fee95538b8a64831a9f29b972bcdf165", "name": "centos_7_x86_64_mini_v1.cfg", "description": "centos-7-minimal kickstart file", "distribution": "centos-7-x86_64", "type": "kickstart", "content": "...", "md5sum": "6c5fbedaf16f4682840a3a2c9b712b21", "isPredefined": false, "state": "Enabled", "createDate": "Jan 11, 2019 10:38:58 AM", "lastOpDate": "Jan 11, 2019 10:38:58 AM" } }Change History
This API has no change history records yet.
