AdminApi
class AdminApi
Enables Cloudinary Admin API functionality.
Learn more: Admin API Reference
Properties
ApiClient | $apiClient | Defined in AdminApi class. | from MiscTrait |
ApiClient | $apiV2Client | Defined in AdminApi class. | from AnalysisTrait |
Methods
Lists all root folders.
Lists sub-folders.
Creates a new empty folder.
Renames folder.
Deletes an empty folder.
Lists existing upload presets.
Retrieves the details of the specified upload preset.
Deletes the specified upload preset.
Updates the specified upload preset.
Creates a new upload preset.
Lists upload mappings by folder and its mapped template (URL).
Returns the details of the specified upload mapping.
Deletes an upload mapping.
Updates an existing upload mapping with a new template (URL).
Creates a new upload mapping.
Tests the reachability of the Cloudinary API.
Tests the reachability of the Cloudinary API asynchronously.
Gets account config details.
Gets cloud usage details.
Lists all the tags currently used for a specified asset type.
Analyzes an asset with the requested analysis type.
Analyzes an asset with the requested analysis type asynchronously.
AdminApi constructor.
Details
ApiResponse
rootFolders(array $options = [])
Lists all root folders.
ApiResponse
subFolders(string $ofFolderPath, array $options = [])
Lists sub-folders.
Returns the name and path of all the sub-folders of a specified parent folder. Limited to 2000 results.
ApiResponse
createFolder(string $path)
Creates a new empty folder.
ApiResponse
renameFolder(string $fromPath, string $toPath)
Renames folder.
ApiResponse
deleteFolder(string $path)
Deletes an empty folder.
The specified folder cannot contain any assets, but can have empty descendant sub-folders.
ApiResponse
uploadPresets(array $options = [])
Lists existing upload presets.
ApiResponse
uploadPreset(string $name, array $options = [])
Retrieves the details of the specified upload preset.
ApiResponse
deleteUploadPreset(string $name)
Deletes the specified upload preset.
ApiResponse
updateUploadPreset(string $name, array $options = [])
Updates the specified upload preset.
ApiResponse
createUploadPreset(array $options = [])
Creates a new upload preset.
ApiResponse
uploadMappings(array $options = [])
Lists upload mappings by folder and its mapped template (URL).
ApiResponse
uploadMapping(string $name)
Returns the details of the specified upload mapping.
Retrieve the mapped template (URL) of a specified upload mapping folder.
ApiResponse
deleteUploadMapping(string $name)
Deletes an upload mapping.
ApiResponse
updateUploadMapping(string $name, array $options = [])
Updates an existing upload mapping with a new template (URL).
ApiResponse
createUploadMapping(string $name, array $options = [])
Creates a new upload mapping.
ApiResponse
ping()
Tests the reachability of the Cloudinary API.
PromiseInterface
pingAsync()
Tests the reachability of the Cloudinary API asynchronously.
ApiResponse
config(array $options = [])
Gets account config details.
Fetches the account's configuration details with optional settings.
ApiResponse
usage(array $options = [])
Gets cloud usage details.
Returns a report detailing your current Cloudinary cloud usage details, including storage, bandwidth, requests, number of assets, and add-on usage. Note that numbers are updated periodically.
ApiResponse
tags(array $options = [])
Lists all the tags currently used for a specified asset type.
ApiResponse
analyze(string $inputType, string $analysisType, string|null $uri = null, array|null $parameters = null)
Analyzes an asset with the requested analysis type.
PromiseInterface
analyzeAsync(string $inputType, string $analysisType, string|null $uri = null, array|null $parameters = null)
Analyzes an asset with the requested analysis type asynchronously.
__construct(mixed $configuration = null)
AdminApi constructor.