Class ActionService

Hierarchy

  • ActionService

Constructors

Methods

  • 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-js';

    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);

    Parameters

    • Optional perPage: number
    • Optional page: number

    Returns Promise<Action[]>

  • Get an existing account action based on the provided ID

    Example

    import { DigitalOcean } from 'digitalocean-js';

    const client = new DigitalOcean('your-api-key');
    const action = await client.actions.getExistingAction('specific-action-id');

    Parameters

    • id: number

    Returns Promise<Action>

Generated using TypeDoc