Scalr\Api\Service\User\V1beta0\Controller\Images::describeAction PHP Метод

describeAction() публичный Метод

Retrieves the list of the images
public describeAction ( )
    public function describeAction()
    {
        $this->checkScopedPermissions('IMAGES');
        $platformFilter = $this->params('cloudPlatform');
        $regionFilter = $this->params('cloudLocation');
        if (!empty($regionFilter) && empty($platformFilter)) {
            throw new ApiErrorException(400, ErrorMessage::ERR_INVALID_STRUCTURE, "Both 'cloudPlatform' and 'cloudLocation' filters should be provided with request.");
        }
        return $this->adapter('image')->getDescribeResult($this->getDefaultCriteria());
    }