Queries the information about migration sources.
Operation description
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
JobId | string | No | The migration job ID. | j-bp19vlwm0tyigbmj**** |
State | string | No | The state of the migration source. Valid Values:
| Available |
Name | string | No | The name of the migration source. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain digits, colons (:), underscores (_), and hyphens (-). Default value: null. | testSourceServerName |
PageNumber | integer | No | The page number. Pages start from page 1. Default value: 1. | 1 |
PageSize | integer | No | The number of entries to return on each page. Valid values: 1 to 50. Default value: 10. | 10 |
SourceId | array | No | The migration source IDs. You can specify multiple IDs. | |
string | No | The migration source ID. You can specify multiple IDs. | s-bp1e2fsl57knvuug**** | |
ResourceGroupId | string | No | The ID of the resource group. | rg-acfmw3ty5y7**** |
Tag | object [] | No | The tag. | |
Key | string | No | The key of tag N that is added to the SMC resource. Valid values of N: 1 to 20. The tag key cannot be an empty string. It can be up to 64 characters in length and cannot start with acs: or aliyun. It cannot contain http:// or https://. | TestKey |
Value | string | No | The value of tag N that is added to the SMC resource. Valid values of N: 1 to 20. The tag value can be an empty string. It can be up to 64 characters in length and cannot contain http:// or https://. | TestValue |
Response parameters
Examples
Sample success responses
JSON
format
{
"SourceServers": {
"SourceServer": [
{
"CreationTime": "2019-06-27T02:58:09Z",
"HeartbeatRate": 30,
"State": "InUse",
"DataDisks": {
"DataDisk": [
{
"Index": 1,
"Size": 20,
"Parts": {
"Part": [
{
"CanBlock": false,
"SizeBytes": 21474836480,
"Need": false,
"Device": "1_0",
"Path": "/home/data"
}
]
},
"Path": "/home/data"
}
]
},
"SystemDiskParts": {
"SystemDiskPart": [
{
"CanBlock": true,
"SizeBytes": 254803968,
"Need": true,
"Device": "0_0",
"Path": "/boot"
}
]
},
"KernelLevel": 1,
"SourceId": "s-bp1e2fsl57knvuug****",
"AgentVersion": "1.5.2.3",
"StatusInfo": "{\"error_code\": \"S1\", \"error_msg\": \"Rsync not found. Please install rsync.\"}",
"SystemDiskSize": 40,
"Description": "Server Source Imported By GotoAliyun.",
"ErrorCode": "SourceServer.Offline",
"JobId": "j-bp19vlwm0tyigbmj****",
"Platform": "OpenSUSE",
"ReplicationDriver": "SMT",
"Name": "SourceServerName",
"SystemInfo": "{\\\"agent_mode\\\":\\\"daemon\\\",\\\"agent_type\\\":\\\"aliyun\\\",\\\"client_type\\\":\\\"\\\",\\\"cores\\\":\\\"2\\\",\\\"cpu_usage\\\":\\\"0.00\\\",\\\"hostname\\\":\\\"ixxxxxxxxxx\\\",\\\"ipv4\\\":\\\"10.0.0.1\\\",\\\"memory\\\":\\\"8.00\\\",\\\"memory_usage\\\":\\\"3.61\\\"}",
"Architecture": "x86_64",
"ResourceGroupId": "rg-acfmw3ty5y7****",
"Tags": {
"Tag": [
{
"Key": "TestKey",
"Value": "TestValue"
}
]
}
}
]
},
"TotalCount": 1,
"PageSize": 10,
"RequestId": "410E6073-66D0-45D3-AB3E-4DC3F5E4****",
"PageNumber": 1
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | Forbidden.Unauthorized | A required authorization for the specified action is not supplied. | - |
500 | InternalError | An error occurred while processing your request. Please try again. If the problem still exists, please submit a ticket. | An error occurred while processing your request. Please try again. If the problem still exists, please submit a ticket. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||
---|---|---|---|---|---|---|---|---|
2023-07-28 | The Error code has changed | see changesets | ||||||
|