Resource Center/Hardware/Host Operations
POSTHost OperationsSince 3.1.0SynchronousAuth Required
AddKVMHostFromConfigFile
AddKVMHostFromConfigFile
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.
hostInfoStringRequiredThe host information encoded in Base64 format.
resourceUuidStringOptional. The resource UUID.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/hosts/kvm/from-file
/zstack/v1/hosts/kvm/from-file
Request Example
curl -X POST 'http://{host}/zstack/v1/hosts/kvm/from-file' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"hostInfo":"<hostInfo>","resourceUuid":"<resourceUuid>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "results": [ { "ip": "127.0.0.1", "success": true } ] }Change History
This API has no change history records yet.
