Querying the Total Number of Migration Tasks of a Tenant
Function
This API is used to query the total number of migration tasks of a tenant.
URI
GET /v1/{project_id}/objectstorage/task?totalcount={true}&state={state}
Table 1 describes the parameters in the URI.
Parameter |
Mandatory |
Description |
---|---|---|
project_id |
Yes |
Specifies the project ID. |
totalcount |
Yes |
Specifies the total number of tasks to be returned by the API. true indicates that the number of tasks that meet the criteria will be returned by the API. |
state |
No |
Specifies the task status as follows:
|
Request
Request Parameters
None.
Examples
Request example
GET /v1/{project_id}/objectstorage/task?totalcount=true&state=0
Response example
{ "taskcount": 35 }
Status Code
For details about the status code, see Status Code.
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