How to get status of webspace (active,suspended,disabled)
fferraro87 opened this issue · 2 comments
fferraro87 commented
Hi,
can i get status of webspace such as active,suspended or disabled?
Thanks for your work!
aadlung commented
PleskX\Api\Struct\Webspace\Info does not include the "status" variable - like the others it seems (I added it to my ServicePlans for example).
You can add it manually to the file Info.php in the Struct\Webspace folder. Although this will be lost with every composer or package update
namespace PleskX\Api\Struct\Webspace;
class Info extends \PleskX\Api\Struct
{
/** @var integer */
public $id;
/** @var string */
public $guid;
/** @var string */
public $status;
public function __construct($apiResponse)
{
$this->_initScalarProperties($apiResponse, [
'id',
'guid',
'status'
]);
}
}
fferraro87 commented
Thanks a lot, now i can get it, thanks again