This support forum is no longer in use. Please use the Cloudinary Community at https://community.cloudinary.com/ to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

get publicId of all images on cloudinary

Comments

3 comments

  • Avatar
    Maor Gariv

    Hi Harish,

    ListResources returns an object that holds the resources' data.

    Please note that you can set MaxResults to be larger than 10 (up to 500).

     

    For example,

         ListResourcesResult res = new ListResourcesResult();
                ListResourcesParams resParam = new ListResourcesParams()
                {
                    MaxResults = 500
                };
                res = cloudinary.ListResources(resParam);
                foreach (var resource in res.Resources){
                    Console.WriteLine(resource.PublicId);
                }

     

    0
    Comment actions Permalink
  • Avatar
    Harish rathi

    Thanks a lot Maor for the response.

     

    It would still be lot resource heavy to get all the information of image when I just want is public-id's, Is there a way to specify only the information I need?

     

    Thanks, Harish

    0
    Comment actions Permalink
  • Avatar
    Maor Gariv

    Hi Harish,

     

    We currently don't support getting only custom field in a response but it sounds interesting so I added it as a feature request in your behalf:)

    I'll gladly let you know if and when it's ready and published.

     

    In the meantime, the response holds the basic information on an image (public_id, upload time, version, etc.)

    Please note that it's recommended to save the version together with the public_id in your records to serve the latest image.

    Hope it helps.

     

    Best,

    0
    Comment actions Permalink

Post is closed for comments.