| @@ -337,7 +337,7 @@ service pcm { | |||||
| @handler DeleteNodeHandler | @handler DeleteNodeHandler | ||||
| delete /vm/deleteNode (DeleteNodeReq) returns (DeleteNodeResp) | delete /vm/deleteNode (DeleteNodeReq) returns (DeleteNodeResp) | ||||
| @handler ShowNodeDetailsHandler | @handler ShowNodeDetailsHandler | ||||
| delete /vm/showNodeDetails (ShowNodeDetailsReq) returns (ShowNodeDetailsResp) | |||||
| get /vm/showNodeDetails (ShowNodeDetailsReq) returns (ShowNodeDetailsResp) | |||||
| } | } | ||||
| //存算联动 接口 | //存算联动 接口 | ||||
| @@ -236,7 +236,7 @@ type( | |||||
| type ( | type ( | ||||
| StartServerReq { | StartServerReq { | ||||
| ServerId string `json:"server_id" copier:"ServerId"` | ServerId string `json:"server_id" copier:"ServerId"` | ||||
| Action []map[string]string `json:"Action,optional" copier:"Action"` | |||||
| Action []map[string]string `json:"action,optional" copier:"Action"` | |||||
| start_action string `json:"start_action" copier:"start_action"` | start_action string `json:"start_action" copier:"start_action"` | ||||
| } | } | ||||
| @@ -250,7 +250,7 @@ type ( | |||||
| type( | type( | ||||
| StopServerReq{ | StopServerReq{ | ||||
| ServerId string `json:"server_id" copier:"ServerId"` | ServerId string `json:"server_id" copier:"ServerId"` | ||||
| Action []map[string]string `json:"Action,optional" copier:"Action"` | |||||
| Action []map[string]string `json:"action,optional" copier:"Action"` | |||||
| stop_action string `json:"stop_action" copier:"stop_action"` | stop_action string `json:"stop_action" copier:"stop_action"` | ||||
| } | } | ||||
| StopServerResp { | StopServerResp { | ||||
| @@ -742,7 +742,7 @@ type ( | |||||
| type( | type( | ||||
| UpdateVolumeReq { | UpdateVolumeReq { | ||||
| Volume Volume `json:"volume" copier:"Volume"` | Volume Volume `json:"volume" copier:"Volume"` | ||||
| VolumeTypeId string `json:"volume_type_id" copier:"VolumeTypeId"` | |||||
| VolumeId string `json:"volume_id" copier:"VolumeId"` | |||||
| } | } | ||||
| UpdateVolumeResp { | UpdateVolumeResp { | ||||
| Volume Volume `json:"volume" copier:"Volume"` | Volume Volume `json:"volume" copier:"Volume"` | ||||
| @@ -794,7 +794,7 @@ type( | |||||
| ErrorMsg string `json:"errorMsg,omitempty" copier:"ErrorMsg"` | ErrorMsg string `json:"errorMsg,omitempty" copier:"ErrorMsg"` | ||||
| } | } | ||||
| VolumeType { | VolumeType { | ||||
| VolumeType string `json:"Volume_type" copier:"VolumeType"` | |||||
| Name string `json:"name" copier:"Name"` | |||||
| Description string `json:"description" copier:"Description"` | Description string `json:"description" copier:"Description"` | ||||
| ExtraSpecs ExtraSpecs `json:"extra_specs" copier:"ExtraSpecs"` | ExtraSpecs ExtraSpecs `json:"extra_specs" copier:"ExtraSpecs"` | ||||
| Id string `json:"id" copier:"Id"` | Id string `json:"id" copier:"Id"` | ||||
| @@ -552,7 +552,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { | |||||
| Handler: vm.DeleteNodeHandler(serverCtx), | Handler: vm.DeleteNodeHandler(serverCtx), | ||||
| }, | }, | ||||
| { | { | ||||
| Method: http.MethodDelete, | |||||
| Method: http.MethodGet, | |||||
| Path: "/vm/showNodeDetails", | Path: "/vm/showNodeDetails", | ||||
| Handler: vm.ShowNodeDetailsHandler(serverCtx), | Handler: vm.ShowNodeDetailsHandler(serverCtx), | ||||
| }, | }, | ||||
| @@ -2416,7 +2416,7 @@ type UpdateServerResp struct { | |||||
| type StartServerReq struct { | type StartServerReq struct { | ||||
| ServerId string `json:"server_id" copier:"ServerId"` | ServerId string `json:"server_id" copier:"ServerId"` | ||||
| Action []map[string]string `json:"Action,optional" copier:"Action"` | |||||
| Action []map[string]string `json:"action,optional" copier:"Action"` | |||||
| Start_action string `json:"start_action" copier:"start_action"` | Start_action string `json:"start_action" copier:"start_action"` | ||||
| } | } | ||||
| @@ -2428,7 +2428,7 @@ type StartServerResp struct { | |||||
| type StopServerReq struct { | type StopServerReq struct { | ||||
| ServerId string `json:"server_id" copier:"ServerId"` | ServerId string `json:"server_id" copier:"ServerId"` | ||||
| Action []map[string]string `json:"Action,optional" copier:"Action"` | |||||
| Action []map[string]string `json:"action,optional" copier:"Action"` | |||||
| Stop_action string `json:"stop_action" copier:"stop_action"` | Stop_action string `json:"stop_action" copier:"stop_action"` | ||||
| } | } | ||||
| @@ -2891,8 +2891,8 @@ type Extra_specs struct { | |||||
| } | } | ||||
| type UpdateVolumeReq struct { | type UpdateVolumeReq struct { | ||||
| Volume Volume `json:"volume" copier:"Volume"` | |||||
| VolumeTypeId string `json:"volume_type_id" copier:"VolumeTypeId"` | |||||
| Volume Volume `json:"volume" copier:"Volume"` | |||||
| VolumeId string `json:"volume_id" copier:"VolumeId"` | |||||
| } | } | ||||
| type UpdateVolumeResp struct { | type UpdateVolumeResp struct { | ||||
| @@ -2945,7 +2945,7 @@ type CreateVolumeTypeResp struct { | |||||
| } | } | ||||
| type VolumeType struct { | type VolumeType struct { | ||||
| VolumeType string `json:"Volume_type" copier:"VolumeType"` | |||||
| Name string `json:"name" copier:"Name"` | |||||
| Description string `json:"description" copier:"Description"` | Description string `json:"description" copier:"Description"` | ||||
| ExtraSpecs ExtraSpecs `json:"extra_specs" copier:"ExtraSpecs"` | ExtraSpecs ExtraSpecs `json:"extra_specs" copier:"ExtraSpecs"` | ||||
| Id string `json:"id" copier:"Id"` | Id string `json:"id" copier:"Id"` | ||||