SoftNAS API Guide
Menu
Index

3.39. parted_command

 
Description
 
This method is used to issue a disk partitioning command.
POST parted_command
 
 
 
Request
 
In addition the the Standard Request Structure, the following parameters are required.
 
For definitions of parameters, see section Properties
Parameter
Parameter Name
Required?
partition_all
 
N
add_partition
 
N
remove_partition
 
N
disk name
 
N
 
Response
 
 
Example
{
    "result": {
        "msg": "/dev/xvdr has been created successfully.",
        "records": [],
        "success": true,
        "total": 0
    },
    "session_id": 11255,
    "success": true
}
 
 
Notes
 
On AWS, EBS disk devices always show as raw devices, even after partitioning. This is a known issue and peculiar to EBS disk device partitioning. Even though the devices may display as needing to be partitioned, they can be used within a pool.
 
 
Made with help of Dr.Explain