Use the getAll method to retrieve a list of all drives.

try {
  const allDrives = await sdk.drive.getAll();
  console.log('List of Drives:', allDrives);
} catch (error) {
  console.error(error.message);
}

Required API Key Permission

  • ReadDirectory