Use the create
method to create a new drive.
try {
const driveName = 'new_drive_name'; // The name of the new drive to create.
const storageClass = 'storage_class_name'; // (optional) The storage class for the new drive.
const newDrive = await sdk.drive.create(driveName, storageClass);
console.log('New drive created:', newDrive);
} catch (error) {
console.error(error.message);
}
Params
driveName
(string): The name of the new drive to create.storageClass
(string): (optional) The storage class for the new drive. (hot, warm, or glacier)
Required API Key Permission
Create Directory