Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ImageActionService

Hierarchy

  • ImageActionService

Index

Constructors

constructor

Methods

convertImageToSnapshot

  • convertImageToSnapshot(imageId: number): Promise<Action>
  • Convert an image (a backup for example) to a snapshot

    Example

    import { DigitalOcean } from 'digitalocean-deno';
    
    const client = new DigitalOcean('your-api-key');
    const action = await client.imageActions.convertImageToSnapshot('image-id');

    Parameters

    • imageId: number

    Returns Promise<Action>

getExistingImageAction

  • getExistingImageAction(imageId: number, actionId: number): Promise<Action>
  • Retrieve the status of an image action

    Example

    import { DigitalOcean } from 'digitalocean-deno';
    
    const client = new DigitalOcean('your-api-key');
    const action = await client.imageActions.getExistingImageAction('image-id', 'action-id');

    Parameters

    • imageId: number
    • actionId: number

    Returns Promise<Action>

transferImage

  • transferImage(imageId: number, region: string): Promise<Action>
  • Transfer an image to another region

    Example

    import { DigitalOcean } from 'digitalocean-deno';
    
    const client = new DigitalOcean('your-api-key');
    const action = await client.imageActions.transferImage('image-id', 'nyc1');

    Parameters

    • imageId: number
    • region: string

    Returns Promise<Action>

Generated using TypeDoc