Methods
getAllActions
- getAllActions(perPage?: undefined | number, page?: undefined | number): Promise<Action[]>
-
Parameters
-
Optional perPage: undefined | number
-
Optional page: undefined | number
Returns Promise<Action[]>
getExistingAction
- getExistingAction(id: number): Promise<Action>
-
Parameters
Returns Promise<Action>
List all of the actions that have been executed on the current account. Limited to 25 actions per page unless otherwise specified.
Example
import { DigitalOcean } from 'digitalocean-deno'; const client = new DigitalOcean('your-api-key'); const actions = await client.actions.getAllActions(); // Paginate actions, 10 per page, starting on page 1 actions = await client.actions.getAllActions(10, 1);