Download OpenAPI specification:
API for working with vDB Instances (Relational Databases, MemoryStore Databases, Kafka Clusters and PostgreSQL Clusters).
| instanceId required | string |
| portal-user-id required | integer <int32> |
| dbInstanceId | string DB instance ID |
| password | string Optional. New master password. |
| publicAccess | boolean Optional. Set to 'true' if you want to allow public access to the DB instance. |
| backupAuto | boolean Optional. Set to 'true' if you want to enable daily auto backup. |
| backupDuration | integer <int32> Required if 'backupAuto' is true. Determine how many days your backup will be retained. Minimum 2 days and maximum 14 days. |
| backupTime | string Required if 'backupAuto' is true. The time of the day to backup your DB instance. |
{- "dbInstanceId": "db-70a4fbee-db60-46d2-858c-875478a03a38",
- "password": "S8oJRwAQ_hXH",
- "publicAccess": true,
- "backupAuto": true,
- "backupDuration": 2,
- "backupTime": "02:00"
}| instanceId required | string |
| portal-user-id required | integer <int32> |
| dbInstanceId | string DB instance ID |
| configId | string New config group ID or set to empty string "" to detach current config group |
{- "dbInstanceId": "db-70a4fbee-db60-46d2-858c-875478a03a38",
- "configId": "cfg-b8cf4290-9c11-4b52-bea1-d4423e90b729"
}| instanceId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-relational/v1/database-instances/%7BinstanceId%7D/secrules', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| instanceId required | string |
| portal-user-id required | integer <int32> |
| id | string Secgroup rule ID. Set to null to insert new. |
| portRangeMin | integer <int32> Port range min. Allowed values: 3306 (MySQL, MariaDB), 5432 (PostgreSQL Single-node), 5432 or 15432 (PostgreSQL Cluster), 6379 (Redis) |
| portRangeMax | integer <int32> Port range max. Allowed values: 3306 (MySQL, MariaDB), 5432 (PostgreSQL Single-node), 5432 or 15432 (PostgreSQL Cluster), 6379 (Redis) |
| remoteIpPrefix | string IP Prefix |
[- {
- "id": "429f68e6-4424-454c-b2b0-e510b6de4aac",
- "portRangeMin": 3306,
- "portRangeMax": 3306,
- "remoteIpPrefix": "0.0.0.0/0"
}
]| portal-user-id required | integer <int32> |
| user-type | string Example: ROOT_USER ROOT_USER for Checkout flow or IAM_USER for Auto Payment flow. Available values: ROOT_USER, IAM_USER. Default value: ROOT_USER. |
object (UserRequest) Master user information | |
Array of objects (DatabaseRequest) Database information. Currently support 1 database at creation. | |
| name | string DB instance name |
| volumeType | string Volume type |
| volumeSize | integer <int32> Volume Size |
| datastoreType | string Datastore type |
| datastoreVersion | string Version of datastore type |
| netIds | Array of strings Subnet ID |
| configId | string Optional. Config group ID attached to DB instance |
| publicAccess | boolean Set to 'true' if you want to allow public access to the DB instance |
| backupAuto | boolean Set to 'true' if you want to enable daily auto backup |
| backupDuration | integer <int32> Required if 'backupAuto' is true. Determine how many days your backup will be retained. Minimum 2 days and maximum 14 days |
| backupTime | string Required if 'backupAuto' is true. The time of the day to backup your DB instance. |
| packageId | string Flavor ID |
| poc | boolean Set to 'true' if paying with PoC Credit. Auto Payment only. |
| locateZoneId | string Zone ID |
{- "user": {
- "name": "userabcd",
- "password": "PZMkFt<srcrw",
- "databases": [
- {
- "name": "database1"
}
]
}, - "databases": [
- {
- "name": "database1",
- "characterSet": "utf8mb4",
- "collate": "utf8mb4_general_ci"
}
], - "name": "instance-name",
- "volumeType": "Gen2-NVMe2-IOPS3000",
- "volumeSize": 100,
- "datastoreType": "MySQL",
- "datastoreVersion": "8.0",
- "netIds": [
- "sub-e843ab13-eb6c-4541-93f6-912b3c33210c"
], - "configId": "cfg-62a9843e-59f9-4549-afc0-4de88d566736",
- "publicAccess": true,
- "backupAuto": true,
- "backupDuration": 2,
- "backupTime": "02:00",
- "packageId": "211",
- "poc": true,
- "locateZoneId": "HCM03-1A"
}| instanceId required | string |
| portal-user-id required | integer <int32> |
Array of objects (ActionDbInstanceDetail) Action DB instance information | |
| action | string Action. Allowed values: start, stop, reboot, detach_replica |
| resType | string DB instance resource type. Allowed value: dbaas |
{- "databaseInstances": [
- {
- "instancesId": "db-70a4fbee-db60-46d2-858c-875478a03a38"
}
], - "action": "start|stop|reboot|detach_replica",
- "resType": "dbaas"
}| instanceId required | string |
| portal-user-id required | integer <int32> |
Array of objects (ActionDbInstanceDetail) Action DB instance information | |
| action | string Action. Allowed values: start, stop, reboot, detach_replica |
| resType | string DB instance resource type. Allowed value: dbaas |
{- "databaseInstances": [
- {
- "instancesId": "db-70a4fbee-db60-46d2-858c-875478a03a38"
}
], - "action": "start|stop|reboot|detach_replica",
- "resType": "dbaas"
}| instanceId required | string |
| portal-user-id required | integer <int32> |
| user-type | string Example: ROOT_USER ROOT_USER for Checkout flow or IAM_USER for Auto Payment flow. Available values: ROOT_USER, IAM_USER. Default value: ROOT_USER. |
Array of objects (ResizeVolumeDetail) Restore volume information | |
| action | string Action. Allowed value: resize |
| resourceType | string DB instance resource type. Allowed value: dbaas |
{- "databaseInstances": [
- {
- "instancesId": "db-b0c9332f-96da-4aff-9439-38f9a9e2bf46",
- "config": {
- "volumeSize": 100,
- "volumeType": "ssd-iops3200",
- "poc": true
}
}
], - "action": "resize",
- "resourceType": "dbaas"
}| instanceId required | string |
| portal-user-id required | integer <int32> |
| user-type | string Example: ROOT_USER ROOT_USER for Checkout flow or IAM_USER for Auto Payment flow. Available values: ROOT_USER, IAM_USER. Default value: ROOT_USER. |
Array of objects (ResizeFlavorDetail) Resize flavor information | |
| action | string Action. Allowed value: resize |
| resourceType | string DB instance resource type. Allowed value: dbaas |
{- "databaseInstances": [
- {
- "instancesId": "db-b0c9332f-96da-4aff-9439-38f9a9e2bf46",
- "config": {
- "packageId": "103",
- "poc": true
}
}
], - "action": "resize",
- "resourceType": "dbaas"
}| instanceId required | string |
| portal-user-id required | integer <int32> |
Array of objects (ActionDbInstanceDetail) Action DB instance information | |
| action | string Action. Allowed values: start, stop, reboot, detach_replica |
| resType | string DB instance resource type. Allowed value: dbaas |
{- "databaseInstances": [
- {
- "instancesId": "db-70a4fbee-db60-46d2-858c-875478a03a38"
}
], - "action": "start|stop|reboot|detach_replica",
- "resType": "dbaas"
}| instanceId required | string |
| portal-user-id required | integer <int32> |
Array of objects (ActionDbInstanceDetail) Action DB instance information | |
| action | string Action. Allowed values: start, stop, reboot, detach_replica |
| resType | string DB instance resource type. Allowed value: dbaas |
{- "databaseInstances": [
- {
- "instancesId": "db-70a4fbee-db60-46d2-858c-875478a03a38"
}
], - "action": "start|stop|reboot|detach_replica",
- "resType": "dbaas"
}| instanceId required | string |
| portal-user-id required | integer <int32> |
Array of objects (DeleteDbInstanceDetail) Delete DB instance information | |
| action | string Action. Allowed value: delete |
| resType | string DB instance resource type. Allowed value: dbaas |
{- "databaseInstances": [
- {
- "instancesId": "db-b0c9332f-96da-4aff-9439-38f9a9e2bf46",
- "config": {
- "createFinalBackup": true,
- "deleteAllBackup": true
}
}
], - "action": "delete",
- "resType": "dbaas"
}| instanceId required | string |
| portal-user-id required | integer <int32> |
| user-type | string Example: ROOT_USER ROOT_USER for Checkout flow or IAM_USER for Auto Payment flow. Available values: ROOT_USER, IAM_USER. Default value: ROOT_USER. |
| name | string New DB instance name |
| volumeType | string Volume type |
| volumeSize | integer <int32> DB instance volume size. Only required for Relational Database |
| datastoreType | string Datastore type |
| datastoreVersion | string Version of datastore type |
| netIds | Array of strings Subnet ID |
| configId | string Optional. Config group ID attached to DB instance |
| publicAccess | boolean Set to 'true' if you want to allow public access to the DB instance |
| backupAuto | boolean Set to 'true' if you want to enable daily auto backup |
| backupDuration | integer <int32> Required if 'backupAuto' is true. Determine how many days your backup will be retained. Minimum 2 days and maximum 14 days |
| backupTime | string Required if 'backupAuto' is true. The time of the day to backup your DB instance. |
| packageId | string Package ID |
| replicaSourceId | string ID of the source DB instance used to create this replica (slave). Required when creating a read replica. |
| poc | boolean Set to 'true' if paying with PoC Credit. Auto Payment only. |
| locateZoneId | string Zone ID |
{- "name": "new-instance",
- "volumeType": "Gen2-NVMe2-IOPS3000",
- "volumeSize": 20,
- "datastoreType": "MySQL",
- "datastoreVersion": "8.0",
- "netIds": [
- "sub-e843ab13-eb6c-4541-93f6-912b3c33210c"
], - "configId": "cfg-62a9843e-59f9-4549-afc0-4de88d566736",
- "publicAccess": true,
- "backupAuto": true,
- "backupDuration": 2,
- "backupTime": "02:00",
- "packageId": "211",
- "replicaSourceId": "db-70a4fbee-db60-46d2-858c-875478a03a38",
- "poc": true,
- "locateZoneId": "HCM03-1A"
}required | object |
| pageNumber required | integer <int32> |
| pageSize required | integer <int32> |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-relational/v1/database-instances', qs: { filterRequest: 'SOME_OBJECT_VALUE', pageNumber: 'SOME_INTEGER_VALUE', pageSize: 'SOME_INTEGER_VALUE' }, headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| replicaSourceId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-relational/v1/database-instances/%7BreplicaSourceId%7D/replicas', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| instanceId required | string |
| pageNumber | integer <int32> Default: 1 |
| pageSize | integer <int32> Default: 10 |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-relational/v1/database-instances/%7BinstanceId%7D/histories', qs: {pageNumber: 'SOME_INTEGER_VALUE', pageSize: 'SOME_INTEGER_VALUE'}, headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-relational/v1/database-instances/zones' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| zoneId | string Default: "HCM03-1A" |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-relational/v1/database-instances/volume/types', qs: {zoneId: 'SOME_STRING_VALUE'}, headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-relational/v1/database-instances/networks', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| zoneId | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-relational/v1/database-instances/networks/subnets', qs: {zoneId: 'SOME_STRING_VALUE'}, headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| dbInstanceId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-relational/v1/database-instances/id/%7BdbInstanceId%7D', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| type required | string |
| version required | string |
| zoneId | string Default: "HCM03-1A" |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-relational/v1/database-instances/flavors', qs: { type: 'SOME_STRING_VALUE', version: 'SOME_STRING_VALUE', zoneId: 'SOME_STRING_VALUE' }, headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-relational/v1/database-instances/flavor_zones/codes', headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-relational/v1/database-instances/families', headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-relational/v1/database-instances/engine', headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-relational/v1/database-instances/datastore', headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-relational/v1/database-instances/configuration', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| portal-user-id required | integer <int32> |
| id | string Config group ID |
object Config group values |
{- "id": "cfg-b8cf4290-9c11-4b52-bea1-d4423e90b729",
- "values": {
- "autocommit": 1
}
}| portal-user-id required | integer <int32> |
| name | string Config Group Name |
| description | string Config Group Description |
| datastoreType | string Config Group Datastore Type. Allowed values: MySQL, PostgreSQL, MariaDB |
| datastoreVersion | string Version of Datastore Type |
| deployType | string Optional. Currently only available for PostgreSQL. Allowed values: cluster, single_node. Default value: single_node.Config group with a 'cluster' deploy type can only be used with a PostgreSQL Cluster. |
{- "name": "test-config-group",
- "description": "This is a test config group",
- "datastoreType": "PostgreSQL",
- "datastoreVersion": "15",
- "deployType": "single_node"
}| pageNumber | integer <int32> Default: 1 |
| pageSize | integer <int32> Default: 10 |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-relational/v1/configurations', qs: {pageNumber: 'SOME_INTEGER_VALUE', pageSize: 'SOME_INTEGER_VALUE'}, headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| datastoreType required | string |
| datastoreVersion required | string |
| deployType | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-relational/v1/configurations/params', qs: { datastoreType: 'SOME_STRING_VALUE', datastoreVersion: 'SOME_STRING_VALUE', deployType: 'SOME_STRING_VALUE' }, headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| id required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-relational/v1/configurations/id', qs: {id: 'SOME_STRING_VALUE'}, headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| portal-user-id required | integer <int32> |
| id | string Config Group ID |
[- {
- "id": "cfg-b8cf4290-9c11-4b52-bea1-d4423e90b729"
}
]| clusterId required | string |
| portal-user-id required | integer <int32> |
| password | string New Master password |
| publicAccess | boolean Set to 'true' if you want to allow public access to the cluster |
{- "password": "abcd1234",
- "publicAccess": true
}| clusterId required | string |
| portal-user-id required | integer <int32> |
| user-type | string Example: ROOT_USER ROOT_USER for Checkout flow or IAM_USER for Auto Payment flow. Available values: ROOT_USER, IAM_USER. Default value: ROOT_USER. |
| type | string Resize Type. Allowed values: VOLUME-SIZE, VOLUME-TYPE, NUMBER-OF-NODES |
| numberOfNodes | integer <int32> New Number of Nodes. Use with type NUMBER-OF-NODES |
| volumeTypeId | string New Volume Type Id. Use with type VOLUME-TYPE |
| volumeSize | integer <int32> New Volume Size. Use with type VOLUME-SIZE |
| isPoc | boolean Set to 'true' if paying with PoC Credit. Auto Payment only. |
{- "type": "VOLUME-SIZE",
- "numberOfNodes": 3,
- "volumeTypeId": "pgst-63e28e83-165c-4a6d-8cd4-36ed37f1b65d",
- "volumeSize": 100,
- "isPoc": true
}| clusterId required | string |
| portal-user-id required | integer <int32> |
| configGroupId | string New config group Id or set to empty string "" to detach current config group |
{- "configGroupId": "pg-cfg-b8cf4290-9c11-4b52-bea1-d4423e90b729"
}| portal-user-id required | integer <int32> |
| user-type | string Example: ROOT_USER ROOT_USER for Checkout flow or IAM_USER for Auto Payment flow. Available values: ROOT_USER, IAM_USER. Default value: ROOT_USER. |
| name | string Cluster name |
| locateZoneId | string Zone ID |
| packageId | string Flavor ID. Can only be compatible with a PostgreSQL Cluster Flavor. |
| volumeTypeId | string Volume Type ID. Can only be compatible with a PostgreSQL Cluster Volume Type. |
| volumeSize | integer <int32> Volume Size |
| numberOfNodes | integer <int32> Number of nodes. Minimum 2 nodes and maximum 10 nodes. |
object (UserRequest_2) Master user information | |
Array of objects (DatabaseRequest_2) Database name. Currently support 1 database name at creation. | |
| datastoreVersion | string Datastore version. Can only be compatible with a PostgreSQL Cluster Datastore Version. |
| netIds | Array of strings Subnet ID |
| configId | string Config Group ID. Can only be compatible with a config group with a 'cluster' deploy type. |
| publicAccess | boolean Public access |
| backupLocationId | string Backup Location ID. Managed by vBackup. |
| backupPolicyId | string Backup Policy ID. Managed by vBackup. |
| backupPointId | string Backup Point ID. Managed by vBackup. Required if Restoring cluster from Backup. |
| isPoc | boolean Set to 'true' if paying with PoC Credit. Auto Payment only. |
{- "name": "cluster-13a2d94f-f7",
- "locateZoneId": "HCM03-1A",
- "packageId": "pgp-51e30a6d-bc9e-4ffb-843f-11e950de12e8",
- "volumeTypeId": "pgst-63e28e83-165c-4a6d-8cd4-36ed37f1b65d",
- "volumeSize": 100,
- "numberOfNodes": 3,
- "user": {
- "name": "userabcd",
- "password": "PZMkFt<srcrw"
}, - "databases": [
- {
- "name": "database1"
}
], - "datastoreVersion": "16",
- "netIds": [
- "sub-e843ab13-eb6c-4541-93f6-912b3c33210c"
], - "configId": "pg-cfg-b8cf4290-9c11-4b52-bea1-d4423e90b729",
- "publicAccess": true,
- "backupLocationId": "bk-des-23b5296e-2b73-4617-ad5f-117108522f11",
- "backupPolicyId": "bk-pol-23b5296e-2b73-4617-ad5f-117108522f11",
- "backupPointId": "bk-db-pt-23b5296e-2b73-4617-ad5f-117108522f11",
- "isPoc": true
}| clusterId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-postgresql/v1/cluster/%7BclusterId%7D/volume-used', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| zoneId | string Default: "HCM03-1A" |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-postgresql/v1/cluster/volume-types', qs: {zoneId: 'SOME_STRING_VALUE'}, headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| zoneId | string Default: "HCM03-1A" |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-postgresql/v1/cluster/flavors', qs: {zoneId: 'SOME_STRING_VALUE'}, headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-postgresql/v1/cluster/datastore', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| dbInstanceId required | string |
| portal-user-id required | integer <int32> |
| dbInstanceId | string DB instance ID |
| editRedisPassword | boolean Set to 'true' if you make any change of 'redisPasswordEnabled' or 'redisPassword' |
| redisPasswordEnabled | boolean Set to 'true' if you want to enable master password. Required ENABLED if 'publicAccess' is true |
| redisPassword | string Redis master password. Required if 'redisPasswordEnabled' is true |
| publicAccess | boolean Optional. Set to 'true' if you want to allow public access to the DB instance. |
| backupAuto | boolean Optional. Set to 'true' if you want to enable daily auto backup. |
| backupDuration | integer <int32> Required if 'backupAuto' is true. Determine how many days your backup will be retained. Minimum 2 days and maximum 14 days |
| backupTime | string Required if 'backupAuto' is true. The time of the day to backup your DB instance. |
{- "dbInstanceId": "db-70a4fbee-db60-46d2-858c-875478a03a38",
- "editRedisPassword": true,
- "redisPasswordEnabled": true,
- "redisPassword": "abcd1234abcd1234",
- "publicAccess": true,
- "backupAuto": true,
- "backupDuration": 2,
- "backupTime": "02:00"
}| dbInstanceId required | string |
| portal-user-id required | integer <int32> |
| dbInstanceId | string DB instance ID |
| configId | string New config group ID or set to empty string "" to detach current config group |
{- "dbInstanceId": "db-70a4fbee-db60-46d2-858c-875478a03a38",
- "configId": "cfg-b8cf4290-9c11-4b52-bea1-d4423e90b729"
}| dbInstanceId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-memory/v1/database-instances/%7BdbInstanceId%7D/secrules', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| dbInstanceId required | string |
| portal-user-id required | integer <int32> |
| id | string Secgroup rule ID. Set to null to insert new. |
| portRangeMin | integer <int32> Port range min. Allowed values: 3306 (MySQL, MariaDB), 5432 (PostgreSQL Single-node), 5432 or 15432 (PostgreSQL Cluster), 6379 (Redis) |
| portRangeMax | integer <int32> Port range max. Allowed values: 3306 (MySQL, MariaDB), 5432 (PostgreSQL Single-node), 5432 or 15432 (PostgreSQL Cluster), 6379 (Redis) |
| remoteIpPrefix | string IP Prefix |
[- {
- "id": "429f68e6-4424-454c-b2b0-e510b6de4aac",
- "portRangeMin": 3306,
- "portRangeMax": 3306,
- "remoteIpPrefix": "0.0.0.0/0"
}
]| portal-user-id required | integer <int32> |
| user-type | string Example: ROOT_USER ROOT_USER for Checkout flow or IAM_USER for Auto Payment flow. Available values: ROOT_USER, IAM_USER. Default value: ROOT_USER. |
| name | string DB instance name |
| datastoreType | string Datastore type |
| datastoreVersion | string Version of datastore type |
| netIds | Array of strings Subnet ID |
| configId | string Optional. Config group ID attached to DB instance |
| publicAccess | boolean Set to 'true' if you want to allow public access to the DB instance |
| backupAuto | boolean Set to 'true' if you want to enable daily auto backup |
| backupDuration | integer <int32> Required if 'backupAuto' is true. Determine how many days your backup will be retained. Minimum 2 days and maximum 14 days |
| backupTime | string Required if 'backupAuto' is true. The time of the day to backup your DB instance. |
| packageId | string Flavor ID |
| redisPasswordEnabled | boolean Set to 'true' if you want to enable master password. Required ENABLED if 'publicAccess' is true |
| redisPassword | string Redis master password. Required if 'redisPasswordEnabled' is true |
| poc | boolean Set to 'true' if paying with PoC Credit. Auto Payment only. |
| locateZoneId | string Zone ID |
{- "name": "instance-name",
- "datastoreType": "MySQL",
- "datastoreVersion": "8.0",
- "netIds": [
- "sub-e843ab13-eb6c-4541-93f6-912b3c33210c"
], - "configId": "cfg-62a9843e-59f9-4549-afc0-4de88d566736",
- "publicAccess": true,
- "backupAuto": true,
- "backupDuration": 2,
- "backupTime": "02:00",
- "packageId": "211",
- "redisPasswordEnabled": true,
- "redisPassword": "abcd1234abcd1234",
- "poc": true,
- "locateZoneId": "HCM03-1A"
}| dbInstanceId required | string |
| portal-user-id required | integer <int32> |
Array of objects (ActionDbInstanceDetail) Action DB instance information | |
| action | string Action. Allowed values: start, stop, reboot, detach_replica |
| resType | string DB instance resource type. Allowed value: dbaas |
{- "databaseInstances": [
- {
- "instancesId": "db-70a4fbee-db60-46d2-858c-875478a03a38"
}
], - "action": "start|stop|reboot|detach_replica",
- "resType": "dbaas"
}| dbInstanceId required | string |
| portal-user-id required | integer <int32> |
Array of objects (ActionDbInstanceDetail) Action DB instance information | |
| action | string Action. Allowed values: start, stop, reboot, detach_replica |
| resType | string DB instance resource type. Allowed value: dbaas |
{- "databaseInstances": [
- {
- "instancesId": "db-70a4fbee-db60-46d2-858c-875478a03a38"
}
], - "action": "start|stop|reboot|detach_replica",
- "resType": "dbaas"
}| dbInstanceId required | string |
| portal-user-id required | integer <int32> |
| user-type | string Example: ROOT_USER ROOT_USER for Checkout flow or IAM_USER for Auto Payment flow. Available values: ROOT_USER, IAM_USER. Default value: ROOT_USER. |
Array of objects (ResizeFlavorDetail) Resize flavor information | |
| action | string Action. Allowed value: resize |
| resourceType | string DB instance resource type. Allowed value: dbaas |
{- "databaseInstances": [
- {
- "instancesId": "db-b0c9332f-96da-4aff-9439-38f9a9e2bf46",
- "config": {
- "packageId": "103",
- "poc": true
}
}
], - "action": "resize",
- "resourceType": "dbaas"
}| dbInstanceId required | string |
| portal-user-id required | integer <int32> |
Array of objects (ActionDbInstanceDetail) Action DB instance information | |
| action | string Action. Allowed values: start, stop, reboot, detach_replica |
| resType | string DB instance resource type. Allowed value: dbaas |
{- "databaseInstances": [
- {
- "instancesId": "db-70a4fbee-db60-46d2-858c-875478a03a38"
}
], - "action": "start|stop|reboot|detach_replica",
- "resType": "dbaas"
}| dbInstanceId required | string |
| portal-user-id required | integer <int32> |
Array of objects (ActionDbInstanceDetail) Action DB instance information | |
| action | string Action. Allowed values: start, stop, reboot, detach_replica |
| resType | string DB instance resource type. Allowed value: dbaas |
{- "databaseInstances": [
- {
- "instancesId": "db-70a4fbee-db60-46d2-858c-875478a03a38"
}
], - "action": "start|stop|reboot|detach_replica",
- "resType": "dbaas"
}| dbInstanceId required | string |
| portal-user-id required | integer <int32> |
Array of objects (DeleteDbInstanceDetail) Delete DB instance information | |
| action | string Action. Allowed value: delete |
| resType | string DB instance resource type. Allowed value: dbaas |
{- "databaseInstances": [
- {
- "instancesId": "db-b0c9332f-96da-4aff-9439-38f9a9e2bf46",
- "config": {
- "createFinalBackup": true,
- "deleteAllBackup": true
}
}
], - "action": "delete",
- "resType": "dbaas"
}| dbInstanceId required | string |
| portal-user-id required | integer <int32> |
| user-type | string Example: ROOT_USER ROOT_USER for Checkout flow or IAM_USER for Auto Payment flow. Available values: ROOT_USER, IAM_USER. Default value: ROOT_USER. |
| name | string New DB instance name |
| datastoreType | string Datastore type |
| datastoreVersion | string Version of datastore type |
| netIds | Array of strings Subnet ID |
| configId | string Optional. Config group ID attached to DB instance |
| publicAccess | boolean Set to 'true' if you want to allow public access to the DB instance |
| backupAuto | boolean Set to 'true' if you want to enable daily auto backup |
| backupDuration | integer <int32> Required if 'backupAuto' is true. Determine how many days your backup will be retained. Minimum 2 days and maximum 14 days |
| backupTime | string Required if 'backupAuto' is true. The time of the day to backup your DB instance. |
| packageId | string Package ID |
| replicaSourceId | string ID of the source DB instance used to create this replica (slave). Required when creating a read replica. |
| poc | boolean Set to 'true' if paying with PoC Credit. Auto Payment only. |
| locateZoneId | string Zone ID |
{- "name": "new-instance",
- "datastoreType": "Redis",
- "datastoreVersion": "7.2",
- "netIds": [
- "sub-e843ab13-eb6c-4541-93f6-912b3c33210c"
], - "configId": "cfg-62a9843e-59f9-4549-afc0-4de88d566736",
- "publicAccess": true,
- "backupAuto": true,
- "backupDuration": 2,
- "backupTime": "02:00",
- "packageId": "211",
- "replicaSourceId": "db-70a4fbee-db60-46d2-858c-875478a03a38",
- "poc": true,
- "locateZoneId": "HCM03-1A"
}required | object |
| pageNumber required | integer <int32> |
| pageSize required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-memory/v1/database-instances', qs: { filterRequest: 'SOME_OBJECT_VALUE', pageNumber: 'SOME_INTEGER_VALUE', pageSize: 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| dbInstanceId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-memory/v1/database-instances/%7BdbInstanceId%7D', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| dbInstanceId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-memory/v1/database-instances/%7BdbInstanceId%7D/replicas', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| dbInstanceId required | string |
| pageNumber | integer <int32> Default: 1 |
| pageSize | integer <int32> Default: 10 |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-memory/v1/database-instances/%7BdbInstanceId%7D/histories', qs: {pageNumber: 'SOME_INTEGER_VALUE', pageSize: 'SOME_INTEGER_VALUE'}, headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| dbInstanceId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-memory/v1/database-instances/%7BdbInstanceId%7D/backups', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| portal-user-id required | integer <int32> |
| id | string Config group ID |
object Config group values |
{- "id": "cfg-b8cf4290-9c11-4b52-bea1-d4423e90b729",
- "values": {
- "autocommit": 1
}
}| portal-user-id required | integer <int32> |
| id | string Config Group ID |
[- {
- "id": "cfg-b8cf4290-9c11-4b52-bea1-d4423e90b729"
}
]| portal-user-id required | integer <int32> |
| name | string Config Group Name |
| description | string Config Group Description |
| datastoreType | string Config Group Datastore Type. Allowed value: Redis |
| datastoreVersion | string Version of Datastore Type |
{- "name": "test-config-group",
- "description": "This is a test config group",
- "datastoreType": "Redis",
- "datastoreVersion": "7.2"
}| pageNumber | integer <int32> Default: 1 |
| pageSize | integer <int32> Default: 10 |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-memory/v1/configurations', qs: {pageNumber: 'SOME_INTEGER_VALUE', pageSize: 'SOME_INTEGER_VALUE'}, headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-memory/v1/configurations/%7BconfigId%7D/detail' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| datastoreType required | string |
| datastoreVersion required | string |
| deployType | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-memory/v1/configurations/params', qs: { datastoreType: 'SOME_STRING_VALUE', datastoreVersion: 'SOME_STRING_VALUE', deployType: 'SOME_STRING_VALUE' }, headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| clusterId required | string |
| userId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-kafka/clusters/%7BclusterId%7D/users/%7BuserId%7D', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| clusterId required | string |
| userId required | string |
| portal-user-id required | integer <int32> |
| produceTopicNames | Array of strings List of topic names that the created user has Produce permission on. The value of this field will be ignored if 'produceAll' is true. |
| produceAll | boolean Indicates whether the created user has Produce permission on all topics. |
| consumeTopicNames | Array of strings List of topic names that the created user has Consume permission on. The value of this field will be ignored if 'consumeAll' is true. |
| consumeAll | boolean Indicates whether the created user has Consume permission on all topics. |
| produceConsumeTopicNames | Array of strings List of topic names that the created user has Produce and Consume permissions on. The value of this field will be ignored if 'produceConsumeAll' is true. |
| produceConsumeAll | boolean Indicates whether the created user has both Produce and Consume permissions on all topics. |
| adminTopicNames | Array of strings List of topic names that the created user has Admin permission on. The value of this field will be ignored if 'adminAll' is true. |
| adminAll | boolean Indicates whether the created user has Admin permission on all topics. |
| mtlsAuthen | boolean mTLS Authentication Enabled |
| saslAuthen | boolean SASL Authentication Enabled |
{- "produceTopicNames": [
- "topic-7767529e-93"
], - "produceAll": true,
- "consumeTopicNames": [
- "topic-7767529e-93"
], - "consumeAll": true,
- "produceConsumeTopicNames": [
- "topic-7767529e-93"
], - "produceConsumeAll": true,
- "adminTopicNames": [
- "topic-7767529e-93"
], - "adminAll": true,
- "mtlsAuthen": true,
- "saslAuthen": true
}| clusterId required | string |
| userId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'DELETE', url: 'https:/vdb-gateway.vngcloud.vn/vdb-kafka/clusters/%7BclusterId%7D/users/%7BuserId%7D', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| clusterId required | string |
| userId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'PUT', url: 'https:/vdb-gateway.vngcloud.vn/vdb-kafka/clusters/%7BclusterId%7D/users/%7BuserId%7D/regenerate-creds', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| clusterId required | string |
| topicId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-kafka/clusters/%7BclusterId%7D/topics/%7BtopicId%7D', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| clusterId required | string |
| topicId required | string |
| portal-user-id required | integer <int32> |
| partitions | integer <int32> Partition count. Minimum 1 partition and maximum 2048 partition |
| replicas | integer <int32> Replication factor. Minimum 1 factor and not exceed the number of brokers |
| retentionSeconds | integer <int64> Retention time in seconds. Minimum 3600 seconds and maximum 7776000 seconds |
| retentionBytes | integer <int64> Retention byte. Minimum 1 byte and maximum 1099511627776 bytes. Kafka will create the topic with a default value if this field is empty. You can set this field to -1 for unlimited value. |
{- "partitions": 3,
- "replicas": 3,
- "retentionSeconds": 3600,
- "retentionBytes": 100229295
}| clusterId required | string |
| topicId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'DELETE', url: 'https:/vdb-gateway.vngcloud.vn/vdb-kafka/clusters/%7BclusterId%7D/topics/%7BtopicId%7D', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| clusterId required | string |
| enable required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'PUT', url: 'https:/vdb-gateway.vngcloud.vn/vdb-kafka/clusters/%7BclusterId%7D/public-access', qs: {enable: 'SOME_STRING_VALUE'}, headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| clusterId required | string |
| storageType required | string |
| portal-user-id required | integer <int32> |
| user-type | string Example: ROOT_USER ROOT_USER for Checkout flow or IAM_USER for Auto Payment flow. Available values: ROOT_USER, IAM_USER. Default value: ROOT_USER. |
const request = require('request'); const options = { method: 'PUT', url: 'https:/vdb-gateway.vngcloud.vn/vdb-kafka/clusters/%7BclusterId%7D/kafka-storage-type', qs: {storageType: 'SOME_STRING_VALUE'}, headers: {'portal-user-id': 'SOME_INTEGER_VALUE', 'user-type': 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| clusterId required | string |
| size required | integer <int32> |
| portal-user-id required | integer <int32> |
| user-type | string Example: ROOT_USER ROOT_USER for Checkout flow or IAM_USER for Auto Payment flow. Available values: ROOT_USER, IAM_USER. Default value: ROOT_USER. |
const request = require('request'); const options = { method: 'PUT', url: 'https:/vdb-gateway.vngcloud.vn/vdb-kafka/clusters/%7BclusterId%7D/kafka-storage-size', qs: {size: 'SOME_INTEGER_VALUE'}, headers: {'portal-user-id': 'SOME_INTEGER_VALUE', 'user-type': 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| clusterId required | string |
| count required | integer <int32> |
| rebalance required | boolean |
| portal-user-id required | integer <int32> |
| user-type | string Example: ROOT_USER ROOT_USER for Checkout flow or IAM_USER for Auto Payment flow. Available values: ROOT_USER, IAM_USER. Default value: ROOT_USER. |
const request = require('request'); const options = { method: 'PUT', url: 'https:/vdb-gateway.vngcloud.vn/vdb-kafka/clusters/%7BclusterId%7D/kafka-broker-count', qs: {count: 'SOME_INTEGER_VALUE', rebalance: 'SOME_BOOLEAN_VALUE'}, headers: {'portal-user-id': 'SOME_INTEGER_VALUE', 'user-type': 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| clusterId required | string |
| configGroupVersionId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'PUT', url: 'https:/vdb-gateway.vngcloud.vn/vdb-kafka/clusters/%7BclusterId%7D/config-group', qs: {configGroupVersionId: 'SOME_STRING_VALUE'}, headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| clusterId required | string |
| mtlsAuthen required | boolean |
| saslAuthen required | boolean |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'PUT', url: 'https:/vdb-gateway.vngcloud.vn/vdb-kafka/clusters/%7BclusterId%7D/authentication', qs: {mtlsAuthen: 'SOME_BOOLEAN_VALUE', saslAuthen: 'SOME_BOOLEAN_VALUE'}, headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-kafka/clusters', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| portal-user-id required | integer <int32> |
| user-type | string Example: ROOT_USER ROOT_USER for Checkout flow or IAM_USER for Auto Payment flow. Available values: ROOT_USER, IAM_USER. Default value: ROOT_USER. |
| name | string Cluster Name |
| kafkaVersion | string Kafka Version |
| serverFlavorId | string Flavor Id |
| kafkaBrokerCount | integer <int32> Number of brokers. Minimum 3 brokers and maximum 10 brokers |
| kafkaStorageType | string Volume Type Id |
| kafkaStorageSize | integer <int32> Volume Size |
| vserverProjectId | string vServer Project Id |
| networkId | string Network Id |
| subnetId | string Subnet Id |
| mtlsAuthen | boolean mTLS Authentication Enabled |
| saslAuthen | boolean SASL Authentication Enabled |
| configGroupVersionId | string Config Group Version Id |
| encryptionVolume | boolean Encryption Volume Enabled |
{- "name": "cluster-13a2d94f-f7",
- "kafkaVersion": "3.7.0",
- "serverFlavorId": "flav-ced35853-d815-4ff5-82be-43c0a938cbfb",
- "kafkaBrokerCount": 3,
- "kafkaStorageType": "vtype-93a22a9f-1ec0-4e61-84fb-75ac181c13dc",
- "kafkaStorageSize": 20,
- "vserverProjectId": "pro-2b233cab-430c-49db-be6a-c54bd8aa5f93",
- "networkId": "net-e104e0a8-b7f5-4184-8720-87c6b77f0217",
- "subnetId": "sub-e843ab13-eb6c-4541-93f6-912b3c33210c",
- "mtlsAuthen": true,
- "saslAuthen": true,
- "configGroupVersionId": "cgroupver-a29c1513-fd3b-4454-b5a1-04999340993a",
- "encryptionVolume": true
}| clusterId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-kafka/clusters/%7BclusterId%7D/users', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| clusterId required | string |
| portal-user-id required | integer <int32> |
| name | string User Name |
| produceTopicNames | Array of strings List of topic names that the created user has Produce permission on. The value of this field will be ignored if 'produceAll' is true. |
| produceAll | boolean Indicates whether the created user has Produce permission on all topics. |
| consumeTopicNames | Array of strings List of topic names that the created user has Consume permission on. The value of this field will be ignored if 'consumeAll' is true. |
| consumeAll | boolean Indicates whether the created user has Consume permission on all topics. |
| produceConsumeTopicNames | Array of strings List of topic names that the created user has Produce and Consume permissions on. The value of this field will be ignored if 'produceConsumeAll' is true. |
| produceConsumeAll | boolean Indicates whether the created user has both Produce and Consume permissions on all topics. |
| adminTopicNames | Array of strings List of topic names that the created user has Admin permission on. The value of this field will be ignored if 'adminAll' is true. |
| adminAll | boolean Indicates whether the created user has Admin permission on all topics. |
| mtlsAuthen | boolean mTLS Authentication Enabled |
| saslAuthen | boolean SASL Authentication Enabled |
{- "name": "user-13a2d94f-f7",
- "produceTopicNames": [
- "topic-7767529e-93"
], - "produceAll": true,
- "consumeTopicNames": [
- "topic-7767529e-93"
], - "consumeAll": true,
- "produceConsumeTopicNames": [
- "topic-7767529e-93"
], - "produceConsumeAll": true,
- "adminTopicNames": [
- "topic-7767529e-93"
], - "adminAll": true,
- "mtlsAuthen": true,
- "saslAuthen": true
}| clusterId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-kafka/clusters/%7BclusterId%7D/topics', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| clusterId required | string |
| portal-user-id required | integer <int32> |
| name | string Topic Name |
| partitions | integer <int32> Partition count. Minimum 1 partition and maximum 2048 partition |
| replicas | integer <int32> Replication factor. Minimum 1 factor and not exceed the number of brokers |
| retentionSeconds | integer <int64> Retention time in seconds. Minimum 3600 seconds and maximum 7776000 seconds |
| retentionBytes | integer <int64> Retention byte. Minimum 1 byte and maximum 1099511627776 bytes. Kafka will create the topic with a default value if this field is empty. You can set this field to -1 for unlimited value. |
{- "name": "topic-13a2d94f-f7",
- "partitions": 3,
- "replicas": 3,
- "retentionSeconds": 3600,
- "retentionBytes": 100229295
}| clusterId required | string |
| portal-user-id required | integer <int32> |
| remoteIp | string Remote IP Prefix |
| port | integer <int32> Port. Allowed ports: 9092,9094,9096,9194,9196 |
{- "remoteIp": "0.0.0.0/0",
- "port": 9092
}| clusterId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-kafka/clusters/%7BclusterId%7D', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| clusterId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'DELETE', url: 'https:/vdb-gateway.vngcloud.vn/vdb-kafka/clusters/%7BclusterId%7D', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| clusterId required | string |
| userId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-kafka/clusters/%7BclusterId%7D/users/%7BuserId%7D/authen-creds', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| clusterId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-kafka/clusters/%7BclusterId%7D/history', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| clusterId required | string |
| secGroupRuleId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'DELETE', url: 'https:/vdb-gateway.vngcloud.vn/vdb-kafka/clusters/%7BclusterId%7D/security-group-rules/%7BsecGroupRuleId%7D', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| portal-user-id required | integer <int32> |
| user-type | string Example: ROOT_USER ROOT_USER for Checkout flow or IAM_USER for Auto Payment flow. Available values: ROOT_USER, IAM_USER. Default value: ROOT_USER. |
| backupPackageId | string Backup Storage package ID |
{- "backupPackageId": "2"
}| portal-user-id required | integer <int32> |
| user-type | string Example: ROOT_USER ROOT_USER for Checkout flow or IAM_USER for Auto Payment flow. Available values: ROOT_USER, IAM_USER. Default value: ROOT_USER. |
Array of objects (ResizeBackupStorageDetail) Resize information | |
| action | string Action. Allowed value: resize |
| resourceType | string Backup Storage resource type. Allowed value: dbaas-backup-storage |
{- "databaseInstances": [
- {
- "instancesId": "db-bk-storage-7a0c736d-ba65-4b3c-8a89-2abfb1415d34",
- "config": {
- "backupPackageId": "2"
}
}
], - "action": "resize",
- "resourceType": "dbaas-backup-storage"
}| portal-user-id required | integer <int32> |
Array of objects (DeleteBackupStorageDetail) Delete information | |
| action | string Action. Allowed value: delete |
| resType | string Backup Storage resource type. Allowed value: dbaas-backup-storage |
{- "databaseInstances": [
- {
- "instancesId": "db-bk-storage-7a0c736d-ba65-4b3c-8a89-2abfb1415d34"
}
], - "action": "delete",
- "resType": "dbaas-backup-storage"
}const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-relational/v1/backup-storages', headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-relational/v1/backup-storages/information', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| id required | string |
| portal-user-id required | integer <int32> |
| user-type | string Example: ROOT_USER ROOT_USER for Checkout flow or IAM_USER for Auto Payment flow. Available values: ROOT_USER, IAM_USER. Default value: ROOT_USER. |
Array of objects (RestoreBackupDetail) Restore backup information | |
| action | string Action. Allowed value: restore_backup |
| resourceType | string Backup resource type. Allowed value: dbaas-backup |
{- "databaseInstances": [
- {
- "config": {
- "backupId": "bk-296b7289-a626-4bea-b2d0-66f3ce9d0db3",
- "name": "new-instance",
- "volumeType": "Gen2-NVMe2-IOPS3000",
- "volumeSize": 20,
- "datastoreType": "MySQL",
- "datastoreVersion": "8.0",
- "netIds": [
- "sub-e843ab13-eb6c-4541-93f6-912b3c33210c"
], - "configId": "cfg-62a9843e-59f9-4549-afc0-4de88d566736",
- "publicAccess": true,
- "backupAuto": true,
- "backupDuration": 2,
- "backupTime": "02:00",
- "packageId": "211",
- "poc": true,
- "locateZoneId": "HCM03-1A"
}
}
], - "action": "restore_backup",
- "resourceType": "dbaas-backup"
}| portal-user-id required | integer <int32> |
| dbInstanceId | string Db instance Id |
| name | string Backup name |
| parentId | string Parent backup Id. Required if 'backupType' is INCREMENTAL |
| backupType | string Backup type. Allowed values: FULL, INCREMENTAL |
| description | string Backup description |
{- "dbInstanceId": "db-2891dc4f-dc55-41f6-9f92-9c5ca0a78272",
- "name": "backup_1",
- "parentId": "bk-e589fd8a-6037-47dc-95a2-338f209dc524",
- "backupType": "FULL",
- "description": "This is description"
}| pageNumber | integer <int32> Default: 1 |
| pageSize | integer <int32> Default: 10 |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-relational/v1/backups', qs: {pageNumber: 'SOME_INTEGER_VALUE', pageSize: 'SOME_INTEGER_VALUE'}, headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| instanceId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-relational/v1/backups/insId/%7BinstanceId%7D', headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-relational/v1/backups/free-backup', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| backupId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-relational/v1/backups/detail/%7BbackupId%7D', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| backupId required | string |
| portal-user-id required | integer <int32> |
| backupId required | string Backup Id |
[- {
- "backupId": "bk-296b7289-a626-4bea-b2d0-66f3ce9d0db3"
}
]| clusterId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'POST', url: 'https:/vdb-gateway.vngcloud.vn/vdb-postgresql/v1/backup/backup-vdb/%7BclusterId%7D/backup-now', headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-postgresql/v1/backup/policy', headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-postgresql/v1/backup/location', headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-postgresql/v1/backup/backup-vdb', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| clusterId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-postgresql/v1/backup/backup-vdb/%7BclusterId%7D/restore-point', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| clusterId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-postgresql/v1/backup/backup-vdb/%7BclusterId%7D/detail', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| portal-user-id required | integer <int32> |
| user-type | string Example: ROOT_USER ROOT_USER for Checkout flow or IAM_USER for Auto Payment flow. Available values: ROOT_USER, IAM_USER. Default value: ROOT_USER. |
| backupPackageId | string Backup Storage package ID |
{- "backupPackageId": "2"
}| portal-user-id required | integer <int32> |
| user-type | string Example: ROOT_USER ROOT_USER for Checkout flow or IAM_USER for Auto Payment flow. Available values: ROOT_USER, IAM_USER. Default value: ROOT_USER. |
Array of objects (ResizeBackupStorageDetail) Resize information | |
| action | string Action. Allowed value: resize |
| resourceType | string Backup Storage resource type. Allowed value: dbaas-backup-storage |
{- "databaseInstances": [
- {
- "instancesId": "db-bk-storage-7a0c736d-ba65-4b3c-8a89-2abfb1415d34",
- "config": {
- "backupPackageId": "2"
}
}
], - "action": "resize",
- "resourceType": "dbaas-backup-storage"
}| portal-user-id required | integer <int32> |
Array of objects (DeleteBackupStorageDetail) Delete information | |
| action | string Action. Allowed value: delete |
| resType | string Backup Storage resource type. Allowed value: dbaas-backup-storage |
{- "databaseInstances": [
- {
- "instancesId": "db-bk-storage-7a0c736d-ba65-4b3c-8a89-2abfb1415d34"
}
], - "action": "delete",
- "resType": "dbaas-backup-storage"
}const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-memory/v1/backup-storages', headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-memory/v1/backup-storages/packages', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| backupId required | string |
| portal-user-id required | integer <int32> |
| user-type | string Example: ROOT_USER ROOT_USER for Checkout flow or IAM_USER for Auto Payment flow. Available values: ROOT_USER, IAM_USER. Default value: ROOT_USER. |
Array of objects (RestoreMemBackupDetail) Restore backup information | |
| action | string Action. Allowed value: restore_backup |
| resourceType | string Backup resource type. Allowed value: dbaas-backup |
{- "databaseInstances": [
- {
- "config": {
- "backupId": "bk-296b7289-a626-4bea-b2d0-66f3ce9d0db3",
- "name": "new-instance",
- "datastoreType": "Redis",
- "datastoreVersion": "7.2",
- "netIds": [
- "sub-e843ab13-eb6c-4541-93f6-912b3c33210c"
], - "configId": "cfg-62a9843e-59f9-4549-afc0-4de88d566736",
- "publicAccess": true,
- "backupAuto": true,
- "backupDuration": 2,
- "backupTime": "02:00",
- "packageId": "211",
- "redisPasswordEnabled": true,
- "redisPassword": "abcd1234abcd1234",
- "poc": true,
- "locateZoneId": "HCM03-1A"
}
}
], - "action": "restore_backup",
- "resourceType": "dbaas-backup"
}| portal-user-id required | integer <int32> |
| backupId required | string Backup Id |
[- {
- "backupId": "bk-296b7289-a626-4bea-b2d0-66f3ce9d0db3"
}
]| portal-user-id required | integer <int32> |
| dbInstanceId | string Db instance Id |
| name | string Backup name |
| parentId | string Parent backup Id. Required if 'backupType' is INCREMENTAL |
| backupType | string Backup type. Allowed values: FULL, INCREMENTAL |
| description | string Backup description |
{- "dbInstanceId": "db-2891dc4f-dc55-41f6-9f92-9c5ca0a78272",
- "name": "backup_1",
- "parentId": "bk-e589fd8a-6037-47dc-95a2-338f209dc524",
- "backupType": "FULL",
- "description": "This is description"
}| pageNumber | integer <int32> Default: 1 |
| pageSize | integer <int32> Default: 10 |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-memory/v1/backups', qs: {pageNumber: 'SOME_INTEGER_VALUE', pageSize: 'SOME_INTEGER_VALUE'}, headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| backupId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-memory/v1/backups/%7BbackupId%7D/detail', headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-memory/v1/backups/free-backup', headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-kafka/config-groups', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| portal-user-id required | integer <int32> |
| name | string Config Group Name |
| description | string Config Group Description |
Array of objects (ConfigGroupPropertyDto) Config Group Properties |
{- "name": "config-13a2d94f-f7",
- "description": "This is a config group",
- "properties": [
- {
- "key": "string",
- "value": "string"
}
]
}| configGroupId required | string |
| portal-user-id required | integer <int32> |
Array of objects (ConfigGroupPropertyDto) Config Group Properties |
{- "properties": [
- {
- "key": "string",
- "value": "string"
}
]
}| configGroupId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-kafka/config-groups/%7BconfigGroupId%7D', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| configGroupId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'DELETE', url: 'https:/vdb-gateway.vngcloud.vn/vdb-kafka/config-groups/%7BconfigGroupId%7D', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| configGroupId required | string |
| configGroupVersionId required | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-kafka/config-groups/%7BconfigGroupId%7D/versions/%7BconfigGroupVersionId%7D', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| zoneId | string Default: "HCM03-1A" |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-memory/v1/database/volume-types', qs: {zoneId: 'SOME_STRING_VALUE'}, headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-memory/v1/database/status', headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-memory/v1/database/networks', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| zoneId | string |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-memory/v1/database/networks/subnets', qs: {zoneId: 'SOME_STRING_VALUE'}, headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| type required | string |
| version required | string |
| zoneId | string Default: "HCM03-1A" |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-memory/v1/database/flavors', qs: { type: 'SOME_STRING_VALUE', version: 'SOME_STRING_VALUE', zoneId: 'SOME_STRING_VALUE' }, headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-memory/v1/database/families', headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-memory/v1/database/engine', headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-memory/v1/database/datastore', headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-memory/v1/database/configuration', headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-memory/v1/database/codes', headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-kafka/database/volume-types', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| type | string Default: "kafka" |
| version | string Default: "1.0" |
| portal-user-id required | integer <int32> |
const request = require('request'); const options = { method: 'GET', url: 'https:/vdb-gateway.vngcloud.vn/vdb-kafka/database/flavors', qs: {type: 'SOME_STRING_VALUE', version: 'SOME_STRING_VALUE'}, headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-kafka/database/families', headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-kafka/database/configs', headers: {'portal-user-id': 'SOME_INTEGER_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:/vdb-gateway.vngcloud.vn/vdb-kafka/database/codes', headers: {'portal-user-id': 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });