Type to search...

Image: exists

Fast way to check if the image exists.


HTTP request

HEAD /image/v1/c/<cloudId>/o/<publicId> HTTP/1.1


Paramete name Value Description
Path parameters
cloudId String ID of cloud
publicId String Public ID of image

Request Body

This method does not support request body.


This method does not contain response body.

Response HTTP status code

HTTP status code Description
200 With given public ID, the image exists in given the cloud
404 With given public ID, the image does not exist in given the cloud

For more information about HTTP codes, click here.

Rate limit

Detailed information for image rate limitation is available in this article.


use shardimage\shardimagephp\auth\Client;
use shardimage\shardimagephp\models\image\IndexParams;
$client = new Client([
    'apiKey' => '<apiKey>',
    'apiSecret' => '<apiSecret>',
    'imageSecret' => '<imageSecret>',
$result = $client->getImageService()->exists(['cloudId' => '<cloudId>', 'publicId' => '<publicId>']);
Table of contents