Rails asset administration
While using Cloudinary, all your images, videos, and other raw files are uploaded to your Cloudinary account. You can use our Media Library web interface to browse through and manage your uploaded media assets and generated transformations. In addition, you can use methods from the Upload and Admin APIs, which offer methods for managing, organizing, and creating media assets.
- Upload API methods can be used as needed.
- Admin API methods are rate-limited.
You can view the number of hourly Admin API requests allowed by your account plan in the Account page of your console settings.
On this page:
Upload API
In addition to the upload
method, this API includes methods for:
- renaming and permanetly deleting individual assets
- adding tags and context metadata to assets
- creating new assets such as text images, archives (zip or tgz), and sprites
- modifying existing assets.
Admin API
A secure API with methods for managing and organizing your media assets, including:
- listing and restoring assets
- bulk asset deleting
- managing upload presets, upload mappings, transformations, and folders
- updating existing assets
- performing advanced searches on the assets in your account
generating an account usage report
and more...
Example
The following Ruby example returns the details of an uploaded image according to its public ID, using the Admin API resource
method:
Sample output:
{ "bytes" : 120264, "created_at" : "2017-07-01T11:10:57Z", "derived" : [ { "bytes" : 5729, "format" : "jpg", "id" : "1892cd020611691462a8dc6616f81881", "secure_url" : "https://.../c_fill,w_100,h_100/v1312461204/sample.jpg", "transformation" : "c_fit,h_150,w_100", "url" : "https://.../image/upload/c_fill,w_100,h_100/v1312461204/sample.jpg" } { "bytes" : 19173, "format" : "jpg", "id" : "383e22a57167445552a3cdc16f0a0c85", "secure_url" : "https://.../upload/w_230,h_168,c_fit/v1312461204/sample.jpg", "transformation" : "w_230,h_168,c_fit", "url" : "https://.../image/upload/w_230,h_168,c_fit/v1312461204/sample.jpg" }], "format" : "jpg", "height" : 576, "next_cursor" : "c87e7b39f7fdd66ec31985196b455c40", "public_id" : "sample", "resource_type" : "image", "secure_url" : "https://.../demo/image/upload/v1371282172/sample.jpg", "type" : "upload", "url" : "https://res.cloudinary.com/demo/image/upload/v1371282172/sample.jpg", "version" : 1371282172, "width" : 864 }
✖️