检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Action Access Level Resource Type (*: required) Condition Key Alias Dependencies sms:server:getCert Read server * - sms:server:queryServer - - g:EnterpriseProjectId URI GET /v3/tasks/{task_id}/certkey Table 1 Path parameters Parameter Mandatory Type Description task_id Yes String
This parameter is mandatory for source server registration. MBR: Master Boot Record (MBR) GPT: GUID Partition Table (GPT) The value can be: MBR GPT device_use Yes String The disk function.
(); } catch (RequestTimeoutException e) { e.printStackTrace(); } catch (ServiceResponseException e) { e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId()); System.out.println
Status Codes Status Code Description 200 The migration task status of a source server was updated. 403 Authentication failed. Error Codes For details, see Error Codes. Parent Topic: Source Server Management
Status Codes Status Code Description 200 The target server in a specified task was unlocked successfully. 403 Authentication failed. Error Codes For details, see Error Codes. Parent Topic: Historical APIs
(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId()); System.out.println(e.getErrorCode()); System.out.println(e.getErrorMsg()); } } } Task information source_id: specifies the source server
Status Codes Status Code Description 200 The target server password was obtained. 403 Authentication failed. Error Codes For details, see Error Codes. Parent Topic: Template Management
This parameter is mandatory for source server registration. MBR: Master Boot Record (MBR) GPT: GUID Partition Table (GPT) The value can be: MBR GPT device_use String The disk function.
Action Access Level Resource Type (*: required) Condition Key Alias Dependencies sms:server:overview Read server * - sms:server:queryServer - URI GET /v3/sources/overview Request Table 1 Request header parameters Parameter Mandatory Type Description X-Auth-Token Yes String The user
Status Codes Status Code Description 200 The list of failed source servers was obtained. 403 Authentication failed. Error Codes For details, see Error Codes. Parent Topic: Source Server Management
Action Access Level Resource Type (*: required) Condition Key Alias Dependencies sms:server:deleteTask Write server * - sms:server:migrationServer - - g:EnterpriseProjectId URI DELETE /v3/tasks/{task_id} Table 1 Path parameters Parameter Mandatory Type Description task_id Yes String
Constraints Migration tasks cannot be deleted if the source server is connected to SMS, and the source server is in one of the following statuses: initialize, stopping, deleting, cloning, replicate, syncing, cutovering, skipping, clearing, premiging.
Status Codes Status Code Description 200 Batch deleting source server records succeeded. 403 Authentication failed. Error Codes For details, see Error Codes. Parent Topic: Source Server Management
(); } catch (ServiceResponseException e) { e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId()); System.out.println(e.getErrorCode()); System.out.println(e.getErrorMsg
} catch (ServiceResponseException e) { e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId()); System.out.println(e.getErrorCode()); System.out.println(e.getErrorMsg()
The ID of the project to which the target server belongs.
System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId()); System.out.println(e.getErrorCode()); System.out.println(e.getErrorMsg()); } } } This example changes the name of the source server with ID dcdbe339-b02d
Status Codes Status Code Description 200 The information about the source server with a specified ID was deleted. 403 Authentication failed. Error Codes For details, see Error Codes. Parent Topic: Source Server Management
This parameter is mandatory for source server registration. MBR: Master Boot Record (MBR) GPT: GUID Partition Table (GPT) The value can be: MBR GPT device_use Yes String The disk function.
Action Access Level Resource Type (*: required) Condition Key Alias Dependencies sms:server:collectLog Write server * - sms:server:migrationServer - - g:EnterpriseProjectId URI POST /v3/tasks/{task_id}/log Table 1 Path parameters Parameter Mandatory Type Description task_id Yes String