Download OpenAPI specification:Download
project_id required | string The project id |
endTime required | string dd/MM/yyyy |
startTime required | string dd/MM/yyyy |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/billing/statistics/projects/{project_id}/request', qs: {endTime: 'SOME_STRING_VALUE', startTime: 'SOME_STRING_VALUE'}, headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string The project id |
endTime required | string dd/MM/yyyy |
startTime required | string dd/MM/yyyy |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/billing/statistics/projects/{project_id}/traffic', qs: {endTime: 'SOME_STRING_VALUE', startTime: 'SOME_STRING_VALUE'}, headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string The project id |
endTime required | string dd/MM/yyyy |
startTime required | string dd/MM/yyyy |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/billing/statistics/projects/{project_id}/usage', qs: {endTime: 'SOME_STRING_VALUE', startTime: 'SOME_STRING_VALUE'}, headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string The project id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/projects/{project_id}/quota', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string The project id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/projects/{project_id}/traffic', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string The project id |
endTime required | string MM/dd/yyyy HH:mm |
startTime required | string MM/dd/yyyy HH:mm |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/projects/{project_id}/traffic/search', qs: {endTime: 'SOME_STRING_VALUE', startTime: 'SOME_STRING_VALUE'}, headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string The project id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/projects/{project_id}/usage', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string The project id |
endTime required | string MM/dd/yyyy HH:mm |
startTime required | string MM/dd/yyyy HH:mm |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/projects/{project_id}/usage/search', qs: {endTime: 'SOME_STRING_VALUE', startTime: 'SOME_STRING_VALUE'}, headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
user_id required | string The user portal id |
end_time required | string MM/dd/yyyy HH:mm |
start_time required | string MM/dd/yyyy HH:mm |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/users/{user_id}/usage', qs: {end_time: 'SOME_STRING_VALUE', start_time: 'SOME_STRING_VALUE'}, headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string The project id |
limit | ref Example: limit=20 Page size |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}', qs: {limit: 'SOME_REF_VALUE'}, headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string The bucket name |
project_id required | string The project id |
const request = require('request'); const options = { method: 'POST', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}', headers: { accept: 'application/json', 'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string The bucket name |
project_id required | string The project id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string The bucket name |
project_id required | string The project id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}/acl', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string The bucket name |
project_id required | string The project id |
req
Array of objects (AccountCanonical) | |
Array of objects (Group) | |
ownerCanonical | Array of strings Items Enum: "FULL_CONTROL" "READ" "READ_ACP" "WRITE" "WRITE_ACP" |
{- "accountCanonicals": [
- {
- "permission": "FULL_CONTROL",
- "userId": "string"
}
], - "groups": [
- {
- "grantee": "ALL_USERS",
- "permission": "FULL_CONTROL"
}
], - "ownerCanonical": [
- "FULL_CONTROL"
]
}
bucket required | string The bucket name |
project_id required | string The project id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}/cors', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string The bucket name |
project_id required | string The project id |
req
AllowedHeaders | Array of strings Value for the Access-Control-Allow-Headers header |
AllowedMethods | Array of strings Value for the Access-Control-Allow-Methods header |
AllowedOrigins | Array of strings Value for the Access-Control-Allow-Origin header |
ExposeHeaders | Array of strings Value for the Access-Control-Expose-Headers header |
MaxAgeSeconds | integer <int32> Value for the Access-Control-Max-Age header |
[- {
- "AllowedHeaders": [
- "string"
], - "AllowedMethods": [
- "string"
], - "AllowedOrigins": [
- "string"
], - "ExposeHeaders": [
- "string"
], - "MaxAgeSeconds": 0
}
]
bucket required | string The bucket name |
project_id required | string The project id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}/cors', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string The bucket name |
project_id required | string The project id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}/encryption', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string The bucket name |
project_id required | string The project id |
req
enable | boolean |
{- "enable": true
}
bucket required | string The bucket name |
project_id required | string The project id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}/lifecycle_rules', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string The bucket name |
project_id required | string The project id |
req
abortIncompleteMultipartUploadDays | integer <int32> Stop all incomplete multipart uploads and delete the parts associated with the multipart upload |
deleteMarkersExpiration | boolean Delete expired object delete markers to improve performance |
expirationDays | integer <int32> Define when to expire the current version of objects |
name | string The rule name |
nonCurrentVersionExpirationDays | integer <int32> Define when to delete non-current versions of objects permanently |
object Limit the objects by tag | |
prefix | string Limit the objects by prefix |
{- "abortIncompleteMultipartUploadDays": 0,
- "deleteMarkersExpiration": true,
- "expirationDays": 0,
- "name": "string",
- "nonCurrentVersionExpirationDays": 0,
- "objectTags": {
- "property1": "string",
- "property2": "string"
}, - "prefix": "string"
}
bucket required | string The bucket name |
project_id required | string The project id |
rule_name required | string The lifecycle rule name |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}/lifecycle_rules/{rule_name}', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string The bucket name |
project_id required | string The project id |
rule_name required | string The lifecycle rule name |
req
abortIncompleteMultipartUploadDays | integer <int32> Stop all incomplete multipart uploads and delete the parts associated with the multipart upload |
deleteMarkersExpiration | boolean Delete expired object delete markers to improve performance |
expirationDays | integer <int32> Define when to expire the current version of objects |
name | string The rule name |
nonCurrentVersionExpirationDays | integer <int32> Define when to delete non-current versions of objects permanently |
object Limit the objects by tag | |
prefix | string Limit the objects by prefix |
{- "abortIncompleteMultipartUploadDays": 0,
- "deleteMarkersExpiration": true,
- "expirationDays": 0,
- "name": "string",
- "nonCurrentVersionExpirationDays": 0,
- "objectTags": {
- "property1": "string",
- "property2": "string"
}, - "prefix": "string"
}
bucket required | string The bucket name |
project_id required | string The project id |
rule_name required | string The lifecycle rule name |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}/lifecycle_rules/{rule_name}', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string The bucket name |
project_id required | string The project id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}/notification', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string The bucket name |
project_id required | string The project id |
req
dateBasedPartitioning | boolean Select report name rule: No-date-based partitioning (Ex: bucketA/2013-11-01-21-32) or Date-based partitioning (Ex: bucketB/2023/03/01/2023-03-01-21-32) |
description | string^[A-Za-z\d_.\- ]{0,256}$ Give your Event notification a description. |
events | Array of strings unique Select event type to receive notifications: s3:ObjectCreated:|Put|Post|Copy|CompleteMultipartUpload, s3:ObjectRemoved:|Delete|DeleteMarkerCreated, s3:ObjectLifecycle:Expiration:*|Current|DeleteMarker |
name | string^[A-Za-z]$|^[A-Za-z](?:[A-Za-z\d-]){0,61}[A-Z... Give your Event notification a name. |
prefix | string Limit the notifications to objects with key starting with specified characters. |
reportBucket | string Select a bucket for the report. |
suffix | string Limit the notifications to objects with key ending with specified characters. |
{- "dateBasedPartitioning": true,
- "description": "string",
- "events": "s3:ObjectCreated:Put",
- "name": "string",
- "prefix": "string",
- "reportBucket": "string",
- "suffix": "string"
}
bucket required | string The bucket name |
id required | string The event notification id |
project_id required | string The project id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}/notification/{id}', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string The bucket name |
id required | string The event notification id |
project_id required | string The project id |
req
dateBasedPartitioning | boolean Select report name rule: No-date-based partitioning (Ex: bucketA/2013-11-01-21-32) or Date-based partitioning (Ex: bucketB/2023/03/01/2023-03-01-21-32) |
description | string^[A-Za-z\d_.\- ]{0,256}$ Give your Event notification a description. |
events | Array of strings unique Select event type to receive notifications: s3:ObjectCreated:|Put|Post|Copy|CompleteMultipartUpload, s3:ObjectRemoved:|Delete|DeleteMarkerCreated, s3:ObjectLifecycle:Expiration:*|Current|DeleteMarker |
name | string^[A-Za-z]$|^[A-Za-z](?:[A-Za-z\d-]){0,61}[A-Z... Give your Event notification a name. |
prefix | string Limit the notifications to objects with key starting with specified characters. |
reportBucket | string Select a bucket for the report. |
suffix | string Limit the notifications to objects with key ending with specified characters. |
{- "dateBasedPartitioning": true,
- "description": "string",
- "events": "s3:ObjectCreated:Put",
- "name": "string",
- "prefix": "string",
- "reportBucket": "string",
- "suffix": "string"
}
bucket required | string The bucket name |
id required | string The event notification id |
project_id required | string The project id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}/notification/{id}', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string The bucket name |
project_id required | string The project id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}/object_lock', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string The bucket name |
project_id required | string The project id |
req
mode | string The object lock mode |
periodUnit | string Period unit (days or years) |
periodVal | integer <int32> Number of days or years |
{- "mode": "COMPLIANCE",
- "periodUnit": "days",
- "periodVal": 30
}
bucket required | string The bucket name |
project_id required | string The project id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}/policy', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string The bucket name |
project_id required | string The project id |
req
policy | string Give your json string of bucket policy config. |
{- "policy": "string"
}
bucket required | string The bucket name |
project_id required | string The project id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}/policy', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string The bucket name |
project_id required | string The project id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}/versioning', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string The bucket name |
project_id required | string The project id |
req
enable | boolean |
{- "enable": true
}
bucket required | string The bucket name |
project_id required | string The project id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/{bucket}/details', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string bucket |
project_id required | string project_id |
limit | ref Page size |
marker | ref Last object name of previous page |
prefix | ref Filter objects by prefix |
show_version | ref Example: show_version=false Retrieve all object versions |
version_id_marker | ref Last version ID of previous page |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}', qs: { limit: 'SOME_REF_VALUE', marker: 'SOME_REF_VALUE', prefix: 'SOME_REF_VALUE', show_version: 'SOME_REF_VALUE', version_id_marker: 'SOME_REF_VALUE' }, headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string bucket |
project_id required | string project_id |
prefix | ref Filter directories by prefix |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}/directories', qs: {prefix: 'SOME_REF_VALUE'}, headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string bucket |
project_id required | string project_id |
req
directoryName | string The directory name |
{- "directoryName": "string"
}
bucket required | string bucket |
directory required | string directory |
project_id required | string project_id |
req
isDeleteVersion | boolean Is delete all object versions |
{- "isDeleteVersion": true
}
bucket required | string bucket |
object required | string object |
project_id required | string project_id |
req
versionId | string The object version ID |
{- "versionId": "string"
}
bucket required | string bucket |
object required | string object |
project_id required | string project_id |
versionId | ref The object version ID |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}/objects/{object}/acls', qs: {versionId: 'SOME_REF_VALUE'}, headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string bucket |
object required | string object |
project_id required | string project_id |
req
Array of objects (AccountCanonical) | |
Array of objects (Group) | |
ownerCanonical | Array of strings Items Enum: "FULL_CONTROL" "READ" "READ_ACP" "WRITE" "WRITE_ACP" |
versionId | string |
{- "accountCanonicals": [
- {
- "permission": "FULL_CONTROL",
- "userId": "string"
}
], - "groups": [
- {
- "grantee": "ALL_USERS",
- "permission": "FULL_CONTROL"
}
], - "ownerCanonical": [
- "FULL_CONTROL"
], - "versionId": "string"
}
bucket required | string bucket |
object required | string object |
project_id required | string project_id |
req
destinationBucketName | string The destination bucket |
destinationObjectName | string The destination object name |
{- "destinationBucketName": "string",
- "destinationObjectName": "string"
}
bucket required | string bucket |
object required | string object |
project_id required | string project_id |
versionId | ref The object version ID |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}/objects/{object}/details', qs: {versionId: 'SOME_REF_VALUE'}, headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string bucket |
object required | string object |
project_id required | string project_id |
req
timeExpire | integer <int64> The expired time of presigned URL in second |
versionId | string The object version ID |
viewMode | string View or download with presigned URL |
{- "timeExpire": 0,
- "versionId": "string",
- "viewMode": "view|download"
}
bucket required | string bucket |
object required | string object |
project_id required | string project_id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}/objects/{object}/metadata', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string bucket |
object required | string object |
project_id required | string project_id |
req
required | object Map of metadata |
{- "metadata": {
- "string": "string"
}
}
bucket required | string bucket |
object required | string object |
project_id required | string project_id |
req
destinationBucketName | string The destination bucket |
destinationObjectName | string The destination object name |
{- "destinationBucketName": "string",
- "destinationObjectName": "string"
}
bucket required | string bucket |
object required | string object |
project_id required | string project_id |
req
contentType | string The content type of uploading object |
{- "contentType": "string"
}
bucket required | string bucket |
object required | string object |
project_id required | string project_id |
req
Array of objects (PartEtagDTO) The list of uploaded object part etag | |
uploadId | string The ID of multipart upload |
{- "partETags": [
- {
- "accessControlList": "string",
- "createdDate": "string",
- "etag": "string",
- "exist": true,
- "id": "string",
- "isDirectory": true,
- "isPublic": true,
- "isShowed": true,
- "lastModified": "string",
- "metaData": {
- "property1": "string",
- "property2": "string"
}, - "name": "string",
- "partNumber": 0,
- "shortName": "string",
- "size": 0,
- "type": "string"
}
], - "uploadId": "string"
}
bucket required | string bucket |
object required | string object |
project_id required | string project_id |
req
uploadId | string The ID of multipart upload |
{- "uploadId": "string"
}
bucket required | string bucket |
object required | string object |
project_id required | string project_id |
versionId | ref The object version ID |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}/objects/{object}/object_legal_hold', qs: {versionId: 'SOME_REF_VALUE'}, headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string bucket |
object required | string object |
project_id required | string project_id |
req
status required | string Enable or disable object legal hold |
versionId | string The object version ID |
{- "status": "ON|OFF",
- "versionId": "string"
}
bucket required | string bucket |
object required | string object |
project_id required | string project_id |
versionId | ref The object version ID |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}/objects/{object}/object_lock', qs: {versionId: 'SOME_REF_VALUE'}, headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
bucket required | string bucket |
object required | string object |
project_id required | string project_id |
extReq
mode required | string The object lock mode |
retainUntilDate required | integer <int64> The date (Epoch timestamp) that the retention period end on |
versionId | string The object version ID |
{- "mode": "COMPLIANCE",
- "retainUntilDate": 1735664400,
- "versionId": "string"
}
bucket required | string bucket |
object required | string object |
project_id required | string project_id |
extReq
newObjectName | string Input new name of object |
{- "newObjectName": "string"
}
bucket required | string bucket |
object required | string object |
project_id required | string project_id |
req
partNumber | integer <int32> The part number of multipart upload |
timeExpire | integer <int64> The expired time of presigned URL in second |
uploadId | string The ID of multipart upload |
{- "partNumber": 0,
- "timeExpire": 0,
- "uploadId": "string"
}
bucket required | string bucket |
object required | string object |
project_id required | string project_id |
version_id required | string version_id |
const request = require('request'); const options = { method: 'PUT', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/ceph/projects/{project_id}/buckets/{bucket}/objects/{object}/versions/{version_id}', headers: { accept: 'application/json', 'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/projects', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
req
projectName required | string |
quotaInGBytes required | integer <int64> |
{- "projectName": "string",
- "quotaInGBytes": 0
}
project_id required | string The project id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/projects/{project_id}/details', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string The project id |
req
quotaInGBytes required | integer <int64> |
{- "quotaInGBytes": 0
}
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/regions', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
region_id required | string The region id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm04-api.vstorage.vngcloud.vn/api/v1/regions/{region_id}', headers: {'content-type': '*/*', Authorization: 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });