# Actions

## List

<mark style="color:blue;">`GET`</mark> `https://api.suble.io/projects/:projectId/vm/:vmId/actions/:amount?`

Retrieve a list of actions performed on virtual machine.

#### Path Parameters

| Name      | Type   | Description                                         |
| --------- | ------ | --------------------------------------------------- |
| projectId | string | Unique Id for the project                           |
| vmId      | string | Unique Id for the virtual machine                   |
| amount    | number | Amount of actions that will be fetched. Default: 25 |

#### Headers

| Name          | Type   | Description               |
| ------------- | ------ | ------------------------- |
| Authorization | string | User token or project key |

{% tabs %}
{% tab title="200 List of actions" %}

```
[
        {
                "_id": ObjectId,
                "user": ObjectId, // nullable
                "apikey": String, // nullable
                "type": String,
                "command": String,
                "vm": String,
                "running": Boolean,
                "progress": Number,
                "date": Number // Date time unix
        }
]
```

{% endtab %}

{% tab title="400 Error message will occur if provided information is invalid." %}

```
{
    "error": String
}
```

{% endtab %}
{% endtabs %}
