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.
Last Article: Querying All Migration Tasks of a Tenant
Next Article: Querying Migration Tasks by Task IDs
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.