# /tasks/list

**GET /tasks/list/** *(int: limit)* **/** *(int: offset)*

Görevlerin listesini döndürür.

Örnek request:

> curl -H "Authorization: Bearer S4MPL3" http://localhost:8090/tasks/list

Örnek response:

> {  
>  "tasks": \[  
>  {  
>  "category": "url",  
>  "machine": null,  
>  "errors": \[\],  
>  "target": "http://www.malicious.site",  
>  "package": null,  
>  "sample\_id": null,  
>  "guest": {},  
>  "custom": null,  
>  "owner": "",  
>  "priority": 1,  
>  "platform": null,  
>  "options": null,  
>  "status": "pending",  
>  "enforce\_timeout": false,  
>  "timeout": 0,  
>  "memory": false,  
>  "tags": \[\]  
>  "id": 1,  
>  "added\_on": "2012-12-19 14:18:25",  
>  "completed\_on": null  
>  },  
>  {  
>  "category": "file",  
>  "machine": null,  
>  "errors": \[\],  
>  "target": "/tmp/malware.exe",  
>  "package": null,  
>  "sample\_id": 1,  
>  "guest": {},  
>  "custom": null,  
>  "owner": "",  
>  "priority": 1,  
>  "platform": null,  
>  "options": null,  
>  "status": "pending",  
>  "enforce\_timeout": false,  
>  "timeout": 0,  
>  "memory": false,  
>  "tags": \[  
>  "32bit",  
>  "acrobat\_6",  
>  \],  
>  "id": 2,  
>  "added\_on": "2012-12-19 14:18:25",  
>  "completed\_on": null  
>  }  
>  \]  
> }

Parametreler:

- limit (isteğe bağlı) (int) - döndürülen görevlerin maksimum sayısı
- offset (isteğe bağlı) (int) - veri ofseti

Durum kodları:

- 200 - hata yok