Download OpenAPI specification:Download
Authorization document available at https://docs.api.vngcloud.vn/#api-documentation
id | string Default: "" |
name | string Default: "" |
page | integer <int32> >= 0 Default: 0 |
pageSize | integer <int32> >= 1 Default: 10 |
status | string Default: "" |
version | string Default: "" |
Authorization required | string Example: Bearer <your-token> |
const request = require('request'); const options = { method: 'GET', url: 'https://vks.api.vngcloud.vn/v1/clusters', qs: { id: 'SOME_STRING_VALUE', name: 'SOME_STRING_VALUE', page: 'SOME_INTEGER_VALUE', pageSize: 'SOME_INTEGER_VALUE', status: 'SOME_STRING_VALUE', version: 'SOME_STRING_VALUE' }, headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "items": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "status": "string",
- "releaseChannel": "RAPID",
- "version": "string",
- "numNodes": 0,
- "enablePrivateCluster": true,
- "createdAt": "2022-03-10T00:00:00.000Z",
- "updatedAt": "2022-03-10T00:00:00.000Z"
}
], - "total": 0,
- "page": 0,
- "pageSize": 0
}
autoRenewal | boolean Default: true |
poc | boolean Default: false |
Authorization required | string Example: Bearer <your-token> |
name required | string^[a-z0-9\-]{5,20}$ |
description | string^[a-zA-Z0-9-_. @]{0,255}$ |
releaseChannel required | string (ClusterVersionStage) Enum: "RAPID" "STABLE" |
version required | string [ 1 .. 50 ] characters |
enablePrivateCluster required | boolean |
networkType required | string^CALICO|CILIUM_OVERLAY|CILIUM_NATIVE_ROUTING$... |
vpcId required | string [ 1 .. 50 ] characters |
subnetId required | string [ 1 .. 50 ] characters |
cidr | string |
enabledLoadBalancerPlugin | boolean |
enabledBlockStoreCsiPlugin | boolean |
enabledServiceEndpoint | boolean |
secondarySubnets | Array of strings <= 10 items |
nodeNetmaskSize | integer <int32> [ 24 .. 26 ] |
object (ClusterAutoUpgradeConfigDto) | |
required | Array of objects (CreateNodeGroupDto) |
{- "name": "string",
- "description": "string",
- "releaseChannel": "RAPID",
- "version": "string",
- "enablePrivateCluster": true,
- "networkType": "string",
- "vpcId": "string",
- "subnetId": "string",
- "cidr": "string",
- "enabledLoadBalancerPlugin": true,
- "enabledBlockStoreCsiPlugin": true,
- "enabledServiceEndpoint": true,
- "secondarySubnets": [
- "string"
], - "nodeNetmaskSize": 24,
- "autoUpgradeConfig": {
- "weekdays": "string",
- "time": "string"
}, - "nodeGroups": [
- {
- "name": "string",
- "numNodes": 0,
- "autoScaleConfig": {
- "minSize": 0,
- "maxSize": 1
}, - "upgradeConfig": {
- "strategy": "string",
- "maxSurge": 1,
- "maxUnavailable": 100
}, - "imageId": "string",
- "flavorId": "string",
- "diskSize": 20,
- "diskType": "string",
- "enablePrivateNodes": true,
- "enabledEncryptionVolume": true,
- "securityGroups": [
- "string"
], - "sshKeyId": "string",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "taints": [
- {
- "key": "string",
- "value": "string",
- "effect": "string"
}
], - "subnetId": "string",
- "secondarySubnets": [
- "string"
]
}
]
}
{- "id": "string",
- "name": "string",
- "description": "string",
- "status": "string",
- "releaseChannel": "RAPID",
- "version": "string",
- "numNodes": 0,
- "enablePrivateCluster": true,
- "createdAt": "2022-03-10T00:00:00.000Z",
- "updatedAt": "2022-03-10T00:00:00.000Z"
}
clusterId required | string |
Authorization required | string Example: Bearer <your-token> |
const request = require('request'); const options = { method: 'GET', url: 'https://vks.api.vngcloud.vn/v1/clusters/%7BclusterId%7D', headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "id": "string",
- "name": "string",
- "description": "string",
- "status": "string",
- "releaseChannel": "RAPID",
- "version": "string",
- "numNodes": 0,
- "enablePrivateCluster": true,
- "createdAt": "2022-03-10T00:00:00.000Z",
- "updatedAt": "2022-03-10T00:00:00.000Z",
- "networkType": "CALICO",
- "vpcId": "string",
- "subnetId": "string",
- "secondarySubnets": [
- "string"
], - "cidr": "string",
- "enabledLoadBalancerPlugin": true,
- "enabledBlockStoreCsiPlugin": true,
- "enabledServiceEndpoint": true,
- "whitelistNodeCIDRs": [
- "string"
], - "poc": true,
- "autoRenewal": true,
- "nodeNetmaskSize": 0,
- "serviceEndpoint": {
- "id": "string",
- "poc": true,
- "status": "string",
- "createdAt": "2022-03-10T00:00:00.000Z"
}, - "location": "string",
- "autoUpgradeConfig": {
- "weekdays": "string",
- "time": "string",
- "futureTriggers": [
- {
- "planStartAt": "2022-03-10T00:00:00.000Z",
- "planEndAt": "2022-03-10T00:00:00.000Z",
- "newVersion": "string"
}
]
}
}
clusterId required | string |
Authorization required | string Example: Bearer <your-token> |
version required | string [ 1 .. 50 ] characters |
whitelistNodeCIDRs required | Array of strings [ 1 .. 20 ] items |
enabledLoadBalancerPlugin | boolean |
enabledBlockStoreCsiPlugin | boolean |
{- "version": "string",
- "whitelistNodeCIDRs": [
- "string"
], - "enabledLoadBalancerPlugin": true,
- "enabledBlockStoreCsiPlugin": true
}
{- "id": "string",
- "name": "string",
- "description": "string",
- "status": "string",
- "releaseChannel": "RAPID",
- "version": "string",
- "numNodes": 0,
- "enablePrivateCluster": true,
- "createdAt": "2022-03-10T00:00:00.000Z",
- "updatedAt": "2022-03-10T00:00:00.000Z"
}
clusterId required | string |
Authorization required | string Example: Bearer <your-token> |
const request = require('request'); const options = { method: 'DELETE', url: 'https://vks.api.vngcloud.vn/v1/clusters/%7BclusterId%7D', headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "id": "string",
- "name": "string",
- "description": "string",
- "status": "string",
- "releaseChannel": "RAPID",
- "version": "string",
- "numNodes": 0,
- "enablePrivateCluster": true,
- "createdAt": "2022-03-10T00:00:00.000Z",
- "updatedAt": "2022-03-10T00:00:00.000Z"
}
clusterId required | string |
Authorization required | string Example: Bearer <your-token> |
weekdays required | string |
time required | string |
{- "weekdays": "string",
- "time": "string"
}
clusterId required | string |
Authorization required | string Example: Bearer <your-token> |
const request = require('request'); const options = { method: 'DELETE', url: 'https://vks.api.vngcloud.vn/v1/clusters/%7BclusterId%7D/auto-upgrade-config', headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
clusterId required | string |
action | string Default: "" |
page | integer <int32> >= 0 Default: 0 |
pageSize | integer <int32> >= 1 Default: 10 |
type | string Default: "" |
Authorization required | string Example: Bearer <your-token> |
const request = require('request'); const options = { method: 'GET', url: 'https://vks.api.vngcloud.vn/v1/clusters/%7BclusterId%7D/events', qs: { action: 'SOME_STRING_VALUE', page: 'SOME_INTEGER_VALUE', pageSize: 'SOME_INTEGER_VALUE', type: 'SOME_STRING_VALUE' }, headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "items": [
- {
- "action": "string",
- "type": "string",
- "message": "string",
- "createdAt": "2022-03-10T00:00:00.000Z"
}
], - "total": 0,
- "page": 0,
- "pageSize": 0
}
clusterId required | string |
Authorization required | string Example: Bearer <your-token> |
const request = require('request'); const options = { method: 'GET', url: 'https://vks.api.vngcloud.vn/v1/clusters/%7BclusterId%7D/kubeconfig', headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
clusterId required | string |
Authorization required | string Example: Bearer <your-token> |
const request = require('request'); const options = { method: 'POST', url: 'https://vks.api.vngcloud.vn/v1/clusters/%7BclusterId%7D/stop-poc', headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
clusterId required | string |
page | integer <int32> >= 0 Default: 0 |
pageSize | integer <int32> >= 1 Default: 10 |
Authorization required | string Example: Bearer <your-token> |
const request = require('request'); const options = { method: 'GET', url: 'https://vks.api.vngcloud.vn/v1/clusters/%7BclusterId%7D/upgrade-insight', qs: {page: 'SOME_INTEGER_VALUE', pageSize: 'SOME_INTEGER_VALUE'}, headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "items": [
- {
- "apiVersion": "string",
- "namespace": "string",
- "name": "string",
- "type": "string",
- "recommendApiVersion": "string",
- "ruleSet": "string",
- "resourceVersion": "string",
- "createdAt": "2022-03-10T00:00:00.000Z"
}
], - "total": 0,
- "page": 0,
- "pageSize": 0
}
Authorization required | string Example: Bearer <your-token> |
const request = require('request'); const options = { method: 'GET', url: 'https://vks.api.vngcloud.vn/v1/cluster-versions', headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- {
- "version": "string",
- "enable": true,
- "stage": "string",
- "deprecatedAt": "2022-03-10T00:00:00.000Z"
}
]
clusterId required | string |
page | integer <int32> >= 0 Default: 0 |
pageSize | integer <int32> >= 1 Default: 10 |
Authorization required | string Example: Bearer <your-token> |
const request = require('request'); const options = { method: 'GET', url: 'https://vks.api.vngcloud.vn/v1/clusters/%7BclusterId%7D/node-groups', qs: {page: 'SOME_INTEGER_VALUE', pageSize: 'SOME_INTEGER_VALUE'}, headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "items": [
- {
- "id": "string",
- "clusterId": "string",
- "name": "string",
- "status": "string",
- "numNodes": 0,
- "imageId": "string",
- "createdAt": "2022-03-10T00:00:00.000Z",
- "updatedAt": "2022-03-10T00:00:00.000Z"
}
], - "total": 0,
- "page": 0,
- "pageSize": 0
}
clusterId required | string |
Authorization required | string Example: Bearer <your-token> |
name required | string^[a-z0-9-]{5,15}$ |
numNodes required | integer <int32> >= 0 |
object (NodeGroupAutoScaleConfigDto) | |
required | object (NodeGroupUpgradeConfigDto) |
imageId required | string [ 1 .. 50 ] characters |
flavorId required | string [ 1 .. 50 ] characters |
diskSize required | integer <int32> [ 20 .. 5000 ] |
diskType required | string [ 1 .. 50 ] characters |
enablePrivateNodes required | boolean |
enabledEncryptionVolume | boolean |
securityGroups required | Array of strings |
sshKeyId required | string [ 1 .. 50 ] characters |
object | |
Array of objects (NodeGroupTaintDto) <= 50 items | |
subnetId | string [ 1 .. 50 ] characters |
secondarySubnets | Array of strings <= 10 items |
{- "name": "string",
- "numNodes": 0,
- "autoScaleConfig": {
- "minSize": 0,
- "maxSize": 1
}, - "upgradeConfig": {
- "strategy": "string",
- "maxSurge": 1,
- "maxUnavailable": 100
}, - "imageId": "string",
- "flavorId": "string",
- "diskSize": 20,
- "diskType": "string",
- "enablePrivateNodes": true,
- "enabledEncryptionVolume": true,
- "securityGroups": [
- "string"
], - "sshKeyId": "string",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "taints": [
- {
- "key": "string",
- "value": "string",
- "effect": "string"
}
], - "subnetId": "string",
- "secondarySubnets": [
- "string"
]
}
{- "id": "string",
- "clusterId": "string",
- "name": "string",
- "status": "string",
- "numNodes": 0,
- "imageId": "string",
- "createdAt": "2022-03-10T00:00:00.000Z",
- "updatedAt": "2022-03-10T00:00:00.000Z"
}
clusterId required | string |
nodeGroupId required | string |
Authorization required | string Example: Bearer <your-token> |
const request = require('request'); const options = { method: 'GET', url: 'https://vks.api.vngcloud.vn/v1/clusters/%7BclusterId%7D/node-groups/%7BnodeGroupId%7D', headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "id": "string",
- "clusterId": "string",
- "name": "string",
- "status": "string",
- "numNodes": 0,
- "imageId": "string",
- "createdAt": "2022-03-10T00:00:00.000Z",
- "updatedAt": "2022-03-10T00:00:00.000Z",
- "flavorId": "string",
- "diskSize": 0,
- "diskType": "string",
- "enablePrivateNodes": true,
- "sshKeyId": "string",
- "imageOS": "string",
- "securityGroups": [
- "string"
], - "autoScaleConfig": {
- "minSize": 0,
- "maxSize": 1
}, - "upgradeConfig": {
- "strategy": "string",
- "maxSurge": 1,
- "maxUnavailable": 100
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "taints": [
- {
- "key": "string",
- "value": "string",
- "effect": "string"
}
], - "subnetId": "string",
- "secondarySubnets": [
- "string"
], - "enabledEncryptionVolume": true,
- "dnsServiceConfig": {
- "projectId": "string",
- "vpcId": "string",
- "subnetId": "string",
- "vpcCidr": "string",
- "virtualAddressIp": "string"
}
}
clusterId required | string |
nodeGroupId required | string |
Authorization required | string Example: Bearer <your-token> |
object (NodeGroupAutoScaleConfigDto) | |
numNodes | integer <int32> >= 0 |
required | object (NodeGroupUpgradeConfigDto) |
securityGroups required | Array of strings |
imageId required | string [ 1 .. 50 ] characters |
object | |
Array of objects (NodeGroupTaintDto) <= 50 items |
{- "autoScaleConfig": {
- "minSize": 0,
- "maxSize": 1
}, - "numNodes": 0,
- "upgradeConfig": {
- "strategy": "string",
- "maxSurge": 1,
- "maxUnavailable": 100
}, - "securityGroups": [
- "string"
], - "imageId": "string",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "taints": [
- {
- "key": "string",
- "value": "string",
- "effect": "string"
}
]
}
{- "id": "string",
- "clusterId": "string",
- "name": "string",
- "status": "string",
- "numNodes": 0,
- "imageId": "string",
- "createdAt": "2022-03-10T00:00:00.000Z",
- "updatedAt": "2022-03-10T00:00:00.000Z"
}
clusterId required | string |
nodeGroupId required | string |
Authorization required | string Example: Bearer <your-token> |
const request = require('request'); const options = { method: 'DELETE', url: 'https://vks.api.vngcloud.vn/v1/clusters/%7BclusterId%7D/node-groups/%7BnodeGroupId%7D', headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "id": "string",
- "clusterId": "string",
- "name": "string",
- "status": "string",
- "numNodes": 0,
- "imageId": "string",
- "createdAt": "2022-03-10T00:00:00.000Z",
- "updatedAt": "2022-03-10T00:00:00.000Z"
}
clusterId required | string |
nodeGroupId required | string |
action | string Default: "" |
page | integer <int32> >= 0 Default: 0 |
pageSize | integer <int32> >= 1 Default: 10 |
type | string Default: "" |
Authorization required | string Example: Bearer <your-token> |
const request = require('request'); const options = { method: 'GET', url: 'https://vks.api.vngcloud.vn/v1/clusters/%7BclusterId%7D/node-groups/%7BnodeGroupId%7D/events', qs: { action: 'SOME_STRING_VALUE', page: 'SOME_INTEGER_VALUE', pageSize: 'SOME_INTEGER_VALUE', type: 'SOME_STRING_VALUE' }, headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "items": [
- {
- "action": "string",
- "type": "string",
- "message": "string",
- "createdAt": "2022-03-10T00:00:00.000Z"
}
], - "total": 0,
- "page": 0,
- "pageSize": 0
}
clusterId required | string |
nodeGroupId required | string |
page | integer <int32> >= 0 Default: 0 |
pageSize | integer <int32> >= 1 Default: 10 |
Authorization required | string Example: Bearer <your-token> |
const request = require('request'); const options = { method: 'GET', url: 'https://vks.api.vngcloud.vn/v1/clusters/%7BclusterId%7D/node-groups/%7BnodeGroupId%7D/nodes', qs: {page: 'SOME_INTEGER_VALUE', pageSize: 'SOME_INTEGER_VALUE'}, headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "items": [
- {
- "id": "string",
- "name": "string",
- "status": "string",
- "floatingIp": "string",
- "fixedIp": "string",
- "ready": true,
- "poc": true
}
], - "total": 0,
- "page": 0,
- "pageSize": 0
}
Authorization required | string Example: Bearer <your-token> |
const request = require('request'); const options = { method: 'GET', url: 'https://vks.api.vngcloud.vn/v1/node-group-images', headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- {
- "id": "string",
- "os": "string",
- "kubernetesVersion": "string",
- "enable": true,
- "stage": "STABLE"
}
]
Authorization required | string Example: Bearer <your-token> |
const request = require('request'); const options = { method: 'GET', url: 'https://vks.api.vngcloud.vn/v1/quota', headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "maxClusters": 0,
- "numClusters": 0,
- "maxNodeGroupsPerCluster": 0,
- "maxNodesPerNodeGroup": 0
}
Authorization required | string Example: Bearer <your-token> |
const request = require('request'); const options = { method: 'GET', url: 'https://vks.api.vngcloud.vn/v1/workspace', headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "projectId": "string",
- "serviceAccountId": "string",
- "status": "string",
- "statusReason": "string"
}
Authorization required | string Example: Bearer <your-token> |
const request = require('request'); const options = { method: 'POST', url: 'https://vks.api.vngcloud.vn/v1/workspace', headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
Authorization required | string Example: Bearer <your-token> |
const request = require('request'); const options = { method: 'POST', url: 'https://vks.api.vngcloud.vn/v1/workspace/reset-service-account', headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "projectId": "string",
- "serviceAccountId": "string",
- "status": "string",
- "statusReason": "string"
}