fix:增加VmInfoList

This commit is contained in:
qiwang 2024-01-04 16:15:52 +08:00
parent 4eee4c12a9
commit cc686d681f
3 changed files with 37 additions and 0 deletions

View File

@ -231,6 +231,38 @@ type (
}
)
type (
commitVmTaskReq {
server Server `json:"server,optional"`
platform string `json:"platform,optional"`
Server {
flavorRef string `json:"flavorRef,optional"`
name string `json:"name,optional"`
imageRef string `json:"imageRef,optional"`
accessIPv4 string `json:"accessIPv4,optional"`
accessIPv6 string `json:"accessIPv6,optional"`
adminPass string `json:"adminPass,optional"`
availability_zone string `json:"availability_zone,optional"`
key_name string `json:"key_name,optional"`
hostname string `json:"hostname,optional"`
host string `json:"host,optional"`
networks []Networks `json:"networks,optional"`
}
Networks {
uuid string `json:"uuid,optional"`
port string `json:"port,optional"`
fixed_ip string `json:"fixed_ip,optional"`
tag string `json:"tag,optional"`
}
Block_device_mapping_v2 {
uuid string `json:"uuid,optional"`
}
}
commitVmTaskResp {
}
)
type (
scheduleTaskByYamlResp {
TaskId int64 `json:"taskId"`

View File

@ -40,6 +40,10 @@ service pcm {
@handler commitHpcTaskHandler
post /core/commitHpcTask (commitHpcTaskReq) returns (commitHpcTaskResp)
@doc "提交虚拟机任务"
@handler commitVmTaskHandler
post /core/commitVmTask (commitVmTaskReq) returns (commitVmTaskResp)
@doc "删除任务"
@handler deleteTaskHandler
delete /core/deleteTask/:id (deleteTaskReq)

View File

@ -103,6 +103,7 @@ message InfoListResp {
repeated HpcInfo HpcInfoList = 1;
repeated CloudInfo CloudInfoList = 2;
repeated AiInfo AiInfoList = 3;
repeated VmInfo VmInfoList = 4;
}
// pcm core services