fix:增加VmInfoList
Former-commit-id: cc686d681f9a88ed734bda79206692702247ee9f
This commit is contained in:
parent
d77b8eba27
commit
6310118bf4
|
@ -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 (
|
type (
|
||||||
scheduleTaskByYamlResp {
|
scheduleTaskByYamlResp {
|
||||||
TaskId int64 `json:"taskId"`
|
TaskId int64 `json:"taskId"`
|
||||||
|
|
|
@ -40,6 +40,10 @@ service pcm {
|
||||||
@handler commitHpcTaskHandler
|
@handler commitHpcTaskHandler
|
||||||
post /core/commitHpcTask (commitHpcTaskReq) returns (commitHpcTaskResp)
|
post /core/commitHpcTask (commitHpcTaskReq) returns (commitHpcTaskResp)
|
||||||
|
|
||||||
|
@doc "提交虚拟机任务"
|
||||||
|
@handler commitVmTaskHandler
|
||||||
|
post /core/commitVmTask (commitVmTaskReq) returns (commitVmTaskResp)
|
||||||
|
|
||||||
@doc "删除任务"
|
@doc "删除任务"
|
||||||
@handler deleteTaskHandler
|
@handler deleteTaskHandler
|
||||||
delete /core/deleteTask/:id (deleteTaskReq)
|
delete /core/deleteTask/:id (deleteTaskReq)
|
||||||
|
|
|
@ -103,6 +103,7 @@ message InfoListResp {
|
||||||
repeated HpcInfo HpcInfoList = 1;
|
repeated HpcInfo HpcInfoList = 1;
|
||||||
repeated CloudInfo CloudInfoList = 2;
|
repeated CloudInfo CloudInfoList = 2;
|
||||||
repeated AiInfo AiInfoList = 3;
|
repeated AiInfo AiInfoList = 3;
|
||||||
|
repeated VmInfo VmInfoList = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
// pcm core services
|
// pcm core services
|
||||||
|
|
Loading…
Reference in New Issue