Scalr\Api\Service\User\V1beta0\Controller\Servers::describeAction PHP Method

describeAction() public method

Retrieves the list of the roles that are available on the Environment scope
public describeAction ( )
    public function describeAction()
    {
        if (!$this->hasPermissions(Acl::RESOURCE_FARMS) && !$this->hasPermissions(Acl::RESOURCE_TEAM_FARMS) && !$this->hasPermissions(Acl::RESOURCE_OWN_FARMS) && !$this->hasPermissions(Acl::RESOURCE_IMAGES_ENVIRONMENT, ACL::PERM_IMAGES_ENVIRONMENT_MANAGE)) {
            throw new ApiInsufficientPermissionsException();
        }
        return $this->adapter('server')->getDescribeResult($this->getDefaultCriteria(), [Server::class, 'findWithProperties']);
    }