Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ActionService

Hierarchy

  • ActionService

Index

Constructors

constructor

Methods

getAllActions

  • getAllActions(perPage?: undefined | number, page?: undefined | number): 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);

    Parameters

    • Optional perPage: undefined | number
    • Optional page: undefined | number

    Returns Promise<Action[]>

getExistingAction

  • getExistingAction(id: number): Promise<Action>
  • Get an existing account action based on the provided ID

    Example

    import { DigitalOcean } from 'digitalocean-deno';
    
    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