fix: 提交修改
This commit is contained in:
@@ -145,6 +145,11 @@ export const getRemoteHostMetrics = (params) => {
|
||||
return http2.get('/api/v1/admin/server/host_service/point/host/metrics', { params })
|
||||
}
|
||||
|
||||
/** 查询历史指标(宿主机或虚拟机) */
|
||||
export const getMetricsHistory = (params) => {
|
||||
return http2.get('/api/v1/admin/server/host_service/point/host/metrics_history', { params })
|
||||
}
|
||||
|
||||
/** 新增宿主机 */
|
||||
export const addRemoteHost = (data) => {
|
||||
return http2.post('/api/v1/admin/server/host_service/point/host/add', data, {
|
||||
@@ -164,6 +169,13 @@ export const deleteRemoteHost = (params) => {
|
||||
return http2.delete('/api/v1/admin/server/host_service/point/host/delete', { params })
|
||||
}
|
||||
|
||||
/** 创建宿主机注册令牌 */
|
||||
export const createHostToken = (data) => {
|
||||
return http2.post('/api/v1/admin/server/host_service/point/host/create_token', data, {
|
||||
headers: { 'Content-Type': 'multipart/form-data' }
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* ================================
|
||||
* 主控服务接口 - 镜像管理
|
||||
@@ -445,21 +457,28 @@ export const deleteVm = (params) => {
|
||||
|
||||
/** 迁移虚拟机(更换宿主机) */
|
||||
export const migrateVm = (data) => {
|
||||
return http2.post('/api/v1/admin/service/host_service/point/vm/migrate', data, {
|
||||
return http2.post('/api/v1/admin/server/host_service/point/vm/migrate', data, {
|
||||
headers: { 'Content-Type': 'multipart/form-data' }
|
||||
})
|
||||
}
|
||||
|
||||
/** 发起虚拟机数据迁移 */
|
||||
export const dataMigrateVm = (data) => {
|
||||
return http2.post('/api/v1/admin/service/host_service/point/vm/data_migrate', data, {
|
||||
return http2.post('/api/v1/admin/server/host_service/point/vm/data_migrate', data, {
|
||||
headers: { 'Content-Type': 'multipart/form-data' }
|
||||
})
|
||||
}
|
||||
|
||||
/** 获取虚拟机数据迁移进度 */
|
||||
export const getDataMigrateProgress = (params) => {
|
||||
return http2.get('/api/v1/admin/service/host_service/point/vm/data_migrate/progress', { params })
|
||||
return http2.get('/api/v1/admin/server/host_service/point/vm/data_migrate/progress', { params })
|
||||
}
|
||||
|
||||
/** 中断虚拟机数据迁移 */
|
||||
export const abortDataMigrate = (data) => {
|
||||
return http2.post('/api/v1/admin/server/host_service/point/vm/data_migrate/abort', data, {
|
||||
headers: { 'Content-Type': 'multipart/form-data' }
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user