Scalr\Api\Service\User\V1beta0\Controller\Roles::fetchImageAction PHP Method

fetchImageAction() public method

Fetches specified Image. It actually checks relations and redirects to Image
public fetchImageAction ( integer $roleId, string $imageId ) : mixed
$roleId integer The identifier of the Role
$imageId string The identifier of the Image (uuid)
return mixed
    public function fetchImageAction($roleId, $imageId)
    {
        $this->checkScopedPermissions('IMAGES');
        $this->getImage($roleId, $imageId);
        return $this->app->invokeRoute('User_Images:fetch', $imageId);
    }