Compute Management/Host Related Interfaces
POSTHost Related InterfacesSince 3.1.0SynchronousAuth Required
Add KVM Host from Config File
Add KVM Host from Config File
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.
hostInfoStringRequiredHost information encoded in base64
resourceUuidString资源UUID。若指定,资源会使用该字段值作为UUID。
systemTagsList系统标签。
userTagsList用户标签。
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.
