检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 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.
Action Access Level Resource Type (*: required) Condition Key Alias Dependencies sms:server:getCommand Read server * - sms:server:migrationServer - - g:EnterpriseProjectId URI GET /v3/sources/{server_id}/command Table 1 Path parameters Parameter Mandatory Type Description server_id
(); } 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
Response Status code: 200 Table 3 Response body parameters Parameter Type Description - String The target server in a specified task was unlocked successfully.
(); 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
Response Status code: 200 Table 3 Response body parameters Parameter Type Description template_id String The template ID. target_password String The server login password.
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
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. t_network_id Yes String The ID of the subnet where the target server is located.
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