Download OpenAPI specification:Download
Get a backup policy by ID
| id required  | string   Example:  bk-pol-6861d000-bb2e-11ed-afa1-0242ac120002 The id of backup policy.  | 
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vbackup-gateway/v1/backup-policies/bk-pol-6861d000-bb2e-11ed-afa1-0242ac120002', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "timestamp": 0,
 - "message": "string"
 
}Update a backup policy.
| id required  | string   Example:  bk-pol-6861d000-bb2e-11ed-afa1-0242ac120002 The id of backup policy.  | 
The information is used for update a backup policy.
| backendId | string  The backend ID.  | 
| projectId | string  The project ID.  | 
| name | string  The name of backup policy  | 
object (BackupPolicyConfig)   Configuration of the backup policy  | 
{- "backendId": "backup-id",
 - "projectId": "you-project Id",
 - "name": "string",
 - "config": {
- "hour": 0,
 - "minute": 0,
 - "timeZone": "string",
 - "dailyEnabled": true,
 - "dailyConfig": {
- "retention": 0
 
}, - "weeklyEnabled": true,
 - "weeklyConfig": {
- "dayOfWeek": 0,
 - "retention": 0
 
}, - "monthlyEnabled": true,
 - "monthlyConfig": {
- "type": "string",
 - "dayOfMonth": 0,
 - "weekOfMonth": 0,
 - "dayOfWeek": 0,
 - "retention": 0
 
}, - "isProtectedServer": true
 
} 
}{- "timestamp": 0,
 - "message": "string"
 
}Delete a backup policy.
| id required  | string   Example:  bk-pol-6861d000-bb2e-11ed-afa1-0242ac120002 The id of backup policy.  | 
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vbackup-gateway/v1/backup-policies/bk-pol-6861d000-bb2e-11ed-afa1-0242ac120002', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "timestamp": 0,
 - "message": "string"
 
}List Backup Policy with pagination and filtering.
| backendId | string   Example:  backendId=6861d000-bb2e-11ed-afa1-0242ac120002 A backend ID to filter backup policy by.  | 
| projectId | string   Example:  projectId=pro-6861d000-bb2e-11ed-afa1-0242ac120002 A project ID to filter backup policy by.  | 
| name | string   Example:  name=your-name A name to filter backup policy by.  | 
| page | integer <int32>    Example:  page=1 The page of items. It must start at 1.  | 
| size | integer <int32>    Example:  size=50 The size of items  | 
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vbackup-gateway/v1/backup-policies', qs: { backendId: 'SOME_STRING_VALUE', projectId: 'SOME_STRING_VALUE', name: 'SOME_STRING_VALUE', page: 'SOME_INTEGER_VALUE', size: 'SOME_INTEGER_VALUE' }, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "timestamp": 0,
 - "message": "string"
 
}Create a backup policy Endpoint.
The information is used to create a new backup policy.
| backendId | string  The backend ID.  | 
| projectId | string  The project ID.  | 
| name | string  The name of backup policy  | 
object (BackupPolicyConfig)   Configuration of the backup policy  | 
{- "backendId": "backup-id",
 - "projectId": "you-project Id",
 - "name": "string",
 - "config": {
- "hour": 0,
 - "minute": 0,
 - "timeZone": "string",
 - "dailyEnabled": true,
 - "dailyConfig": {
- "retention": 0
 
}, - "weeklyEnabled": true,
 - "weeklyConfig": {
- "dayOfWeek": 0,
 - "retention": 0
 
}, - "monthlyEnabled": true,
 - "monthlyConfig": {
- "type": "string",
 - "dayOfMonth": 0,
 - "weekOfMonth": 0,
 - "dayOfWeek": 0,
 - "retention": 0
 
}, - "isProtectedServer": true
 
} 
}{- "timestamp": 0,
 - "message": "string"
 
}List Backup Server for vServer
| backendId | string   Example:  backendId=6861d000-bb2e-11ed-afa1-0242ac120002 A backend ID to filter backup server by.  | 
| projectId | string   Example:  projectId=pro-6861d000-bb2e-11ed-afa1-0242ac120002 A project ID to filter backup server by.  | 
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vbackup-gateway/v1/vserver/backup-instances', qs: {backendId: 'SOME_STRING_VALUE', projectId: 'SOME_STRING_VALUE'}, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "timestamp": 0,
 - "message": "string"
 
}Create a Backup Server from vServer.
The information is used for create backup server
| projectId | string  The project ID.  | 
| serverIds | Array of strings  List Server IDs  | 
{- "projectId": "you-project Id",
 - "serverIds": [
- "string"
 
] 
}{- "timestamp": 0,
 - "message": "string"
 
}Get a backup volume point for vServer
| id required  | string   Example:  bk-vol-pt-6861d000-bb2e-11ed-afa1-0242ac120002 The id of backup volume point.  | 
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vbackup-gateway/v1/vserver/backup-volume-points/bk-vol-pt-6861d000-bb2e-11ed-afa1-0242ac120002', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "timestamp": 0,
 - "message": "string"
 
}Get a backup server for vServer
| id required  | string   Example:  bk-ins-6861d000-bb2e-11ed-afa1-0242ac120002 The id of backup server.  | 
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vbackup-gateway/v1/vserver/backup-instances/bk-ins-6861d000-bb2e-11ed-afa1-0242ac120002', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "timestamp": 0,
 - "message": "string"
 
}List backup server points for vServer
| id required  | string   Example:  bk-ins-6861d000-bb2e-11ed-afa1-0242ac120002 The id of backup server.  | 
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vbackup-gateway/v1/vserver/backup-instances/bk-ins-6861d000-bb2e-11ed-afa1-0242ac120002/backup-instance-points', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "timestamp": 0,
 - "message": "string"
 
}Get a backup server point for vServer
| id required  | string   Example:  bk-ins-pt-6861d000-bb2e-11ed-afa1-0242ac120002 The id of backup server point.  | 
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vbackup-gateway/v1/vserver/backup-instance-points/bk-ins-pt-6861d000-bb2e-11ed-afa1-0242ac120002', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "timestamp": 0,
 - "message": "string"
 
}List backup volume points for vServer
| id required  | string   Example:  bk-ins-pt-6861d000-bb2e-11ed-afa1-0242ac120002 The id of backup server point.  | 
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vbackup-gateway/v1/vserver/backup-instance-points/bk-ins-pt-6861d000-bb2e-11ed-afa1-0242ac120002/backup-volume-points', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "timestamp": 0,
 - "message": "string"
 
}List Restore History with pagination and filtering.
| backendId | string   Example:  backendId=6861d000-bb2e-11ed-afa1-0242ac120002 A backend ID to filter restore history by.  | 
| projectId | string   Example:  projectId=pro-6861d000-bb2e-11ed-afa1-0242ac120002 A project ID to filter restore history by.  | 
| id | string   Example:  id=vsr-res-6861d000-bb2e-11ed-afa1-0242ac120002 A restore history ID to filter backup restore history by.  | 
| serverId | string   Example:  serverId=ins-6861d000-bb2e-11ed-afa1-0242ac120002 A server ID to filter backup restore history by.  | 
| backupInstanceId | string   Example:  backupInstanceId=bk-ins-6861d000-bb2e-11ed-afa1-0242ac120002 A backup server ID to filter backup restore history by.  | 
| backupInstancePointId | string   Example:  backupInstancePointId=bk-ins-pt-6861d000-bb2e-11ed-afa1-0242ac120002 A backup server point ID to filter backup restore history by.  | 
| volumeId | string   Example:  volumeId=vol-6861d000-bb2e-11ed-afa1-0242ac120002 A volume ID to filter backup restore history by.  | 
| backupVolumePointId | string   Example:  backupVolumePointId=bk-vol-pt-6861d000-bb2e-11ed-afa1-0242ac120002 A backup volume point ID to filter backup restore history by.  | 
| page | integer <int32>    Example:  page=1 The page of items. It must start at 1.  | 
| size | integer <int32>    Example:  size=50 The size of items  | 
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vbackup-gateway/v1/histories/restoration', qs: { backendId: 'SOME_STRING_VALUE', projectId: 'SOME_STRING_VALUE', id: 'SOME_STRING_VALUE', serverId: 'SOME_STRING_VALUE', backupInstanceId: 'SOME_STRING_VALUE', backupInstancePointId: 'SOME_STRING_VALUE', volumeId: 'SOME_STRING_VALUE', backupVolumePointId: 'SOME_STRING_VALUE', page: 'SOME_INTEGER_VALUE', size: 'SOME_INTEGER_VALUE' }, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "timestamp": 0,
 - "message": "string"
 
}List Backup Server History with pagination and filtering.
| backendId | string   Example:  backendId=6861d000-bb2e-11ed-afa1-0242ac120002 A backend ID to filter backup server history by.  | 
| projectId | string   Example:  projectId=pro-6861d000-bb2e-11ed-afa1-0242ac120002 A project ID to filter backup server history by.  | 
| id | string   Example:  id=bk-ins-pt-6861d000-bb2e-11ed-afa1-0242ac120002 A backup server point ID to filter backup server history by.  | 
| serverId | string   Example:  serverId=ins-6861d000-bb2e-11ed-afa1-0242ac120002 A server ID to filter backup server history by.  | 
| backupInstanceId | string   Example:  backupInstanceId=bk-ins-6861d000-bb2e-11ed-afa1-0242ac120002 A backup server ID to filter backup server history by.  | 
| page | integer <int32>    Example:  page=1 The page of items. It must start at 1.  | 
| size | integer <int32>    Example:  size=50 The size of items  | 
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vbackup-gateway/v1/histories/backup-instances', qs: { backendId: 'SOME_STRING_VALUE', projectId: 'SOME_STRING_VALUE', id: 'SOME_STRING_VALUE', serverId: 'SOME_STRING_VALUE', backupInstanceId: 'SOME_STRING_VALUE', page: 'SOME_INTEGER_VALUE', size: 'SOME_INTEGER_VALUE' }, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "timestamp": 0,
 - "message": "string"
 
}List Backends with pagination and filtering.
| backend | string   Example:  backend=6861d000-bb2e-11ed-afa1-0242ac120002 The backend ID or name to filter backend by.  | 
| page | integer <int32>    Example:  page=1 The page of items. It must start at 1.  | 
| size | integer <int32>    Example:  size=50 The size of items  | 
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vbackup-gateway/v1/backends', qs: { backend: 'SOME_STRING_VALUE', page: 'SOME_INTEGER_VALUE', size: 'SOME_INTEGER_VALUE' }, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "timestamp": 0,
 - "message": "string"
 
}List Volumes of a Backup Server
| id required  | string   Example:  bk-ins-6861d000-bb2e-11ed-afa1-0242ac120002 The id of backup server.  | 
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vbackup-gateway/v1/backup-instances/bk-ins-6861d000-bb2e-11ed-afa1-0242ac120002/volumes', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "timestamp": 0,
 - "message": "string"
 
}Update Backup Volume.
| id required  | string   Example:  bk-ins-6861d000-bb2e-11ed-afa1-0242ac120002 The id of backup server.  | 
The information is used to update backup volume.
| volumeId | string  The ID of volume  | 
| backupEnabled | boolean  Allow backup volume  | 
{- "volumeId": "string",
 - "backupEnabled": true
 
}{- "timestamp": 0,
 - "message": "string"
 
}Update policy of a backup server.
| id required  | string   Example:  bk-ins-6861d000-bb2e-11ed-afa1-0242ac120002 The id of backup server.  | 
The information is used for update policy of backup server.
| id | string  The ID of backup policy  | 
{- "id": "string"
 
}{- "timestamp": 0,
 - "message": "string"
 
}Enable Backup Server.
| id required  | string   Example:  bk-ins-6861d000-bb2e-11ed-afa1-0242ac120002 The id of backup server.  | 
const request = require('request'); const options = { method: 'PUT', url: 'https://hcm-3.api.vngcloud.vn/vbackup-gateway/v1/backup-instances/bk-ins-6861d000-bb2e-11ed-afa1-0242ac120002/enabled', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "timestamp": 0,
 - "message": "string"
 
}Disable Backup Server
| id required  | string   Example:  bk-ins-6861d000-bb2e-11ed-afa1-0242ac120002 The id of backup server.  | 
const request = require('request'); const options = { method: 'PUT', url: 'https://hcm-3.api.vngcloud.vn/vbackup-gateway/v1/backup-instances/bk-ins-6861d000-bb2e-11ed-afa1-0242ac120002/disabled', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "timestamp": 0,
 - "message": "string"
 
}List Backup Server with pagination and filtering.
| backendId | string   Example:  backendId=6861d000-bb2e-11ed-afa1-0242ac120002 A backend ID to filter backup server by.  | 
| projectId | string   Example:  projectId=pro-6861d000-bb2e-11ed-afa1-0242ac120002 A project ID to filter backup server by.  | 
| id | string   Example:  id=bk-ins-6861d000-bb2e-11ed-afa1-0242ac120002 A ID to filter backup server by.  | 
| name | string   Example:  name=your-name A name to filter backup server by.  | 
| serverId | string   Example:  serverId=ins-6861d000-bb2e-11ed-afa1-0242ac120002 A server ID to filter backup server by.  | 
| page | integer <int32>    Example:  page=1 The page of items. It must start at 1.  | 
| size | integer <int32>    Example:  size=50 The size of items  | 
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vbackup-gateway/v1/backup-instances', qs: { backendId: 'SOME_STRING_VALUE', projectId: 'SOME_STRING_VALUE', id: 'SOME_STRING_VALUE', name: 'SOME_STRING_VALUE', serverId: 'SOME_STRING_VALUE', page: 'SOME_INTEGER_VALUE', size: 'SOME_INTEGER_VALUE' }, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "timestamp": 0,
 - "message": "string"
 
}Create a Backup Server Endpoint.
The information is used to create a backup server.
| backendId | string  The backend ID.  | 
| projectId | string  The project ID.  | 
Array of objects (ServerConfig)   The configuration of the selected server.  | |
| description | string  The description of the backup server  | 
| backupEnabled | boolean  Allow backup running  | 
| backupPolicyId | string  The Backup Policy ID  | 
| backupDestinationId | string  The backup location ID  | 
{- "backendId": "backup-id",
 - "projectId": "you-project Id",
 - "serverConfig": [
- {
- "serverId": "string",
 - "volumes": [
- {
- "volumeId": "string",
 - "backupEnabled": true
 
} 
] 
} 
], - "description": "string",
 - "backupEnabled": true,
 - "backupPolicyId": "string",
 - "backupDestinationId": "string"
 
}{- "timestamp": 0,
 - "message": "string"
 
}Get a backup server by ID.
| id required  | string   Example:  bk-ins-6861d000-bb2e-11ed-afa1-0242ac120002 The id of backup server.  | 
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vbackup-gateway/v1/backup-instances/bk-ins-6861d000-bb2e-11ed-afa1-0242ac120002', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "timestamp": 0,
 - "message": "string"
 
}Delete a backup server by ID.
| id required  | string   Example:  bk-ins-6861d000-bb2e-11ed-afa1-0242ac120002 The id of backup server.  | 
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vbackup-gateway/v1/backup-instances/bk-ins-6861d000-bb2e-11ed-afa1-0242ac120002', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "timestamp": 0,
 - "message": "string"
 
}List Backup Server Points of a Backup Server
| id required  | string   Example:  bk-ins-6861d000-bb2e-11ed-afa1-0242ac120002 The id of backup server.  | 
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vbackup-gateway/v1/backup-instances/bk-ins-6861d000-bb2e-11ed-afa1-0242ac120002/backup-instance-points', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "timestamp": 0,
 - "message": "string"
 
}List Protected Server Endpoint.
| backendId | string   Example:  backendId=6861d000-bb2e-11ed-afa1-0242ac120002 A backend ID to filter backup server by.  | 
| projectId | string   Example:  projectId=pro-6861d000-bb2e-11ed-afa1-0242ac120002 A project ID to filter backup server by.  | 
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vbackup-gateway/v1/backup-instances/protected-servers', qs: {backendId: 'SOME_STRING_VALUE', projectId: 'SOME_STRING_VALUE'}, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "timestamp": 0,
 - "message": "string"
 
}List Volume Usage
The information is used for get the usage of volumes
| backendId | string  The backend ID.  | 
| projectId | string  The project ID.  | 
| volumeIds | Array of strings  List of volume IDs.  | 
{- "backendId": "backup-id",
 - "projectId": "you-project Id",
 - "volumeIds": [
- "string"
 
] 
}{- "timestamp": 0,
 - "message": "string"
 
}const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vbackup-gateway/v1/configurations', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "timestamp": 0,
 - "message": "string"
 
}List Backup Location with pagination and filtering.
| backendId | string   Example:  backendId=6861d000-bb2e-11ed-afa1-0242ac120002 A backend ID to filter backup location by.  | 
| projectId | string   Example:  projectId=pro-6861d000-bb2e-11ed-afa1-0242ac120002 A project ID to filter backup location by.  | 
| name | string   Example:  name=your-name A name to filter backup location by.  | 
| type | string   Example:  type=your-type A type to filter backup location by.  | 
| page | integer <int32>    Example:  page=1 The page of items. It must start at 1.  | 
| size | integer <int32>    Example:  size=50 The size of items  | 
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vbackup-gateway/v1/backup-destinations', qs: { backendId: 'SOME_STRING_VALUE', projectId: 'SOME_STRING_VALUE', name: 'SOME_STRING_VALUE', type: 'SOME_STRING_VALUE', page: 'SOME_INTEGER_VALUE', size: 'SOME_INTEGER_VALUE' }, headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "timestamp": 0,
 - "message": "string"
 
}