Resource Center/Bare Metal Management (Plus)/Bare Metal Management Operations
PUTBare Metal Management OperationsSince 2.6.0SynchronousAuth Required
UpdateBaremetalInstance
UpdateBaremetalInstance
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 bare metal instance.
Body Fields
updatebaremetalinstanceObjectRequiredupdatebaremetalinstance request body object.
nameStringOptional. The name of the bare metal instance.
descriptionStringOptional. The detailed description of the bare metal instance.
passwordStringOptional. The password of the bare metal instance.
platformStringOptional. The system platform.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/baremetal/instances/{uuid}/actions
/zstack/v1/baremetal/instances/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/baremetal/instances/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"updatebaremetalinstance":{"name":"<name>","description":"<description>","password":"<password>","platform":"<platform>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "30073bc1b10e3b5eba5db9e54436b1dd", "name": "BM-1", "description": "This is a baremetal instance.", "zoneUuid": "99b8c0883a563feb849fe7c6b0b0b97d", "clusterUuid": "38324d028b28352fad5236f861ba7aeb", "chassisUuid": "692781dfb73d32d5907ef33199d97db6", "imageUuid": "a54bab6133d83045a8941368520eff77", "platform": "Linux", "state": "Stopped", "status": "Provisioned", "createDate": "Nov 14, 2017 10:20:57 PM", "lastOpDate": "Nov 14, 2017 10:20:57 PM", "bmNics": [ { "uuid": "5233971bebdd352c9d708617a23311a4", "baremetalInstanceUuid": "30073bc1b10e3b5eba5db9e54436b1dd", "l3NetworkUuid": "dce0c157a45d38209afbb615743435aa", "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.
