Querying the List of Source Servers
Function
This API is used to query the list of source servers.
URI
GET /v1/sms/sources
Request
Request parameters
For details about the request parameters, see Table 1.
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
state |
No |
String |
Specifies the source server status. |
name |
No |
String |
Specifies the name of the source server. |
id |
No |
String |
Specifies the source server ID. |
ip |
No |
String |
Specifies the IP address of the source server. |
num_per_page |
No |
int |
Specifies the number of source servers recorded on each page. |
page_num |
No |
int |
Specifies the page number (starting from 0). |
Response
Response parameters
For details about the response parameters, see Table 2.
Parameter |
Type |
Description |
---|---|---|
count |
int |
Specifies the number of source servers. |
source_servers |
JSON array |
Specifies the list of source servers. For details, see Table 3. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the ID of the record in the SMS database. |
ip |
String |
Specifies the IP address of the source server. |
name |
String |
Specifies the name of the source server. |
hostname |
String |
Specifies the name displayed after you log in to the source server. |
add_date |
long |
Specifies the timestamp reported to SMS. |
os_type |
String |
Specifies the operating system (OS) type of the source server. The value can be WINDOWS or LINUX. |
os_version |
String |
Specifies the OS version, for example, WINDOWS7_64BIT. |
oem_system |
Boolean |
Specifies whether the OS is an OEM OS. |
state |
String |
Specifies the check status of the source server.
|
connected |
Boolean |
Specifies the status of the connection between the migration Agent on the source server and the SMS server.
|
current_task |
JSON |
Specifies the information about tasks bound to the source server. For details, see Table 6. |
init_target_server |
JSON |
Specifies the recommended specifications of the target ECS to which data is to be migrated. For details, see Table 4. |
Parameter |
Type |
Description |
---|---|---|
disks |
JSON array |
Specifies the recommended disk information of the target ECS. For details, see Table 5. |
Parameter |
Type |
Description |
---|---|---|
name |
String |
Specifies the disk name. |
size |
long |
Specifies the disk capacity (byte). |
device_use |
JSON |
Specifies the disk function.
|
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the ID of the task associated with the source server. |
name |
String |
Specifies the name of the task associated with the source server. |
state |
String |
Specifies the status of the task associated with the source server.
|
Example
- Example request
- Example response
{ "count": 1, "source_servers": [ { "id": "80d6d78d-3350-4c6e-92b1-3ad88b16d8d8", "ip": "x.x.x.x", "name": "first", "hostname": "hello", "add_date": 1528178836000, "os_type": "WINDOWS", "os_version": "WINDOWS7_64BIT", "os_description": null, "oem_system": false, "state": "UNAVAILABLE", "connected": false, "current_task": { "id": "dfedc7eb-cadc-4f27-ae3c-b5e4f05e1c83", "name": "sms_task_smssrc", "state": "SUCCESS" }, "init_target_server": { "disks": [ { "name": "Disk 0", "size": 171798691840, "device_use": "OS" }, { "name": "Disk 1", "size": 215822106624, "device_use": "NORMAL" } ] } } }
Status Codes
See Status Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot