Querying All Migration Tasks or a Specified Migration Task of an Instance
Function
This API is used to query all migration tasks or a specified migration task of an instance.
URI
GET /v2/{project_id}/instances/{instance_id}/metadata
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain it, see Obtaining a Project ID. |
instance_id |
Yes |
String |
Instance ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
id |
No |
String |
The task ID. |
type |
No |
String |
Query type. |
offset |
No |
String |
Current page number, which starts from 1. |
limit |
No |
String |
Current page size. |
name |
No |
String |
|
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
total |
Integer |
Total number of metadata migration tasks. |
task |
Array of MetadataTask objects |
List of metadata migration tasks. |
Example Requests
Querying all migration tasks of a RocketMQ instance
GET https://{endpoint}/v2/{project_id}/instances/{instance_id}/metadata
Example Responses
Status code: 200
Status code.
{ "total" : 1, "task" : [ { "id" : "6cf4dcd3-8471-4139-8b5b-8a3a71f704c7", "name" : "task-932331847", "start_date" : "2023-03-13 19:43:32.12", "status" : "finished", "type" : "rabbitToRocket" } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
Status code. |
Error Codes
See Error 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