Download OpenAPI specification:Download
Api Documentation
repoId required | string The repo id |
imageName required | string imageName |
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://vcr.api.vngcloud.vn/v1/repository/{repoId}/images/artifacts', qs: { imageName: 'SOME_STRING_VALUE', 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); });
repoId required | string The repo id |
digest required | string digest |
imageName required | string imageName |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://vcr.api.vngcloud.vn/v1/repository/{repoId}/images/artifacts/delete', qs: {digest: 'SOME_STRING_VALUE', imageName: '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); });
repoId required | string The repo 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://vcr.api.vngcloud.vn/v1/repository/{repoId}/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); });
repoId required | string The repo id |
imageName required | string imageName |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://vcr.api.vngcloud.vn/v1/repository/{repoId}/images/delete', qs: {imageName: '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); });
repoId required | string The repo id |
imageName required | string imageName |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://vcr.api.vngcloud.vn/v1/repository/{repoId}/images/detail', qs: {imageName: '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); });
accessLevel | string accessLevel |
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://vcr.api.vngcloud.vn/v1/repository', qs: { accessLevel: 'SOME_STRING_VALUE', 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); });
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
createRepoRequest
isPublic required | boolean Access level of project |
quotaLimit required | integer <int32> Quota limit of project, unit: GB |
repoName required | string Name of project |
{- "isPublic": true,
- "quotaLimit": 20,
- "repoName": "network-interface"
}
repoId required | string The repo 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://vcr.api.vngcloud.vn/v1/repository/{repoId}', 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); });
repoId required | string The repository 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://vcr.api.vngcloud.vn/v1/repository/{repoId}', 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); });
repoId required | string The repo id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
request
repoId required | string Repository Uuid |
required | Array of objects (RepoUserPermissionRequest) Repository User list |
{- "repoId": 20,
- "repoUserList": 20
}
repoId required | string The repo id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
request
repoId required | string Repository Uuid |
repoUserUuidList required | Array of strings Repository User list |
{- "repoId": 20,
- "repoUserUuidList": 20
}
repoId required | string The repo 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://vcr.api.vngcloud.vn/v1/repository/{repoId}/history', 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); });
repoId required | string The repo id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
request
quotaLimit required | integer <int32> Quota limit of project, unit: GB |
repoId required | string Uuid of repository |
{- "quotaLimit": 20,
- "repoId": "repo-02c6851e-2427-4cc3-938b-db0fe5f5b184"
}
repoId required | string The repo 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://vcr.api.vngcloud.vn/v1/repository/{repoId}/user', 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); });
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://vcr.api.vngcloud.vn/v1/user', 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); });
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
request
description | string Description of Repository User |
duration | integer <int32> The duration of the Repo User in days |
name required | string Name of Repository User |
required | Array of objects (RepoPermissionRequest) Permission list |
{- "description": "network-interface",
- "duration": true,
- "name": "network-interface",
- "permissionRequestList": 20
}
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
const request = require('request'); const options = { method: 'GET', url: 'https://vcr.api.vngcloud.vn/v1/user/permissions', 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); });
repoUserId required | string The repository user id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
request
description | string Description of Repository User |
duration | integer <int32> The duration of the Repo User in days |
repoUserId required | string Repository User Id |
{- "description": "network-interface",
- "duration": true,
- "repoUserId": "ra-08b64fae-2a04-49c9-a396-53d4af3a818f"
}
repoUserId required | string The repository user 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://vcr.api.vngcloud.vn/v1/user/{repoUserId}', 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); });
repoUserId required | string The repository user 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://vcr.api.vngcloud.vn/v1/user/{repoUserId}/disable', 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); });
repoUserId required | string The repository user 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://vcr.api.vngcloud.vn/v1/user/{repoUserId}/enable', 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); });
repoUserId required | string The repository user id |
Authorization required | string Access Token |
portal-user-id required | integer <int32> portal-user-id |
request
required | Array of objects (RepoPermissionRequest) Permission list |
repoUserId required | string Repository User Id |
{- "permissionRequestList": 20,
- "repoUserId": "ra-08b64fae-2a04-49c9-a396-53d4af3a818f"
}
repoUserId required | string The repository user 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://vcr.api.vngcloud.vn/v1/user/{repoUserId}/refresh', 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); });