Download OpenAPI specification:Download
Api Documentation
projectId required | string project id |
name required | string name |
page required | string Default: "1" page |
size required | string Default: "10" size |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/cas', qs: {name: 'SOME_STRING_VALUE', page: '1', size: '10'}, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
importCARequest
certificate | string Certificate of the CA |
certificateChain | string A certificate chain is an ordered list of certificates, containing an SSL/TLS Certificate and Certificate Authority (CA) Certificates, that enable the receiver to verify that the sender and all CA's are trustworthy. |
name required | string Name of the CA |
passphrase | string The password of the private key. |
privateKey | string Private key of the CA |
type required | string Enum: "CA" "TLS/SSL" Type of the certificate ( CA or TLS/SSL ) |
{- "certificate": "string",
- "certificateChain": "string",
- "name": "ca_01",
- "passphrase": "string",
- "privateKey": "string",
- "type": "TLS/SSL"
}
caId required | string The certificate authority id |
projectId required | string project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/cas/{caId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
caId required | string The ca id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/cas/{caId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string project id |
name | string name |
page | integer <int32> Default: 1 page |
size | integer <int32> Default: 10 size |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/dhcp_option', qs: {name: 'SOME_STRING_VALUE', page: '1', size: '10'}, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createDhcpOptionRequest
dnsServers | Array of strings List of dns servers. |
mtu | integer <int32> MTU Interface. |
name required | string Name of the Dhcp Option |
Array of objects (TagRequest) Tags of resource |
{- "dnsServers": [
- "string"
], - "mtu": 1450,
- "name": "Dhcp Option A",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
id required | string The dhcp option id |
projectId required | string project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/dhcp_option/{id}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
id required | string The dhcp option id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/dhcp_option/{id}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
name | string name |
page | integer <int32> page |
size | integer <int32> size |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/elastic-ips', qs: { name: 'SOME_STRING_VALUE', page: 'SOME_INTEGER_VALUE', size: 'SOME_INTEGER_VALUE' }, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/{project_id}/flavors/customs', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/{project_id}/flavors/customs/clusters', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
familyKey required | string The family key |
platformKey required | string The platform key |
project_id required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/{project_id}/flavors/families/{familyKey}/platforms/{platformKey}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
familyKey required | string The family key |
master required | boolean master |
platformKey required | string The platform key |
project_id required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/{project_id}/flavors/families/{familyKey}/platforms/{platformKey}/clusters/master/{master}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
flavor_id required | string flavor_id |
project_id required | string project_id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/{project_id}/flavors/{flavor_id}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
flavor_zone_id required | string flavor_zone_id |
project_id required | string project_id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/{project_id}/{flavor_zone_id}/flavors', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string project_id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/{project_id}/flavor_zones/codes', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string project_id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/{project_id}/flavor_zones/customs', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
master required | boolean master |
project_id required | string project_id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/{project_id}/flavor_zones/customs/clusters/master/{master}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string project_id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/{project_id}/flavor_zones/families', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string project_id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/{project_id}/flavor_zones/families/clusters', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
product required | string product |
project_id required | string project_id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/{project_id}/flavor_zones/product', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
product required | string product |
project_id required | string project_id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/{project_id}/flavor_zones/product/{product}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
flavor_zone_id required | string flavor_zone_id |
project_id required | string project_id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/{project_id}/flavor_zones/{flavor_zone_id}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string project_id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/{project_id}/images/gpu', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string project_id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/{project_id}/images/os', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string project_id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/{project_id}/images/os_default', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string the project id |
name | string name |
page | integer <int32> Default: 1 page |
size | integer <int32> Default: 10 size |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/interconnects', qs: {name: 'SOME_STRING_VALUE', page: '1', size: '10'}, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string the project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createInterconnectRequest
description | string Description |
enableGw2 | boolean Enable Gw 2 |
name required | string Name of the Interconnect |
packageId required | string PackageId |
Array of objects (TagRequest) Tags of resource | |
typeId required | string TypeId |
{- "description": "Interconnect from A to B",
- "enableGw2": true,
- "name": "Interconnect_01",
- "packageId": "itp-1Gbps",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
], - "typeId": "EXTERNAL"
}
projectId required | string the project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/interconnects/circuit-types', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project Id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/interconnects/packages', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
interconnectId required | string the interconnect id |
projectId required | string the project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/interconnects/{interconnectId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
interconnectId required | string the interconnect id |
projectId required | string the project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
updateInterconnectRequest
description | string Description |
enableGw2 | boolean Enable Gw 2 |
Array of objects (TagRequest) Tags of resource |
{- "description": "Interconnect from A to B",
- "enableGw2": true,
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
interconnectId required | string the interconnect id |
projectId required | string the project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/interconnects/{interconnectId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
interconnectId required | string the interconnect id |
projectId required | string the project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
changePackageInterconnectRequest
packageId required | string PackageId |
Array of objects (TagRequest) Tags of resource |
{- "packageId": "itp-1Gbps",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
interconnectId required | string the interconnect id |
projectId required | string the project id |
name | string name |
page | integer <int32> Default: 1 page |
size | integer <int32> Default: 10 size |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/interconnects/{interconnectId}/connections', qs: {name: 'SOME_STRING_VALUE', page: '1', size: '10'}, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
interconnectId required | string the interconnect id |
projectId required | string the project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createInterconnectionRequest
description | string Description |
name required | string Name of the Interconnect Connection |
networkId required | string net-657cf76c-cccc-xxxx-xxxx-5c8485578705 |
subnets required | Array of strings List Remote Subnets |
Array of objects (TagRequest) Tags of resource |
{- "description": "Connection from VPC A to B",
- "name": "Connection from A to B",
- "networkId": true,
- "subnets": [
- "10.21.10.0/24",
- "10.22.11.0/24"
], - "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
interconnectId required | string the interconnect id |
interconnectionId required | string the interconnection id |
projectId required | string the project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/interconnects/{interconnectId}/connections/{interconnectionId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
interconnectId required | string the interconnect id |
interconnectionId required | string the interconnection id |
projectId required | string the project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
updateSubnetsInterconnectionRequest
subnets required | Array of strings List Remote Subnets |
Array of objects (TagRequest) Tags of resource |
{- "subnets": [
- "10.21.10.0/24",
- "10.22.11.0/24"
], - "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
interconnectId required | string the interconnect id |
interconnectionId required | string the interconnection id |
projectId required | string the project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/interconnects/{interconnectId}/connections/{interconnectionId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
interconnectId required | string the interconnect id |
projectId required | string the project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
pingInterconnectRequest
gwNumber | integer <int32> Gateway Number (1 or 2) |
Array of objects (TagRequest) Tags of resource |
{- "gwNumber": 1,
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string project id |
name required | string name |
page required | string Default: "1" page |
size required | string Default: "10" size |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/peering', qs: {name: 'SOME_STRING_VALUE', page: '1', size: '10'}, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
peeringId required | string peeringId |
projectId required | string projectId |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/peering/{peeringId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
signature required | string Event's signature |
Authorization required | string Access Token |
const request = require('request'); const options = { method: 'POST', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/lb-events/manual-trigger/{signature}', headers: { accept: 'application/json', 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
Authorization required | string Access Token |
body
alarmDescription | string |
alarm_description | string |
signature | string |
{- "alarmDescription": "string",
- "alarm_description": "string",
- "signature": "string"
}
loadBalancerId required | string The Load Balancer id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/loadBalancers/{loadBalancerId}/listeners', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
loadBalancerId required | string The Load Balancer id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createListenerRequestV2
allowedCidrs required | string Allowed cidr. |
certificateAuthorities | Array of strings List of certificate authority |
clientCertificate | string The TLS client authentication mode |
defaultCertificateAuthority | string Default certificate authority that the listener will use |
defaultPoolId | string Id of the pool that this listener will forward to. |
headers | Array of strings Items Enum: "X-Forwarded-For" "X-Forwarded-Port" "X-SSL-Client-Verify" "X-SSL-Client-Has-Cert" "X-SSL-Client-DN" "X-SSL-Client-CN" "X-SSL-Issuer" "X-SSL-Client-SHA1" "X-SSL-Client-Not-Before" "X-SSL-Client-Not-After" "X-Forwarded-Proto" List Headers |
listenerName required | string Name of the listener. Only letters (a-z, A-Z, 0-9, '_', '.') are allowed and your input data must be between 5 and 50 characters. |
listenerProtocol required | string Enum: "HTTP" "HTTPS" "TCP" "UDP" Protocol of the listener. |
listenerProtocolPort required | integer <int32> Port of the listener. |
timeoutClient required | integer <int32> Idle timeout of client. The value can be in range from 1 to 3600 seconds |
timeoutConnection required | integer <int32> Idle timeout of connection. The value can be in range from 1 to 3600 seconds |
timeoutMember required | integer <int32> Idle timeout of member. The value can be in range from 1 to 3600 seconds |
{- "allowedCidrs": "0.0.0.0/0",
- "certificateAuthorities": [
- "secret-4ea86b49-9427-4b14-b080-8ac88a1f5efe"
], - "clientCertificate": "secret-4ea86b49-9427-4b14-b080-8ac88a1f5efe",
- "defaultCertificateAuthority": "secret-4ea86b49-9427-4b14-b080-8ac88a1f5efe",
- "defaultPoolId": "pool-1a007f28-bafa-450f-963b-3d177730c3b8",
- "headers": [
- "X-Forwarded-For"
], - "listenerName": "listener_02",
- "listenerProtocol": "HTTP",
- "listenerProtocolPort": 80,
- "timeoutClient": 50,
- "timeoutConnection": 5,
- "timeoutMember": 50
}
listenerId required | string The listener id |
loadBalancerId required | string The Load Balancer id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/loadBalancers/{loadBalancerId}/listeners/{listenerId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
listenerId required | string The listener id |
loadBalancerId required | string The Load Balancer id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
updateListenerRequestV2
allowedCidrs required | string Allowed cidr. |
certificateAuthorities | Array of strings List of certificate authority |
clientCertificate | string The TLS client authentication mode |
defaultCertificateAuthority | string Default certificate authority. |
defaultPoolId | string Id of the pool that this listener will forward to. |
headers | Array of strings Items Enum: "X-Forwarded-For" "X-Forwarded-Port" "X-SSL-Client-Verify" "X-SSL-Client-Has-Cert" "X-SSL-Client-DN" "X-SSL-Client-CN" "X-SSL-Issuer" "X-SSL-Client-SHA1" "X-SSL-Client-Not-Before" "X-SSL-Client-Not-After" "X-Forwarded-Proto" List Headers |
timeoutClient required | integer <int32> Idle timeout of client. The value can be in range from 1 to 3600 seconds |
timeoutConnection required | integer <int32> Idle timeout of connection. The value can be in range from 1 to 3600 seconds |
timeoutMember required | integer <int32> Idle timeout of member. The value can be in range from 1 to 3600 seconds |
{- "allowedCidrs": "0.0.0.0/0",
- "certificateAuthorities": [
- "secret-4ea86b49-9427-4b14-b080-8ac88a1f5efe"
], - "clientCertificate": "secret-4ea86b49-9427-4b14-b080-8ac88a1f5efe",
- "defaultCertificateAuthority": "secret-4ea86b49-9427-4b14-b080-8ac88a1f5efe",
- "defaultPoolId": "pool-1a007f28-bafa-450f-963b-3d177730c3b8",
- "headers": [
- "X-Forwarded-For"
], - "timeoutClient": 50,
- "timeoutConnection": 5,
- "timeoutMember": 50
}
listenerId required | string The listener id |
loadBalancerId required | string The load balancer id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/loadBalancers/{loadBalancerId}/listeners/{listenerId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
listenerId required | string The listener id |
loadBalancerId required | string The Load Balancer id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/loadBalancers/{loadBalancerId}/listeners/{listenerId}/l7policies', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
listenerId required | string The listener id |
loadBalancerId required | string The Load Balancer id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createL7PolicyRequestV2
action required | string Enum: "REDIRECT_TO_POOL" "REDIRECT_TO_URL" Action. This indicates how the listener will route traffic. The value can be REDIRECT_TO_POOL or REDIRECT_TO_URL. |
keepQueryString | boolean Keep the query string or not. |
name required | string Policy name. Only letters (a-z, A-Z, 0-9, '_', '.') are allowed and your input data must be between 5 and 50 characters. |
redirectHttpCode | integer <int32> Enum: 301 302 Redirect HTTP code for redirecting to other URL. |
redirectPoolId | string Pool for forwarding. |
redirectUrl | string URL for forwarding. |
Array of objects (L7RuleRequest) List of rules of the policy. |
{- "action": "REDIRECT_TO_URL",
- "keepQueryString": true,
- "name": "l7policy_1",
- "redirectHttpCode": 301,
- "redirectPoolId": "pool-1a007f28-bafa-450f-963b-3d177730c3b8",
- "rules": [
- {
- "compareType": "EQUAL_TO",
- "ruleType": "PATH",
- "ruleValue": "www.example.com"
}
]
}
l7PolicyId required | string The l7Policy id |
listenerId required | string The listener id |
loadBalancerId required | string The Load Balancer id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/loadBalancers/{loadBalancerId}/listeners/{listenerId}/l7policies/{l7PolicyId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
listenerId required | string The listener id |
loadBalancerId required | string The Load Balancer id |
policyId required | string The policy id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
updateL7PolicyRequestV2
action required | string Enum: "REDIRECT_TO_POOL" "REDIRECT_TO_URL" Action. This indicates how the listener will route traffic. The value can be REDIRECT_TO_POOL or REDIRECT_TO_URL. |
keepQueryString | boolean Keep the query string or not. |
redirectHttpCode | integer <int32> Enum: 301 302 Redirect HTTP code for redirecting to other URL. |
redirectPoolId | string Pool for forwarding. |
redirectUrl | string URL for forwarding. |
Array of objects (L7RuleRequest) List of rules of the policy. |
{- "action": "REDIRECT_TO_URL",
- "keepQueryString": false,
- "redirectHttpCode": 302,
- "redirectPoolId": "pool-1a007f28-bafa-450f-963b-3d177730c3b8",
- "rules": [
- {
- "compareType": "EQUAL_TO",
- "ruleType": "PATH",
- "ruleValue": "www.example.com"
}
]
}
listenerId required | string listener id |
loadBalancerId required | string The Load Balancer id |
policyId required | string policy id |
projectId required | string project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/loadBalancers/{loadBalancerId}/listeners/{listenerId}/l7policies/{policyId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
listenerId required | string The listener id |
loadBalancerId required | string The Load Balancer id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
reorderPoliciesRequestV2
required | Array of objects (ReorderPolicyRequest) List of policies to reorder, start from 1 to .... |
{- "policies": [
- {
- "policyId": "policy-4ca4af07-271c-4617-ba9a-1dd01bf2c93c",
- "position": 1
}
]
}
loadBalancerId required | string The Load Balancer id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/loadBalancers/{loadBalancerId}/pools', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
loadBalancerId required | string The load balancer id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createPoolRequestV2
algorithm required | string Enum: "ROUND_ROBIN" "LEAST_CONNECTIONS" "SOURCE_IP" Algorithm of the pool. The algorithm can be "ROUND_ROBIN" or "LEAST_CONNECTIONS" or "SOURCE_IP" |
object (CreateHealthMonitorRequest) | |
Array of objects (MemberRequest) List of members of the pool. | |
poolName required | string Name of the pool. Only letters (a-z, A-Z, 0-9, '_', '.') are allowed and your input data must be between 5 and 50 characters. |
poolProtocol required | string Enum: "HTTP" "TCP" "UDP" "PROXY" Protocol of the pool. |
stickiness | boolean Enable sticky sessions. |
tlsEncryption | boolean Enable TLS Encryption. |
{- "algorithm": "ROUND_ROBIN",
- "healthMonitor": {
- "domainName": "www.example.com",
- "healthCheckMethod": "GET",
- "healthCheckPath": "/",
- "healthCheckProtocol": "TCP",
- "healthyThreshold": 3,
- "httpVersion": 1,
- "interval": 30,
- "successCode": 200,
- "timeout": 5,
- "unhealthyThreshold": 3
}, - "members": [
- {
- "backup": false,
- "ipAddress": "192.168.0.1",
- "monitorPort": 1000,
- "name": "string",
- "port": 80,
- "weight": 1
}
], - "poolName": "pool_01",
- "poolProtocol": "HTTP",
- "stickiness": true,
- "tlsEncryption": true
}
loadBalancerId required | string The Load Balancer id |
poolId required | string The listener id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/loadBalancers/{loadBalancerId}/pools/{poolId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
loadBalancerId required | string The load balancer id |
poolId required | string The pool id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
updatePoolRequestV2
algorithm required | string Enum: "ROUND_ROBIN" "LEAST_CONNECTIONS" "SOURCE_IP" Algorithm of the pool. The algorithm can be "ROUND_ROBIN" or "LEAST_CONNECTIONS" or "SOURCE_IP" |
object (UpdateHealthMonitorRequest) | |
stickiness | boolean Enable sticky sessions. |
tlsEncryption | boolean Enable TLS Encryption. |
{- "algorithm": "ROUND_ROBIN",
- "healthMonitor": {
- "domainName": "www.example.com",
- "healthCheckMethod": "GET",
- "healthCheckPath": "/",
- "healthyThreshold": 3,
- "httpVersion": 1.1,
- "interval": 30,
- "successCode": 200,
- "timeout": 5,
- "unhealthyThreshold": 3
}, - "stickiness": true,
- "tlsEncryption": true
}
loadBalancerId required | string The load balancer id |
poolId required | string The pool id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/loadBalancers/{loadBalancerId}/pools/{poolId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
loadBalancerId required | string The Load Balancer id |
poolId required | string pool id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/loadBalancers/{loadBalancerId}/pools/{poolId}/healthMonitor', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
loadBalancerId required | string The Load Balancer id |
poolId required | string pool id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/loadBalancers/{loadBalancerId}/pools/{poolId}/members', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
loadBalancerId required | string The load balancer id |
poolId required | string The pool id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
changeMembersRequestV2
Array of objects (MemberRequest) List of members of the pool. |
{- "members": [
- {
- "backup": false,
- "ipAddress": "192.168.0.1",
- "monitorPort": 1000,
- "name": "string",
- "port": 80,
- "weight": 1
}
]
}
projectId required | string project id |
dhcpOptionIds | Array of strings |
encryptionTypes | Array of strings |
ids | Array of strings |
isCache | boolean |
name required | string |
names | Array of strings |
newTag.key | string |
newTag.value | string |
page required | string |
privateIps | Array of strings |
projectId | string |
publicIps | Array of strings |
resourceIds | Array of strings |
serverIds | Array of strings |
size required | string |
status | Array of strings |
subnetIds | Array of strings |
tagIds | Array of strings |
tags[0].key | string |
tags[0].value | string |
volumeTypes | Array of strings |
vpcIds | Array of strings |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/loadBalancers', qs: { dhcpOptionIds: 'SOME_ARRAY_VALUE', encryptionTypes: 'SOME_ARRAY_VALUE', ids: 'SOME_ARRAY_VALUE', isCache: 'SOME_BOOLEAN_VALUE', name: 'SOME_STRING_VALUE', names: 'SOME_ARRAY_VALUE', 'newTag.key': 'SOME_STRING_VALUE', 'newTag.value': 'SOME_STRING_VALUE', page: 'SOME_STRING_VALUE', privateIps: 'SOME_ARRAY_VALUE', projectId: 'SOME_STRING_VALUE', publicIps: 'SOME_ARRAY_VALUE', resourceIds: 'SOME_ARRAY_VALUE', serverIds: 'SOME_ARRAY_VALUE', size: 'SOME_STRING_VALUE', status: 'SOME_ARRAY_VALUE', subnetIds: 'SOME_ARRAY_VALUE', tagIds: 'SOME_ARRAY_VALUE', 'tags[0].key': 'SOME_STRING_VALUE', 'tags[0].value': 'SOME_STRING_VALUE', volumeTypes: 'SOME_ARRAY_VALUE', vpcIds: 'SOME_ARRAY_VALUE' }, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createLBRequestV2
autoScalable | boolean Use mode autoscale or not, default is false. |
object (LbListener) | |
name required | string Load balancer's name. Only letters (a-z, A-Z, 0-9, '_','-', '.') are allowed and your input data must be between 5 and 50 characters. |
packageId required | string Package ID of the load balancer. |
object (LbPool) | |
scheme required | string Enum: "Internet" "Internal" Schema of the load balancer, it may be Internet or Internal. |
subnetId required | string Subnet ID for the load balancer. |
Array of objects (TagRequest) Tags of resource | |
type required | string Enum: "Layer 4" "Layer 7" Type of the load balancer. It may be Layer 4 or Layer 7 |
{- "autoScalable": true,
- "listener": {
- "allowedCidrs": "0.0.0.0/0",
- "certificateAuthorities": [
- "secret-4ea86b49-9427-4b14-b080-8ac88a1f5efe"
], - "clientCertificate": "secret-4ea86b49-9427-4b14-b080-8ac88a1f5efe",
- "defaultCertificateAuthority": "secret-4ea86b49-9427-4b14-b080-8ac88a1f5efe",
- "headers": [
- "X-Forwarded-For"
], - "listenerName": "listener_01",
- "listenerProtocol": "HTTP",
- "listenerProtocolPort": 80,
- "timeoutClient": 50,
- "timeoutConnection": 5,
- "timeoutMember": 50
}, - "name": "loadbalancer_01",
- "packageId": "f8e62cf2-d84c-11e9-8a34-2a2ae2dbcce4",
- "pool": {
- "algorithm": "ROUND_ROBIN",
- "healthMonitor": {
- "domainName": "www.example.com",
- "healthCheckMethod": "GET",
- "healthCheckPath": "/",
- "healthCheckProtocol": "TCP",
- "healthyThreshold": 3,
- "httpVersion": 1,
- "interval": 30,
- "successCode": 200,
- "timeout": 5,
- "unhealthyThreshold": 3
}, - "members": [
- {
- "backup": false,
- "ipAddress": "192.168.0.1",
- "monitorPort": 1000,
- "name": "string",
- "port": 80,
- "weight": 1
}
], - "poolName": "This_is_a_pool",
- "poolProtocol": "HTTP",
- "stickiness": true,
- "tlsEncryption": true
}, - "scheme": "Internet",
- "subnetId": "sub-375e0685-f828-40bc-b8e9-53271fd7860d",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
], - "type": "Layer 7"
}
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/loadBalancers/all_packages', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/loadBalancers/headers', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/loadBalancers/packages', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string the project id |
subnetId required | string subnetId |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/loadBalancers/subnet/{subnetId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
loadBalancerId required | string The load balancer id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/loadBalancers/{loadBalancerId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
loadBalancerId required | string The load balancer id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/loadBalancers/{loadBalancerId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
loadBalancerId required | string The load balancer id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
request
Array of objects (Certificates) List of certificate changing | |
name required | string Load balancer's name. Only letters (a-z, A-Z, 0-9, '_','-', '.') are allowed and your input data must be between 5 and 50 characters. |
packageId required | string Package ID of the load balancer. |
{- "certificates": [
- {
- "defaultCertificateId": "secret-4ea86b49-9427-4b14-b080-8ac88a1f5efe",
- "listenerId": "listener-4ea86b49-9427-4b14-b080-8ac88a1f5efe",
- "listenerName": "string",
- "sniCertificateIds": [
- "secret-4ea86b49-9427-4b14-b080-8ac88a1f5efe"
]
}
], - "name": "loadbalancer_01",
- "packageId": "f8e62cf2-d84c-11e9-8a34-2a2ae2dbcce4"
}
loadBalancerId required | string The load balancer id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/loadBalancers/{loadBalancerId}/cloneMetadata', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
loadBalancerId required | string The Load Balancer id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'PUT', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/loadBalancers/{loadBalancerId}/migrate', headers: { accept: 'application/json', 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
loadBalancerId required | string The Load Balancer id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
request
isPoc | boolean |
packageId required | string Package ID |
{- "isPoc": true,
- "packageId": "package-1a007f28-bafa-450f-963b-3d177730c3b8"
}
loadBalancerId required | string The Load Balancer id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway/v2/{projectId}/loadBalancers/{loadBalancerId}/scale-history', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', '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://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/app-category', headers: {'content-type': '*/*', Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
appInstanceUuid required | string app instance uuid |
Authorization required | string Access Token |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/app-instance/{appInstanceUuid}', headers: {'content-type': '*/*', Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
appCategoryId required | string app category id |
appPackageId required | string app package id |
appVersionUuid required | string app version uuid |
Authorization required | string Access Token |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/app-package/{appCategoryId}/{appPackageId}/{appVersionUuid}', headers: {'content-type': '*/*', Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
appTemplateId required | integer <int32> app template id |
Authorization required | string Access Token |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/app-template/{appTemplateId}', headers: {'content-type': '*/*', Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
all required | boolean all |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'POST', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/mp-migrate', qs: {all: 'SOME_BOOLEAN_VALUE'}, headers: { accept: 'application/json', 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createNetworkAclRequest
name required | string Name of The Network Acl table |
Array of objects (TagRequest) Tags of resource | |
vpc required | string Uuid of The VPC |
{- "name": "Default",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
], - "vpc": "net-7e9d494c-7127-48c8-8cd9-a954d37dfd65"
}
projectId required | string The project id |
name required | string name |
page required | string Default: "1" page |
size required | string Default: "10" size |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/network-acl/list', qs: {name: 'SOME_STRING_VALUE', page: '1', size: '10'}, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
aclId required | string The network-acl uuid |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
updateAclRulesRequest
aclId | string |
Array of objects (UpdatedAclPolicyRule) | |
Array of objects (TagRequest) Tags of resource |
{- "aclId": "string",
- "detailAclRuleList": [
- {
- "action": "string",
- "interfaceAclPolicyUuid": "string",
- "port": "string",
- "protocol": "string",
- "seqNumber": 0,
- "source": "string",
- "system": true,
- "type": "string"
}
], - "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
networkAclUuid required | string The network-acl Uuid |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/network-acl/{networkAclUuid}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
uuid required | string The network-acl uuid |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/network-acl/{uuid}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
uuid required | string The network-acl uuid |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/network-acl/{uuid}/rules', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
uuid required | string The network-acl uuid |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
updateSubnetsRequest
aclId | string aclId |
subnetUuids | Array of strings The updated subnets uuid list of network-acl |
Array of objects (TagRequest) Tags of resource |
{- "aclId": "string",
- "subnetUuids": [
- "string"
], - "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
name | string name |
page | integer <int32> page |
size | integer <int32> size |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/network-interfaces-elastic', qs: { name: 'SOME_STRING_VALUE', page: 'SOME_INTEGER_VALUE', size: 'SOME_INTEGER_VALUE' }, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createNetworkInterfaceRequest
name required | string Name of network interface |
securityGroupIds | Array of strings |
Array of objects (TagRequest) Tags of resource |
{- "name": "network-interface",
- "securityGroupIds": [
- "string"
], - "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
networkInterfaceId required | string The network interface id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/network-interfaces-elastic/{networkInterfaceId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
networkInterfaceId required | string The network interface id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/network-interfaces-elastic/{networkInterfaceId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
networkInterfaceId required | string The network interface id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
renameNetworkInterfaceRequest
name required | string Name of network interface |
Array of objects (TagRequest) Tags of resource |
{- "name": "network-interface",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string project id |
dhcpOptionIds | Array of strings |
encryptionTypes | Array of strings |
ids | Array of strings |
isCache | boolean |
name | string |
names | Array of strings |
newTag.key | string |
newTag.value | string |
page | integer <int32> |
privateIps | Array of strings |
projectId | string |
publicIps | Array of strings |
resourceIds | Array of strings |
serverIds | Array of strings |
size | integer <int32> |
status | Array of strings |
subnetIds | Array of strings |
tagIds | Array of strings |
tags[0].key | string |
tags[0].value | string |
volumeTypes | Array of strings |
vpcIds | Array of strings |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/networks', qs: { dhcpOptionIds: 'SOME_ARRAY_VALUE', encryptionTypes: 'SOME_ARRAY_VALUE', ids: 'SOME_ARRAY_VALUE', isCache: 'SOME_BOOLEAN_VALUE', name: 'SOME_STRING_VALUE', names: 'SOME_ARRAY_VALUE', 'newTag.key': 'SOME_STRING_VALUE', 'newTag.value': 'SOME_STRING_VALUE', page: 'SOME_INTEGER_VALUE', privateIps: 'SOME_ARRAY_VALUE', projectId: 'SOME_STRING_VALUE', publicIps: 'SOME_ARRAY_VALUE', resourceIds: 'SOME_ARRAY_VALUE', serverIds: 'SOME_ARRAY_VALUE', size: 'SOME_INTEGER_VALUE', status: 'SOME_ARRAY_VALUE', subnetIds: 'SOME_ARRAY_VALUE', tagIds: 'SOME_ARRAY_VALUE', 'tags[0].key': 'SOME_STRING_VALUE', 'tags[0].value': 'SOME_STRING_VALUE', volumeTypes: 'SOME_ARRAY_VALUE', vpcIds: 'SOME_ARRAY_VALUE' }, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string projectId |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createNetworkRequest
cidr required | string Subnet of Network (/16). |
name required | string Name of the Network |
Array of objects (TagRequest) Tags of resource |
{- "cidr": "10.2.0.0/16",
- "name": "Network_01",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string project id |
page | integer <int32> page |
size | integer <int32> size |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/networks/active', qs: {page: 'SOME_INTEGER_VALUE', size: 'SOME_INTEGER_VALUE'}, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
networkId required | string networkId |
projectId required | string projectId |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/networks/{networkId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
networkId required | string networkId |
projectId required | string projectId |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/networks/{networkId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
networkId required | string networkId |
projectId required | string projectId |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
updateNetworkRequest
name required | string Name of the Network |
Array of objects (TagRequest) Tags of resource |
{- "name": "Network_01",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
networkId required | string networkId |
projectId required | string projectId |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
updateNetworkRequest
dhcpOptionId required | string Dhcp Option Id |
Array of objects (TagRequest) Tags of resource |
{- "dhcpOptionId": "dop-xxxxx-xxxx-xxxx",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
name | string name |
page | integer <int32> page |
size | integer <int32> size |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/persistent-volumes', qs: { name: 'SOME_STRING_VALUE', page: 'SOME_INTEGER_VALUE', size: 'SOME_INTEGER_VALUE' }, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
pvId required | string The persistent volume id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
deletePersistentVolumeBackendRequest
forceDelete | boolean |
persistentVolumeId | string |
Array of objects (TagRequest) Tags of resource |
{- "forceDelete": true,
- "persistentVolumeId": "string",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/projects', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/projects/{project_id}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', '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://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/protocols', headers: {'content-type': '*/*', Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/quotas/quotaUsed', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string projectId |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/region', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string projectId |
regionId required | string regionId |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/region/{regionId}/users/validation', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string project id |
name required | string name |
page required | string Default: "1" page |
size required | string Default: "10" size |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/route-table', qs: {name: 'SOME_STRING_VALUE', page: '1', size: '10'}, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createReq
name required | string Name of The route table |
networkId required | string UUID of The VPC |
Array of objects (RouteRequest) List of routes for the Route Table | |
Array of objects (TagRequest) Tags of resource |
{- "name": "Default",
- "networkId": "net-7e9d494c-7127-48c8-8cd9-a954d37dfd65",
- "routes": [
- {
- "destinationCidrBlock": "192.168.1.0/24",
- "target": "192.168.1.1"
}
], - "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string projectId |
routeTableId required | string routeTableId |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/route-table/route/{routeTableId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string projectId |
routeId required | string routeId |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/route-table/{routeId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string project id |
uuid required | string The route-table uuid |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/route-table/{uuid}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
uuid required | string The route-table uuid |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
changeRoutesReq
Array of objects (RouteRequest) The updated routes list of route-table | |
Array of objects (TagRequest) Tags of resource |
{- "routes": [
- {
- "destinationCidrBlock": "192.168.1.0/24",
- "target": "192.168.1.1"
}
], - "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string project id |
dhcpOptionIds | Array of strings |
encryptionTypes | Array of strings |
ids | Array of strings |
isCache | boolean |
name required | string |
names | Array of strings |
newTag.key | string |
newTag.value | string |
page required | string |
privateIps | Array of strings |
projectId | string |
publicIps | Array of strings |
resourceIds | Array of strings |
serverIds | Array of strings |
size required | string |
status | Array of strings |
subnetIds | Array of strings |
tagIds | Array of strings |
tags[0].key | string |
tags[0].value | string |
volumeTypes | Array of strings |
vpcIds | Array of strings |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/secgroups', qs: { dhcpOptionIds: 'SOME_ARRAY_VALUE', encryptionTypes: 'SOME_ARRAY_VALUE', ids: 'SOME_ARRAY_VALUE', isCache: 'SOME_BOOLEAN_VALUE', name: 'SOME_STRING_VALUE', names: 'SOME_ARRAY_VALUE', 'newTag.key': 'SOME_STRING_VALUE', 'newTag.value': 'SOME_STRING_VALUE', page: 'SOME_STRING_VALUE', privateIps: 'SOME_ARRAY_VALUE', projectId: 'SOME_STRING_VALUE', publicIps: 'SOME_ARRAY_VALUE', resourceIds: 'SOME_ARRAY_VALUE', serverIds: 'SOME_ARRAY_VALUE', size: 'SOME_STRING_VALUE', status: 'SOME_ARRAY_VALUE', subnetIds: 'SOME_ARRAY_VALUE', tagIds: 'SOME_ARRAY_VALUE', 'tags[0].key': 'SOME_STRING_VALUE', 'tags[0].value': 'SOME_STRING_VALUE', volumeTypes: 'SOME_ARRAY_VALUE', vpcIds: 'SOME_ARRAY_VALUE' }, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createReq
description | string description for secgroup. |
name required | string Name of the Secgroup |
Array of objects (TagRequest) Tags of resource |
{- "description": "string",
- "name": "Secgroup_01",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
secgroupId required | string The secgroup id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/secgroups/{secgroupId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
secgroupId required | string The secgroup id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
editReq
description | string description for secgroup. |
name required | string Name of the Secgroup |
Array of objects (TagRequest) Tags of resource |
{- "description": "string",
- "name": "Secgroup_01",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
secgroupId required | string The secgroup id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/secgroups/{secgroupId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
secgroupId required | string The secgroup id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/secgroups/{secgroupId}/secGroupRules', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
secgroupId required | string The secgroup id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/secgroups/{secgroupId}/servers', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
secgroupId required | string Security Group Id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
req
description | string Description for security group rule. |
direction required | string "ingress" or "egress" |
etherType required | string "IPv4" or "IPv6" |
portRangeMax required | integer <int32> Upper bound of range port. |
portRangeMin required | integer <int32> Lower bound of range port. |
protocol required | string "TCP", "UDP", "ICMP", ... |
remoteIpPrefix required | string Ip Prefix of source/target. |
Array of objects (TagRequest) Tags of resource |
{- "description": "string",
- "direction": "egress",
- "etherType": "IPv4",
- "portRangeMax": 65335,
- "portRangeMin": 0,
- "protocol": "TCP",
- "remoteIpPrefix": "169.60.20.0/24",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/secgroups/{secgroupId}/secgroupRules/samples', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
secgroupRuleId required | string secgroupRuleId |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/secgroups/{secgroupId}/secgroupRules/{secgroupRuleId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
secgroupRuleId required | string The secgroup rule id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
updateSecurityGroupRuleRequest
description | string Description for security group rule. |
Array of objects (TagRequest) Tags of resource |
{- "description": "string",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
secgroupRuleId required | string The secgroup rule id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/secgroups/{secgroupId}/secgroupRules/{secgroupRuleId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string project id |
name | string name |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/serverGroups', qs: {name: 'SOME_STRING_VALUE'}, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createServerGroupRequest
description | string Description of server group |
name required | string Name of the server group |
policyId required | string Policy id of server group |
Array of objects (TagRequest) Tags of resource |
{- "description": "This is my server group",
- "name": "Group-01",
- "policyId": "7916f5ac-cff2-11eb-b8bc-0242ac130003",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/serverGroups/policies', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
serverGroupId required | string The server group id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/serverGroups/{serverGroupId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
serverGroupId required | string The server group id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
updateServerGroupRequest
description | string description for Server Group. |
name required | string Name of the Server Group |
serverGroupId required | string Id of the server group |
Array of objects (TagRequest) Tags of resource |
{- "description": "string",
- "name": "Server Group_01",
- "serverGroupId": "Group-01",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
serverGroupId required | string The server group id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/serverGroups/{serverGroupId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
dhcpOptionIds | Array of strings |
encryptionTypes | Array of strings |
ids | Array of strings |
isCache | boolean |
name | string |
names | Array of strings |
newTag.key | string |
newTag.value | string |
page | integer <int32> |
privateIps | Array of strings |
projectId | string |
publicIps | Array of strings |
resourceIds | Array of strings |
serverIds | Array of strings |
size | integer <int32> |
status | Array of strings |
subnetIds | Array of strings |
tagIds | Array of strings |
tags[0].key | string |
tags[0].value | string |
volumeTypes | Array of strings |
vpcIds | Array of strings |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/servers', qs: { dhcpOptionIds: 'SOME_ARRAY_VALUE', encryptionTypes: 'SOME_ARRAY_VALUE', ids: 'SOME_ARRAY_VALUE', isCache: 'SOME_BOOLEAN_VALUE', name: 'SOME_STRING_VALUE', names: 'SOME_ARRAY_VALUE', 'newTag.key': 'SOME_STRING_VALUE', 'newTag.value': 'SOME_STRING_VALUE', page: 'SOME_INTEGER_VALUE', privateIps: 'SOME_ARRAY_VALUE', projectId: 'SOME_STRING_VALUE', publicIps: 'SOME_ARRAY_VALUE', resourceIds: 'SOME_ARRAY_VALUE', serverIds: 'SOME_ARRAY_VALUE', size: 'SOME_INTEGER_VALUE', status: 'SOME_ARRAY_VALUE', subnetIds: 'SOME_ARRAY_VALUE', tagIds: 'SOME_ARRAY_VALUE', 'tags[0].key': 'SOME_STRING_VALUE', 'tags[0].value': 'SOME_STRING_VALUE', volumeTypes: 'SOME_ARRAY_VALUE', vpcIds: 'SOME_ARRAY_VALUE' }, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createServerRequest
attachFloating | boolean Attach floating IP |
backupInstancePointId | string Backup instance point ID |
Array of objects (ConfigVolumeRestore) List Backup volume point Config | |
createdFrom | string Created from: NEW, BACKUP, SNAPSHOT |
dataDiskEncryptionType | string Type encryption of data volume |
dataDiskName | string Name of data volume |
dataDiskSize | integer <int32> |
dataDiskTypeId | string ID of data volume type |
enableBackup | boolean Enable backup: false, else: true |
encryptionVolume required | boolean Encryption volume |
expirePassword | boolean Skip change password: false, else: true |
externalNetworkInterfaceId | string ID of the external network interface |
flavorId required | string ID of the flavor |
hostGroupId | string Host group. You can choose if having multiple host group |
imageId required | string ID of the image |
name required | string Name of the server |
networkId required | string ID of the network |
Array of objects (NetworkRequest) List Network | |
osLicence | boolean Licence of OS |
product | string Product of server |
rootDiskEncryptionType | string Type encryption of boot volume |
rootDiskSize required | integer <int32> Size of boot volume |
rootDiskTypeId required | string ID of boot volume type |
securityGroup | Array of strings ID of the SecGroups |
serverGroupId | string Server group ID |
snapshotInstancePointId | string Snapshot instance point ID |
sshKeyId | string ID of SSH key |
subnetId required | string ID of the subnet |
Array of objects (TagRequest) Tags of resource | |
type | string Type of product |
userData | string User data |
userDataBase64Encoded | boolean User data has already been base64 encoded |
userName | string name of user |
userPassword | string password of user |
{- "attachFloating": false,
- "backupInstancePointId": "string",
- "configVolumeRestores": [
- {
- "backupVolumePointId": "string",
- "snapshotVolumePointId": "string",
- "volumeId": "string",
- "volumeTypeId": "string"
}
], - "createdFrom": "NEW",
- "dataDiskEncryptionType": "aes-xts-plain64_256",
- "dataDiskName": "volume data",
- "dataDiskSize": 0,
- "dataDiskTypeId": "vtype-6d30737c-08aa-41f8-8bb1-d486c94ccf69",
- "enableBackup": true,
- "encryptionVolume": false,
- "expirePassword": true,
- "externalNetworkInterfaceId": "net-in-d1314dfd-31ac-4b5f-ad9a-a5a489ecfa5d",
- "flavorId": "flav-c41b827e-730a-475f-b181-c0d1c7acc6d4",
- "hostGroupId": "EB2690D8-D303-42B4-A083-DF170CEF7CA0",
- "imageId": "img-5c6639ad-8b02-4402-8be4-5bc0c6a57d32",
- "name": "Server_01",
- "networkId": "net-d1314dfd-31ac-4b5f-ad9a-a5a489ecfa5d",
- "networks": [
- {
- "attachFloating": true,
- "ip": "string",
- "networkId": "string",
- "projectId": "string",
- "subnetId": "string"
}
], - "osLicence": false,
- "product": "vServer",
- "rootDiskEncryptionType": "aes-xts-plain64_256",
- "rootDiskSize": 20,
- "rootDiskTypeId": "vtype-6d30737c-08aa-41f8-8bb1-d486c94ccf69",
- "securityGroup": [
- "secg-5c1e8e96-d106-4a91-8047-a76d1ae5ba9b"
], - "serverGroupId": "server-group-d4d6a036-1955-4c5f-a40d-e789d26cf49d",
- "snapshotInstancePointId": "string",
- "sshKeyId": "SSH_Key",
- "subnetId": "sub-b7716e75-10fa-4d18-9987-d68273f49386",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
], - "type": "vServer",
- "userData": "string",
- "userDataBase64Encoded": true,
- "userName": "stackops",
- "userPassword": "password"
}
interfaceNetworkInterfaceId required | string The interface network interface id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/servers/external-network-interfaces/{interfaceNetworkInterfaceId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
subnetId required | string The subnet id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/servers/subnets/{subnetId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/servers/{serverId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
deleteServerRequest
deleteAllVolume | boolean Delete all volume are attached |
Array of objects (TagRequest) Tags of resource |
{- "deleteAllVolume": true,
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/servers/{serverId}/actions', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/servers/{serverId}/console-log', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/servers/{serverId}/console-url', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
attachExternalNetworkInterfaceRequest
externalNetworkInterfaceId | string External network interface id |
Array of objects (TagRequest) Tags of resource |
{- "externalNetworkInterfaceId": "net-a332cc50-8e24-4a45-ad9f-4136c7358503",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
detachExternalNetworkInterfaceRequest
networkInterfaceId | string Network interface id |
Array of objects (TagRequest) Tags of resource |
{- "networkInterfaceId": "net-a332cc50-8e24-4a45-ad9f-4136c7358503",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
attachNetworkInterfaceRequest
Array of objects (AttachSubnetRequest) List subnet request | |
Array of objects (TagRequest) Tags of resource |
{- "subnetRequests": [
- {
- "ip": "10.1.1.5",
- "subnetId": "sub-a332cc50-8e24-4a45-ad9f-4136c7358503",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
], - "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
detachNetworkInterfaceRequest
networkInterfaceIds | Array of strings List Id of network interface |
Array of objects (TagRequest) Tags of resource |
{- "networkInterfaceIds": [
- "net-a332cc50-8e24-4a45-ad9f-4136c7358503"
], - "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
attachNetworkInterfaceWithWanIpRequest
ip | string IP of subnet |
serverId | string Id of server |
subnetId | string Id of subnet |
Array of objects (TagRequest) Tags of resource | |
wanIpId | string Id of wan IP |
{- "ip": "10.1.1.5",
- "serverId": "ins-a332cc50-8e24-4a45-ad9f-4136c7358503",
- "subnetId": "sub-a332cc50-8e24-4a45-ad9f-4136c7358503",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
], - "wanIpId": "wan-a332cc50-8e24-4a45-ad9f-4136c7358503"
}
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
detachNetworkInterfaceWithWanIpRequest
networkInterfaceId | string List Id of network interface |
serverId | string Id of server |
Array of objects (TagRequest) Tags of resource |
{- "networkInterfaceId": "net-a332cc50-8e24-4a45-ad9f-4136c7358503",
- "serverId": "ins-a332cc50-8e24-4a45-ad9f-4136c7358503",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
migrateServerRequest
action | string Action migrate. The action can be "SNAPSHOT" or "MIGRATE" or "CONFIRM-MIGRATE" |
confirmMigrate | boolean Confirm migrate or rollback |
Array of objects (TagRequest) Tags of resource |
{- "action": "SNAPSHOT",
- "confirmMigrate": true,
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/servers/{serverId}/network-interfaces', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'PUT', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/servers/{serverId}/reboot', headers: { accept: 'application/json', 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
renameServerRequest
newName required | string New name of server |
Array of objects (TagRequest) Tags of resource |
{- "newName": "server01",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
resizeServerRequest
flavorId required | string Id of flavor |
hostGroupId | string Host group. You can choose if having multiple host group |
serverId required | string Id of server |
Array of objects (TagRequest) Tags of resource |
{- "flavorId": "flav-c41b827e-730a-475f-b181-c0d1c7acc6d4",
- "hostGroupId": "EB2690D8-D303-42B4-A083-DF170CEF7CA0",
- "serverId": "ins-a332cc50-8e24-4a45-ad9f-4136c7358503",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/servers/{serverId}/sec-groups', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createSnapshotServerRequest
description required | string Description of the snapshot |
enableSnapshot | boolean |
name | string Name of the snapshot |
snapshotPolicyId | string |
Array of objects (TagRequest) Tags of resource | |
volumeIds | Array of strings |
{- "description": "Description",
- "enableSnapshot": true,
- "name": "snapshot_server",
- "snapshotPolicyId": "string",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
], - "volumeIds": [
- "string"
]
}
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/servers/{serverId}/server-snapshots', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'PUT', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/servers/{serverId}/server-snapshots/disable-auto', headers: { accept: 'application/json', 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'PUT', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/servers/{serverId}/server-snapshots/enable-auto', headers: { accept: 'application/json', 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
updatePolicySnapshotServerRequest
snapshotPolicyId | string |
Array of objects (TagRequest) Tags of resource |
{- "snapshotPolicyId": "string",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
serverId required | string The server id |
page | integer <int32> page |
size | integer <int32> size |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/servers/{serverId}/snapshots', qs: {page: 'SOME_INTEGER_VALUE', size: 'SOME_INTEGER_VALUE'}, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createSnapshotServerNowRequest
description required | string Description of the snapshot |
isPermanently | boolean Permanently or not |
name required | string Name of the snapshot |
retainedDays | integer <int32> Retained days of snapshot |
Array of objects (TagRequest) Tags of resource |
{- "description": "Description",
- "isPermanently": false,
- "name": "snapshot_server",
- "retainedDays": 7,
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/servers/{serverId}/snapshots/detail', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
serverId required | string The server id |
snapshotServerPointId required | string The snapshot server point id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
rollbackServerRequest
restartServerWhenRevertCompleted | boolean |
serverId | string |
snapshotServerPointId | string |
Array of objects (TagRequest) Tags of resource |
{- "restartServerWhenRevertCompleted": true,
- "serverId": "string",
- "snapshotServerPointId": "string",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
serverId required | string The server id |
snapshotServerPointId required | string The snapshot server point id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/servers/{serverId}/snapshots/{snapshotServerPointId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'PUT', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/servers/{serverId}/start', headers: { accept: 'application/json', 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'PUT', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/servers/{serverId}/stop', headers: { accept: 'application/json', 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
serverId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
changeSecGroupRequest
securityGroup | Array of strings Id of the SecGroups |
serverId required | string Id of server |
Array of objects (TagRequest) Tags of resource |
{- "securityGroup": [
- "secg-5c1e8e96-d106-4a91-8047-a76d1ae5ba9b"
], - "serverId": "ins-a332cc50-8e24-4a45-ad9f-4136c7358503",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
serverId required | string The server id |
wanIpId required | string The wan ip id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
attachDetachWanIPRequest
networkInterfaceId | string Id of network interface |
Array of objects (TagRequest) Tags of resource |
{- "networkInterfaceId": "net-a332cc50-8e24-4a45-ad9f-4136c7358503",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
serverId required | string The server id |
wanIpId required | string The wan ip id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
attachDetachWanIPRequest
networkInterfaceId | string Id of network interface |
Array of objects (TagRequest) Tags of resource |
{- "networkInterfaceId": "net-a332cc50-8e24-4a45-ad9f-4136c7358503",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
name | string name |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/sshKeys', qs: {name: 'SOME_STRING_VALUE'}, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
req
name required | string Name of the SSH key |
Array of objects (TagRequest) Tags of resource |
{- "name": "SSH_Key",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
importSSHKeyRequest
name required | string Name of the SSH key |
pubKey | string |
Array of objects (TagRequest) Tags of resource |
{- "name": "SSH_Key",
- "pubKey": "string",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
sshKeyId required | string The ssh key id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/sshKeys/{sshKeyId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
sshKeyId required | string The ssh-key id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/sshKeys/{sshKeyId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
networkId required | string networkId |
projectId required | string projectId |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/networks/{networkId}/subnets', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
networkId required | string networkId |
projectId required | string projectId |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
req
cidr required | string CIDR of Subnet, must be contained in its network. |
name required | string Name of the Subnet |
Array of objects (CreateSecondarySubnetRequest) | |
Array of objects (TagRequest) Tags of resource |
{- "cidr": "10.2.12.0/24",
- "name": "Subnet_01",
- "secondarySubnetRequests": [
- {
- "cidr": "string",
- "name": "string",
- "uuid": "string"
}
], - "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
networkId required | string networkId |
projectId required | string projectId |
subnetId required | string subnetId |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/networks/{networkId}/subnets/{subnetId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
networkId required | string networkId |
projectId required | string projectId |
subnetId required | string subnetId |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/networks/{networkId}/subnets/{subnetId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
networkId required | string networkId |
projectId required | string projectId |
subnetId required | string subnetId |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
updateSubnetRequest
name required | string Name of the subnet |
Array of objects (CreateSecondarySubnetRequest) | |
Array of objects (TagRequest) Tags of resource |
{- "name": "Subnet_01",
- "secondarySubnetRequests": [
- {
- "cidr": "string",
- "name": "string",
- "uuid": "string"
}
], - "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
networkId required | string networkId |
projectId required | string projectId |
subnetId required | string subnetId |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createSecondarySubnetRequest
cidr | string |
name | string |
uuid | string |
{- "cidr": "string",
- "name": "string",
- "uuid": "string"
}
networkId required | string networkId |
projectId required | string projectId |
secondarySubnetId required | string secondarySubnetId |
subnetId required | string subnetId |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/networks/{networkId}/subnets/{subnetId}/secondary-subnets/{secondarySubnetId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
name | string name |
page | integer <int32> page |
size | integer <int32> size |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/tag', qs: { name: 'SOME_STRING_VALUE', page: 'SOME_INTEGER_VALUE', size: 'SOME_INTEGER_VALUE' }, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/tag/quota', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
resourceId required | string The resource id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/tag/resource/{resourceId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
resourceId required | string The resource id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
updateTagRequest
resourceId required | string Resource Id |
resourceType required | string Resource Type |
Array of objects (TagRequest) List of Tag want to update | |
Array of objects (TagRequest) Tags of resource |
{- "resourceId": "ins-2ca9132c-bf4c-467e-b57c-92a971225947",
- "resourceType": "Server",
- "tagRequestList": [
- {
- "key": "test-key",
- "value": "test-value",
- "isSystemTag": "false"
}
], - "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string the project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/tag/tag-key', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
tagKey required | string The tag key |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/tag/tag-key/{tagKey}/tag-value', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
tagId required | string The tag id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/tag/{tagId}/resource-types/{resource-types}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
name | string name |
page | integer <int32> page |
size | integer <int32> size |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/user-images', qs: { name: 'SOME_STRING_VALUE', page: 'SOME_INTEGER_VALUE', size: 'SOME_INTEGER_VALUE' }, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createUserImageRequest
name required | string Name of image |
Array of objects (TagRequest) Tags of resource |
{- "name": "image1",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
imageId required | string The image id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/user-images/{imageId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
imageId required | string The image id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/user-images/{imageId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string project id |
name required | string name |
page required | string Default: "1" page |
size required | string Default: "10" size |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/virtualIpAddress', qs: {name: 'SOME_STRING_VALUE', page: '1', size: '10'}, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createReq
description | string description for Virtual IP Address. |
ipAddress | string Ip address of the Virtual IP Address |
name required | string Name of the Virtual IP Address |
subnetId required | string Id of the subnet |
{- "description": "string",
- "ipAddress": "192.168.1.2",
- "name": "VIP Address 01",
- "subnetId": "sub-cfcd4f3f-4077-4923-9bf9-d19cb17f4f0b"
}
projectId required | string project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/virtualIpAddress/internalNetworkInterfaces', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
vipId required | string The virtual ip address id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/virtualIpAddress/{vipId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
virtualIpAddressId required | string The virtual Ip AddressId id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
updateReq
description | string description for Virtual IP Address. |
name | string |
{- "description": "string",
- "name": "string"
}
projectId required | string The project id |
virtualIpAddressId required | string The ssh-key id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/virtualIpAddress/{virtualIpAddressId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
virtualIpAddressId required | string The Virtual Ip Address id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/virtualIpAddress/{virtualIpAddressId}/addressPairs', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
virtualIpAddressId required | string The Virtual Ip Address id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createReq
cidr | string |
internalNetworkInterfaceId required | string Id of the network interface |
{- "cidr": "string",
- "internalNetworkInterfaceId": "net-in-617fbb01-df70-4bd1-b7c7-8c848259cd5f"
}
addressPairId required | string The Address Pair id |
projectId required | string The project id |
virtualIpAddressId required | string The Virtual Ip Address id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/virtualIpAddress/{virtualIpAddressId}/addressPairs/{addressPairId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
addressPairId required | string The Address Pair id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/virtualIpAddress/{virtualIpAddressId}/addressPairs/{addressPairId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
addressPairId required | string The Address Pair id |
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/virtual-subnets/addressPairs/{addressPairId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
secondarySubnetId required | string The Secondary Subnet ID |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/virtual-subnets/{secondarySubnetId}/addressPairs', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
secondarySubnetId required | string The Secondary Subnet ID |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createReq
cidr | string |
internalNetworkInterfaceId required | string Id of the network interface |
{- "cidr": "string",
- "internalNetworkInterfaceId": "net-in-617fbb01-df70-4bd1-b7c7-8c848259cd5f"
}
projectId required | string The project id |
dhcpOptionIds | Array of strings |
encryptionTypes | Array of strings |
ids | Array of strings |
isCache | boolean |
name | string |
names | Array of strings |
newTag.key | string |
newTag.value | string |
page | integer <int32> |
privateIps | Array of strings |
projectId | string |
publicIps | Array of strings |
resourceIds | Array of strings |
serverIds | Array of strings |
size | integer <int32> |
status | Array of strings |
subnetIds | Array of strings |
tagIds | Array of strings |
tags[0].key | string |
tags[0].value | string |
volumeTypes | Array of strings |
vpcIds | Array of strings |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/volumes', qs: { dhcpOptionIds: 'SOME_ARRAY_VALUE', encryptionTypes: 'SOME_ARRAY_VALUE', ids: 'SOME_ARRAY_VALUE', isCache: 'SOME_BOOLEAN_VALUE', name: 'SOME_STRING_VALUE', names: 'SOME_ARRAY_VALUE', 'newTag.key': 'SOME_STRING_VALUE', 'newTag.value': 'SOME_STRING_VALUE', page: 'SOME_INTEGER_VALUE', privateIps: 'SOME_ARRAY_VALUE', projectId: 'SOME_STRING_VALUE', publicIps: 'SOME_ARRAY_VALUE', resourceIds: 'SOME_ARRAY_VALUE', serverIds: 'SOME_ARRAY_VALUE', size: 'SOME_INTEGER_VALUE', status: 'SOME_ARRAY_VALUE', subnetIds: 'SOME_ARRAY_VALUE', tagIds: 'SOME_ARRAY_VALUE', 'tags[0].key': 'SOME_STRING_VALUE', 'tags[0].value': 'SOME_STRING_VALUE', volumeTypes: 'SOME_ARRAY_VALUE', vpcIds: 'SOME_ARRAY_VALUE' }, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createVolumeRequest
object (ConfigVolumeRestore) | |
createdFrom | string Created from: NEW, BACKUP, SNAPSHOT |
encryptionType | string Type encryption of volume |
imageId | string Id of image |
multiAttach | boolean Multi attach volume or not |
name required | string Name of the volume |
persistentVolume | boolean Persistent volume or not |
size required | integer <int32> Size of volume |
Array of objects (TagRequest) Tags of resource | |
volumeTypeId required | string Id of volume type |
{- "configVolumeRestore": {
- "backupVolumePointId": "string",
- "snapshotVolumePointId": "string",
- "volumeId": "string",
- "volumeTypeId": "string"
}, - "createdFrom": "NEW",
- "encryptionType": "aes-xts-plain64_256",
- "imageId": "img-6d30737c-08aa-41f8-8bb1-d486c94ccf69",
- "multiAttach": true,
- "name": "Volume",
- "persistentVolume": true,
- "size": 20,
- "tags": [
- {
- "key": "string",
- "value": "string"
}
], - "volumeTypeId": "vtype-6d30737c-08aa-41f8-8bb1-d486c94ccf69"
}
projectId required | string The project id |
serverId required | string The server id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/volumes/servers/{serverId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
serverId required | string The volume id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/volumes/servers/{serverId}/boot', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
volumeId required | string The volume id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/volumes/{volumeId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
volumeId required | string The volume id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/volumes/{volumeId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
volumeId required | string The volume id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
changeTypeVolumeRequest
action | string Action change type. The action can be "SNAPSHOT" or "MIGRATE" or "CONFIRM-MIGRATE" |
confirmMigrate | boolean Confirm migrate or rollback |
Array of objects (TagRequest) Tags of resource | |
volumeTypeId | string Id of volume type |
{- "action": "SNAPSHOT",
- "confirmMigrate": true,
- "tags": [
- {
- "key": "string",
- "value": "string"
}
], - "volumeTypeId": "vol-type-a332cc50-8e24-4a45-ad9f-4136c7358503"
}
projectId required | string The project id |
volumeId required | string The volume id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/volumes/{volumeId}/history', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
volumeId required | string volumeId |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/volumes/{volumeId}/mapping', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
volumeId required | string The volume id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
renameVolumeRequest
newName required | string New name of volume |
Array of objects (TagRequest) Tags of resource |
{- "newName": "volume",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
volumeId required | string The volume id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
resizeVolumeRequest
newSize required | integer <int32> New size of volume |
newVolumeTypeId required | string Id of new volume type |
Array of objects (TagRequest) Tags of resource |
{- "newSize": 20,
- "newVolumeTypeId": "vtype-6d30737c-08aa-41f8-8bb1-d486c94ccf69",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
serverId required | string The server id |
volumeId required | string The volume id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
attachVolumeRequest
persistentVolume | boolean Persistent volume or not |
Array of objects (TagRequest) Tags of resource |
{- "persistentVolume": true,
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
serverId required | string The server id |
volumeId required | string The volume id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
detachVolumeRequest
persistentVolume | boolean Persistent volume or not |
Array of objects (TagRequest) Tags of resource |
{- "persistentVolume": true,
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
volumeId required | string The volume id |
page | integer <int32> page |
size | integer <int32> size |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/volumes/{volumeId}/snapshots', qs: {page: 'SOME_INTEGER_VALUE', size: 'SOME_INTEGER_VALUE'}, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
volumeId required | string The volume id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createSnapshotVolumeNowRequest
description required | string Description of the snapshot |
isPermanently | boolean Permanently or not |
name required | string Name of the snapshot |
retainedDays | integer <int32> Retained days of snapshot |
Array of objects (TagRequest) Tags of resource |
{- "description": "Description",
- "isPermanently": false,
- "name": "snapshot_volume",
- "retainedDays": 7,
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
snapshotVolumePointId required | string The snapshot volume point id |
volumeId required | string The volume id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
rollbackVolumeRequest
restartServerWhenRevertCompleted | boolean |
snapshotVolumePointId | string |
Array of objects (TagRequest) Tags of resource | |
volumeId | string |
{- "restartServerWhenRevertCompleted": true,
- "snapshotVolumePointId": "string",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
], - "volumeId": "string"
}
projectId required | string The project id |
snapshotVolumePointId required | string The snapshot volume point id |
volumeId required | string The volume id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/volumes/{volumeId}/snapshots/{snapshotVolumePointId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
volumeId required | string The volume id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/volumes/{volumeId}/volume-snapshots', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
volumeId required | string The volume id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/volumes/{volumeId}/volume-snapshots/detail', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
volumeId required | string The volume id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
updatePolicySnapshotVolumeRequest
snapshotPolicyId | string |
Array of objects (TagRequest) Tags of resource |
{- "snapshotPolicyId": "string",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
]
}
projectId required | string The project id |
serverId required | string The server id |
volumeId required | string The volume id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'PUT', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/volumes/{volumeId}/volume-snapshots/servers/{serverId}/disable-auto', headers: { accept: 'application/json', 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
serverId required | string The server id |
volumeId required | string The volume id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'PUT', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/volumes/{volumeId}/volume-snapshots/servers/{serverId}/enable-auto', headers: { accept: 'application/json', 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string project_id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/{project_id}/volume_default_id', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string project_id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/{project_id}/volume_types', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string project_id |
volume_type_id required | string volume_type_id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/{project_id}/volume_types/{volume_type_id}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string project_id |
volume_type_zone_id required | string volume_type_zone_id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/{project_id}/{volume_type_zone_id}/volume_types', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string project_id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/{project_id}/volume_type_zones', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
project_id required | string project_id |
volume_type_zone_id required | string volume_type_zone_id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v1/{project_id}/volume_type_zones/{volume_type_zone_id}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string project id |
name | string name |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/wanIps', qs: {name: 'SOME_STRING_VALUE'}, headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
projectId required | string The project id |
wanIpId required | string The WAN IP id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway/v2/{projectId}/wanIps/{wanIpId}', headers: { 'content-type': '*/*', Authorization: 'SOME_STRING_VALUE', 'portal-user-id': 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });