All URIs are relative to https://api.aspose.cloud/v4.0
Method | Description |
---|---|
getDiscUsage | Get disc usage |
objectExists | Check if file or folder exists |
storageExists | Check if storage exists |
DiscUsage getDiscUsage(opts)
Get disc usage
var Asposehtmlcloud = require('@asposecloud/aspose-html-cloud');
// Get keys from aspose site.
// There is free quota available.
// For more details, see https://purchase.aspose.cloud/pricing
var conf = {
"basePath":"https://api.aspose.cloud/v4.0",
"authPath":"https://api.aspose.cloud/connect/token",
"apiKey":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"appSID":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"defaultUserAgent":"Webkit"
};
var apiInstance = new Asposehtmlcloud.StorageApi(conf);
var opts = {
'storageName': "storageName_example" // String | Storage name
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getDiscUsage(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
storageName | String | Storage name | [optional] |
- Content-Type: application/json
- Accept: application/json
ObjectExist objectExists(path, opts)
Check if file or folder exists
var Asposehtmlcloud = require('@asposecloud/aspose-html-cloud');
// Get keys from aspose site.
// There is free quota available.
// For more details, see https://purchase.aspose.cloud/pricing
var conf = {
"basePath":"https://api.aspose.cloud/v4.0",
"authPath":"https://api.aspose.cloud/connect/token",
"apiKey":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"appSID":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"defaultUserAgent":"Webkit"
};
var apiInstance = new Asposehtmlcloud.StorageApi(conf);
var path = "path_example"; // String | File or folder path e.g. '/file.ext' or '/folder'
var opts = {
'storageName': "storageName_example", // String | Storage name
'versionId': "versionId_example" // String | File version ID
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.objectExists(path, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
path | String | File or folder path e.g. '/file.ext' or '/folder' | |
storageName | String | Storage name | [optional] |
versionId | String | File version ID | [optional] |
- Content-Type: application/json
- Accept: application/json
StorageExist storageExists(storageName)
Check if storage exists
var Asposehtmlcloud = require('@asposecloud/aspose-html-cloud');
// Get keys from aspose site.
// There is free quota available.
// For more details, see https://purchase.aspose.cloud/pricing
var conf = {
"basePath":"https://api.aspose.cloud/v4.0",
"authPath":"https://api.aspose.cloud/connect/token",
"apiKey":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"appSID":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"defaultUserAgent":"Webkit"
};
var apiInstance = new Asposehtmlcloud.StorageApi(conf);
var storageName = "storageName_example"; // String | Storage name
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.storageExists(storageName, callback);
Name | Type | Description | Notes |
---|---|---|---|
storageName | String | Storage name |
- Content-Type: application/json
- Accept: application/json