Documentation ¶
Index ¶
- func GenReqDefForCreateMigproject() *def.HttpRequestDef
- func GenReqDefForCreateTask() *def.HttpRequestDef
- func GenReqDefForCreateTemplate() *def.HttpRequestDef
- func GenReqDefForDeleteMigproject() *def.HttpRequestDef
- func GenReqDefForDeleteServer() *def.HttpRequestDef
- func GenReqDefForDeleteServers() *def.HttpRequestDef
- func GenReqDefForDeleteTask() *def.HttpRequestDef
- func GenReqDefForDeleteTasks() *def.HttpRequestDef
- func GenReqDefForDeleteTemplate() *def.HttpRequestDef
- func GenReqDefForDeleteTemplates() *def.HttpRequestDef
- func GenReqDefForListErrorServers() *def.HttpRequestDef
- func GenReqDefForListMigprojects() *def.HttpRequestDef
- func GenReqDefForListServers() *def.HttpRequestDef
- func GenReqDefForListTasks() *def.HttpRequestDef
- func GenReqDefForListTemplates() *def.HttpRequestDef
- func GenReqDefForRegisterServer() *def.HttpRequestDef
- func GenReqDefForShowCommand() *def.HttpRequestDef
- func GenReqDefForShowMigproject() *def.HttpRequestDef
- func GenReqDefForShowOverview() *def.HttpRequestDef
- func GenReqDefForShowServer() *def.HttpRequestDef
- func GenReqDefForShowTask() *def.HttpRequestDef
- func GenReqDefForShowTemplate() *def.HttpRequestDef
- func GenReqDefForShowsSpeedLimits() *def.HttpRequestDef
- func GenReqDefForUpdateCommandResult() *def.HttpRequestDef
- func GenReqDefForUpdateCopyState() *def.HttpRequestDef
- func GenReqDefForUpdateDefaultMigproject() *def.HttpRequestDef
- func GenReqDefForUpdateDiskInfo() *def.HttpRequestDef
- func GenReqDefForUpdateMigproject() *def.HttpRequestDef
- func GenReqDefForUpdateServerName() *def.HttpRequestDef
- func GenReqDefForUpdateSpeed() *def.HttpRequestDef
- func GenReqDefForUpdateTask() *def.HttpRequestDef
- func GenReqDefForUpdateTaskSpeed() *def.HttpRequestDef
- func GenReqDefForUpdateTaskStatus() *def.HttpRequestDef
- func GenReqDefForUpdateTemplate() *def.HttpRequestDef
- func SmsClientBuilder() *http_client.HcHttpClientBuilder
- type SmsClient
- func (c *SmsClient) CreateMigproject(request *model.CreateMigprojectRequest) (*model.CreateMigprojectResponse, error)
- func (c *SmsClient) CreateTask(request *model.CreateTaskRequest) (*model.CreateTaskResponse, error)
- func (c *SmsClient) CreateTemplate(request *model.CreateTemplateRequest) (*model.CreateTemplateResponse, error)
- func (c *SmsClient) DeleteMigproject(request *model.DeleteMigprojectRequest) (*model.DeleteMigprojectResponse, error)
- func (c *SmsClient) DeleteServer(request *model.DeleteServerRequest) (*model.DeleteServerResponse, error)
- func (c *SmsClient) DeleteServers(request *model.DeleteServersRequest) (*model.DeleteServersResponse, error)
- func (c *SmsClient) DeleteTask(request *model.DeleteTaskRequest) (*model.DeleteTaskResponse, error)
- func (c *SmsClient) DeleteTasks(request *model.DeleteTasksRequest) (*model.DeleteTasksResponse, error)
- func (c *SmsClient) DeleteTemplate(request *model.DeleteTemplateRequest) (*model.DeleteTemplateResponse, error)
- func (c *SmsClient) DeleteTemplates(request *model.DeleteTemplatesRequest) (*model.DeleteTemplatesResponse, error)
- func (c *SmsClient) ListErrorServers(request *model.ListErrorServersRequest) (*model.ListErrorServersResponse, error)
- func (c *SmsClient) ListMigprojects(request *model.ListMigprojectsRequest) (*model.ListMigprojectsResponse, error)
- func (c *SmsClient) ListServers(request *model.ListServersRequest) (*model.ListServersResponse, error)
- func (c *SmsClient) ListTasks(request *model.ListTasksRequest) (*model.ListTasksResponse, error)
- func (c *SmsClient) ListTemplates(request *model.ListTemplatesRequest) (*model.ListTemplatesResponse, error)
- func (c *SmsClient) RegisterServer(request *model.RegisterServerRequest) (*model.RegisterServerResponse, error)
- func (c *SmsClient) ShowCommand(request *model.ShowCommandRequest) (*model.ShowCommandResponse, error)
- func (c *SmsClient) ShowMigproject(request *model.ShowMigprojectRequest) (*model.ShowMigprojectResponse, error)
- func (c *SmsClient) ShowOverview(request *model.ShowOverviewRequest) (*model.ShowOverviewResponse, error)
- func (c *SmsClient) ShowServer(request *model.ShowServerRequest) (*model.ShowServerResponse, error)
- func (c *SmsClient) ShowTask(request *model.ShowTaskRequest) (*model.ShowTaskResponse, error)
- func (c *SmsClient) ShowTemplate(request *model.ShowTemplateRequest) (*model.ShowTemplateResponse, error)
- func (c *SmsClient) ShowsSpeedLimits(request *model.ShowsSpeedLimitsRequest) (*model.ShowsSpeedLimitsResponse, error)
- func (c *SmsClient) UpdateCommandResult(request *model.UpdateCommandResultRequest) (*model.UpdateCommandResultResponse, error)
- func (c *SmsClient) UpdateCopyState(request *model.UpdateCopyStateRequest) (*model.UpdateCopyStateResponse, error)
- func (c *SmsClient) UpdateDefaultMigproject(request *model.UpdateDefaultMigprojectRequest) (*model.UpdateDefaultMigprojectResponse, error)
- func (c *SmsClient) UpdateDiskInfo(request *model.UpdateDiskInfoRequest) (*model.UpdateDiskInfoResponse, error)
- func (c *SmsClient) UpdateMigproject(request *model.UpdateMigprojectRequest) (*model.UpdateMigprojectResponse, error)
- func (c *SmsClient) UpdateServerName(request *model.UpdateServerNameRequest) (*model.UpdateServerNameResponse, error)
- func (c *SmsClient) UpdateSpeed(request *model.UpdateSpeedRequest) (*model.UpdateSpeedResponse, error)
- func (c *SmsClient) UpdateTask(request *model.UpdateTaskRequest) (*model.UpdateTaskResponse, error)
- func (c *SmsClient) UpdateTaskSpeed(request *model.UpdateTaskSpeedRequest) (*model.UpdateTaskSpeedResponse, error)
- func (c *SmsClient) UpdateTaskStatus(request *model.UpdateTaskStatusRequest) (*model.UpdateTaskStatusResponse, error)
- func (c *SmsClient) UpdateTemplate(request *model.UpdateTemplateRequest) (*model.UpdateTemplateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenReqDefForCreateMigproject ¶
func GenReqDefForCreateMigproject() *def.HttpRequestDef
func GenReqDefForCreateTask ¶
func GenReqDefForCreateTask() *def.HttpRequestDef
func GenReqDefForCreateTemplate ¶
func GenReqDefForCreateTemplate() *def.HttpRequestDef
func GenReqDefForDeleteMigproject ¶
func GenReqDefForDeleteMigproject() *def.HttpRequestDef
func GenReqDefForDeleteServer ¶
func GenReqDefForDeleteServer() *def.HttpRequestDef
func GenReqDefForDeleteServers ¶
func GenReqDefForDeleteServers() *def.HttpRequestDef
func GenReqDefForDeleteTask ¶
func GenReqDefForDeleteTask() *def.HttpRequestDef
func GenReqDefForDeleteTasks ¶
func GenReqDefForDeleteTasks() *def.HttpRequestDef
func GenReqDefForDeleteTemplate ¶
func GenReqDefForDeleteTemplate() *def.HttpRequestDef
func GenReqDefForDeleteTemplates ¶
func GenReqDefForDeleteTemplates() *def.HttpRequestDef
func GenReqDefForListErrorServers ¶
func GenReqDefForListErrorServers() *def.HttpRequestDef
func GenReqDefForListMigprojects ¶
func GenReqDefForListMigprojects() *def.HttpRequestDef
func GenReqDefForListServers ¶
func GenReqDefForListServers() *def.HttpRequestDef
func GenReqDefForListTasks ¶
func GenReqDefForListTasks() *def.HttpRequestDef
func GenReqDefForListTemplates ¶
func GenReqDefForListTemplates() *def.HttpRequestDef
func GenReqDefForRegisterServer ¶
func GenReqDefForRegisterServer() *def.HttpRequestDef
func GenReqDefForShowCommand ¶
func GenReqDefForShowCommand() *def.HttpRequestDef
func GenReqDefForShowMigproject ¶
func GenReqDefForShowMigproject() *def.HttpRequestDef
func GenReqDefForShowOverview ¶
func GenReqDefForShowOverview() *def.HttpRequestDef
func GenReqDefForShowServer ¶
func GenReqDefForShowServer() *def.HttpRequestDef
func GenReqDefForShowTask ¶
func GenReqDefForShowTask() *def.HttpRequestDef
func GenReqDefForShowTemplate ¶
func GenReqDefForShowTemplate() *def.HttpRequestDef
func GenReqDefForShowsSpeedLimits ¶
func GenReqDefForShowsSpeedLimits() *def.HttpRequestDef
func GenReqDefForUpdateCommandResult ¶
func GenReqDefForUpdateCommandResult() *def.HttpRequestDef
func GenReqDefForUpdateCopyState ¶
func GenReqDefForUpdateCopyState() *def.HttpRequestDef
func GenReqDefForUpdateDefaultMigproject ¶
func GenReqDefForUpdateDefaultMigproject() *def.HttpRequestDef
func GenReqDefForUpdateDiskInfo ¶
func GenReqDefForUpdateDiskInfo() *def.HttpRequestDef
func GenReqDefForUpdateMigproject ¶
func GenReqDefForUpdateMigproject() *def.HttpRequestDef
func GenReqDefForUpdateServerName ¶
func GenReqDefForUpdateServerName() *def.HttpRequestDef
func GenReqDefForUpdateSpeed ¶
func GenReqDefForUpdateSpeed() *def.HttpRequestDef
func GenReqDefForUpdateTask ¶
func GenReqDefForUpdateTask() *def.HttpRequestDef
func GenReqDefForUpdateTaskSpeed ¶
func GenReqDefForUpdateTaskSpeed() *def.HttpRequestDef
func GenReqDefForUpdateTaskStatus ¶
func GenReqDefForUpdateTaskStatus() *def.HttpRequestDef
func GenReqDefForUpdateTemplate ¶
func GenReqDefForUpdateTemplate() *def.HttpRequestDef
func SmsClientBuilder ¶
func SmsClientBuilder() *http_client.HcHttpClientBuilder
Types ¶
type SmsClient ¶
type SmsClient struct {
HcClient *http_client.HcHttpClient
}
func NewSmsClient ¶
func NewSmsClient(hcClient *http_client.HcHttpClient) *SmsClient
func (*SmsClient) CreateMigproject ¶
func (c *SmsClient) CreateMigproject(request *model.CreateMigprojectRequest) (*model.CreateMigprojectResponse, error)
新建迁移项目
新建迁移项目
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) CreateTask ¶
func (c *SmsClient) CreateTask(request *model.CreateTaskRequest) (*model.CreateTaskResponse, error)
创建迁移任务
根据源端服务器创建一个迁移任务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) CreateTemplate ¶
func (c *SmsClient) CreateTemplate(request *model.CreateTemplateRequest) (*model.CreateTemplateResponse, error)
新增模板信息
新增源端模板信息
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) DeleteMigproject ¶
func (c *SmsClient) DeleteMigproject(request *model.DeleteMigprojectRequest) (*model.DeleteMigprojectResponse, error)
删除迁移项目
删除指定ID的迁移项目
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) DeleteServer ¶
func (c *SmsClient) DeleteServer(request *model.DeleteServerRequest) (*model.DeleteServerResponse, error)
删除指定ID的源端服务器信息
从主机迁移服务界面上删除指定ID的源端服务器信息。一旦源端服务器信息被删除,则只能通过重启源端服务器上的迁移Agent来将源端服务器信息重新添加在主机迁移服务界面。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) DeleteServers ¶
func (c *SmsClient) DeleteServers(request *model.DeleteServersRequest) (*model.DeleteServersResponse, error)
批量删除源端服务器信息
批量删除源端服务器信息。一旦源端服务器信息被删除,则只能通过重启源端服务器上的迁移Agent来将源端服务器信息重新添加在主机迁移服务界面。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) DeleteTask ¶
func (c *SmsClient) DeleteTask(request *model.DeleteTaskRequest) (*model.DeleteTaskResponse, error)
删除指定ID的迁移任务
删除指定ID的迁移任务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) DeleteTasks ¶
func (c *SmsClient) DeleteTasks(request *model.DeleteTasksRequest) (*model.DeleteTasksResponse, error)
批量删除迁移任务
批量删除迁移任务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) DeleteTemplate ¶
func (c *SmsClient) DeleteTemplate(request *model.DeleteTemplateRequest) (*model.DeleteTemplateResponse, error)
删除指定ID的模板
删除指定ID的模板。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) DeleteTemplates ¶
func (c *SmsClient) DeleteTemplates(request *model.DeleteTemplatesRequest) (*model.DeleteTemplatesResponse, error)
批量删除指定ID的模板
批量删除指定ID的模板。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) ListErrorServers ¶
func (c *SmsClient) ListErrorServers(request *model.ListErrorServersRequest) (*model.ListErrorServersResponse, error)
查询待迁移源端的所有错误
主机迁移过程中可能发生错误,使用该接口可以批量查询迁移过程中出现错误的源端服务器信息,以及它们的错误信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) ListMigprojects ¶
func (c *SmsClient) ListMigprojects(request *model.ListMigprojectsRequest) (*model.ListMigprojectsResponse, error)
获取项目列表
主机迁移服务中可以使用迁移项目来对源端进行项目管理,使用该接口获取当前账户下所有的迁移项目列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) ListServers ¶
func (c *SmsClient) ListServers(request *model.ListServersRequest) (*model.ListServersResponse, error)
查询源端服务器列表
用户在源端安装并成功启动Agent后,Agent会将源端服务器信息注册在主机迁移服务中,调用该接口查询已注册的源端服务器列表信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) ListTasks ¶
func (c *SmsClient) ListTasks(request *model.ListTasksRequest) (*model.ListTasksResponse, error)
查询迁移任务列表
在设置目的端后,主机迁移服务会自动创建迁移任务,使用该接口可以查询迁移任务列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) ListTemplates ¶
func (c *SmsClient) ListTemplates(request *model.ListTemplatesRequest) (*model.ListTemplatesResponse, error)
查询模板列表
查询弹性云服务器模板列表,迁移时选择“新建服务器”时可使用该模板创建弹性云服务器。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) RegisterServer ¶
func (c *SmsClient) RegisterServer(request *model.RegisterServerRequest) (*model.RegisterServerResponse, error)
上报源端服务器基本信息
上报源端服务器信息,上报成功后会在sms服务器列表中看到对应的源端服务器信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) ShowCommand ¶
func (c *SmsClient) ShowCommand(request *model.ShowCommandRequest) (*model.ShowCommandResponse, error)
获取服务端命令
迁移Agent调用该接口从SMS服务端获取下发给指定源端迁移Agent的命令。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) ShowMigproject ¶
func (c *SmsClient) ShowMigproject(request *model.ShowMigprojectRequest) (*model.ShowMigprojectResponse, error)
查询指定ID迁移项目详情
查询指定ID的迁移项目详情。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) ShowOverview ¶
func (c *SmsClient) ShowOverview(request *model.ShowOverviewRequest) (*model.ShowOverviewResponse, error)
获取服务器总览
获取服务器总览
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) ShowServer ¶
func (c *SmsClient) ShowServer(request *model.ShowServerRequest) (*model.ShowServerResponse, error)
查询指定ID的源端服务器
迁移Agent将源端服务器信息上报到主机迁移服务后,主机迁移服务会对迁移的可行性进行检测,该接口返回源端服务器的基本信息和检查结果。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) ShowTask ¶
func (c *SmsClient) ShowTask(request *model.ShowTaskRequest) (*model.ShowTaskResponse, error)
查询指定ID的迁移任务
查询指定ID的迁移任务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) ShowTemplate ¶
func (c *SmsClient) ShowTemplate(request *model.ShowTemplateRequest) (*model.ShowTemplateResponse, error)
查询指定ID模板信息
查询指定ID的弹性云服务器模板信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) ShowsSpeedLimits ¶
func (c *SmsClient) ShowsSpeedLimits(request *model.ShowsSpeedLimitsRequest) (*model.ShowsSpeedLimitsResponse, error)
查询任务限速规则
按时间段查询迁移任务的迁移速率
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) UpdateCommandResult ¶
func (c *SmsClient) UpdateCommandResult(request *model.UpdateCommandResultRequest) (*model.UpdateCommandResultResponse, error)
上报服务端命令执行结果
迁移Agent调用该接口向SMS服务端反馈指定指令的执行结果。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) UpdateCopyState ¶
func (c *SmsClient) UpdateCopyState(request *model.UpdateCopyStateRequest) (*model.UpdateCopyStateResponse, error)
更新任务对应源端复制状态
更新任务对应源端复制状态
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) UpdateDefaultMigproject ¶
func (c *SmsClient) UpdateDefaultMigproject(request *model.UpdateDefaultMigprojectRequest) (*model.UpdateDefaultMigprojectResponse, error)
更新默认迁移项目
更改默认迁移项目,注册源端会注册在当前的默认项目下。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) UpdateDiskInfo ¶
func (c *SmsClient) UpdateDiskInfo(request *model.UpdateDiskInfoRequest) (*model.UpdateDiskInfoResponse, error)
更新磁盘信息
更新服务器的磁盘信息,此接口会把服务器原有磁盘信息清空,然后更新成新磁盘信息
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) UpdateMigproject ¶
func (c *SmsClient) UpdateMigproject(request *model.UpdateMigprojectRequest) (*model.UpdateMigprojectResponse, error)
更新迁移项目信息
更新迁移项目的信息
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) UpdateServerName ¶
func (c *SmsClient) UpdateServerName(request *model.UpdateServerNameRequest) (*model.UpdateServerNameResponse, error)
修改指定ID的源端服务器名称
该功能用来修改SMS服务端的源端名称,方便用户对源端进行管理。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) UpdateSpeed ¶
func (c *SmsClient) UpdateSpeed(request *model.UpdateSpeedRequest) (*model.UpdateSpeedResponse, error)
设置迁移限速规则
设置迁移任务的迁移速率。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) UpdateTask ¶
func (c *SmsClient) UpdateTask(request *model.UpdateTaskRequest) (*model.UpdateTaskResponse, error)
更新指定ID的迁移任务
更新指定ID的迁移任务
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) UpdateTaskSpeed ¶
func (c *SmsClient) UpdateTaskSpeed(request *model.UpdateTaskSpeedRequest) (*model.UpdateTaskSpeedResponse, error)
上报数据迁移进度和速率
此接口由安装在源端服务器上的迁移Agent在数据迁移阶段调用,用来将迁移的具体进度上报给SMS服务端。
迁移Agent自动调用此接口用于上报数据迁移进度,您无需调用此接口。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) UpdateTaskStatus ¶
func (c *SmsClient) UpdateTaskStatus(request *model.UpdateTaskStatusRequest) (*model.UpdateTaskStatusResponse, error)
管理迁移任务
管理迁移任务,包括启动任务,暂停任务,同步任务,日志上传,回滚失败迁移任务
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SmsClient) UpdateTemplate ¶
func (c *SmsClient) UpdateTemplate(request *model.UpdateTemplateRequest) (*model.UpdateTemplateResponse, error)
修改模板信息
修改源端模板信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.