EAR/TPCF/TAS
To resolve this issue, use one of the following options:
cf curl "/v3/tasks?states=RUNNING&organization_guids=<org_guid>&space_guids=<space_guid>"
You can get the guid's with cf org <org> --guid and cf space <space> --guid.
E.g:
cf curl "/v3/tasks?states=RUNNING&organization_guids=cc4d8f3d-####-####-####-a968354dbc60&space_guids=92667838-####-####-####-f165ad1cf7ae"
You will receive an output similar to the following:
cf curl "/v3/tasks?states=RUNNING&organization_guids=cc4d8f3d-####-####-####-a968354dbc60&space_guids=92667838-####-####-####-f165ad1cf7ae"
{
"pagination": {
"total_results": 1,
"total_pages": 1,
"first": {
"href": "https://api.run-35.slot-##.###.#####.com/v3/tasks?organization_guids=cc4d8f3d-e3d7-####-9e3c-a968354dbc60&page=1&per_page=50&space_guids=92667838-####-####-####-f165ad1cf7ae&states=RUNNING"
},
"last": {
"href": "https://api.run-35.slot-##.###.#####.com/v3/tasks?organization_guids=cc4d8f3d-e3d7-####-9e3c-a968354dbc60&page=1&per_page=50&space_guids=92667838-####-####-####-f165ad1cf7ae&states=RUNNING"
},
"next": null,
"previous": null
},
"resources": [
{
"guid": "ab445be7-fba3-####-####-ae9d5a936247",
"sequence_id": 5,
"name": "my-task2",
"state": "RUNNING",
"memory_in_mb": 1024,
"disk_in_mb": 1024,
"result": {
"failure_reason": null
},
"created_at": "2021-02-02T11:19:20Z",
"updated_at": "2021-02-02T11:19:20Z",
"droplet_guid": "eabf2116-####-####-98c8-bdb76bb12b11",
"relationships": {
"app": {
"data": {
"guid": "984d8bac-####-####-931d-e33f94f560fb"
}
}
},
"metadata": {
"labels": {},
"annotations": {}
},
"links": {
"self": {
"href": "https://api.run-35.slot-##.###.####.com/v3/tasks/ab445be7-fba3-####-a877-ae9d5a936247"
},
"app": {
"href": "https://api.run-35.slot-##.###.####.com/v3/apps/984d8bac-####-4713-931d-e33f94f560fb"
},
"cancel": {
"href": "https://api.run-35.slot-##.###.####.com/v3/tasks/ab445be7-fba3-####-a877-ae9d5a936247/actions/cancel",
"method": "POST"
},
"droplet": {
"href": "https://api.run-35.slot-##.###.####.com/v3/droplets/eabf2116-4aa0-####-98c8-bdb76bb12b11"
}
}
}
]
}