Download API specification :Download
| id
required
|
string
|
| Authorization
required
|
string
access token |
const request = require('request'); const options = { method: 'PUT', url: 'https://vmonitorapi.vngcloud.vn/log-api/v1/projects/%7Bid%7D/certificate', headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "message": "string"
}
| project_id
required
|
string
|
| Authorization
required
|
string
access token |
| description |
string^[A-Za-z\d_.\- ]{0,300}$
|
|
Array of objects (
RestUserProjectMappings
)
|
{- "description": "string",
- "mappings": [
- {
- "portalField": "string",
- "systemFields": [
- "string"
]
}
]
}
{- "id": "string",
- "name": "string",
- "description": "string",
- "timeField": "string",
- "status": "string",
- "billingStatus": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "extra": {
- "preRenderSystemFields": [
- "string"
], - "customMappings": [
- {
- "systemField": "string",
- "portalFields": [
- "string"
]
}
], - "enabledAcl": true,
- "certUpdatedAt": "2019-08-24T14:15:22Z"
}
}
| query |
string
[ 0 .. 50 ] characters
Default:
""
|
| page |
integer
<
int32
>
Default:
0
|
| size |
integer
<
int32
>
[ 1 .. 100 ]
Default:
10
|
| billing_status |
string
|
| status |
string
|
| Authorization
required
|
string
access token |
const request = require('request'); const options = { method: 'GET', url: 'https://vmonitorapi.vngcloud.vn/log-api/v1/projects', qs: { query: 'SOME_STRING_VALUE', page: 'SOME_INTEGER_VALUE', size: 'SOME_INTEGER_VALUE', billing_status: 'SOME_STRING_VALUE', status: 'SOME_STRING_VALUE' }, headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "content": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "timeField": "string",
- "status": "string",
- "billingStatus": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "extra": {
- "preRenderSystemFields": [
- "string"
], - "customMappings": [
- {
- "systemField": "string",
- "portalFields": [
- "string"
]
}
], - "enabledAcl": true,
- "certUpdatedAt": "2019-08-24T14:15:22Z"
}
}
], - "totalPages": 0,
- "totalElements": 0,
- "currentPage": 0,
- "pageSize": 0
}
| project_id
required
|
string
|
| Authorization
required
|
string
access token |
const request = require('request'); const options = { method: 'GET', url: 'https://vmonitorapi.vngcloud.vn/log-api/v1/projects/%7Bproject_id%7D/mappings', headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- {
- "name": "string",
- "elasticType": "string",
- "type": "string",
- "agg": true,
- "isAgg": true
}
]
| id
required
|
string
|
| Authorization
required
|
string
access token |
const request = require('request'); const options = { method: 'GET', url: 'https://vmonitorapi.vngcloud.vn/log-api/v1/projects/%7Bid%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",
- "timeField": "string",
- "status": "string",
- "billingStatus": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "extra": {
- "preRenderSystemFields": [
- "string"
], - "customMappings": [
- {
- "systemField": "string",
- "portalFields": [
- "string"
]
}
], - "enabledAcl": true,
- "certUpdatedAt": "2019-08-24T14:15:22Z"
}
}
| query |
string
[ 0 .. 50 ] characters
Default:
""
|
| project_id
required
|
string
|
| page |
integer
<
int32
>
Default:
0
|
| size |
integer
<
int32
>
[ 1 .. 100 ]
Default:
10
|
| Authorization
required
|
string
access token |
const request = require('request'); const options = { method: 'GET', url: 'https://vmonitorapi.vngcloud.vn/log-api/v1/refills', qs: { query: 'SOME_STRING_VALUE', project_id: 'SOME_STRING_VALUE', page: 'SOME_INTEGER_VALUE', size: 'SOME_INTEGER_VALUE' }, headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "content": [
- {
- "id": "string",
- "name": "string",
- "status": "string",
- "projectId": "string",
- "userId": 0,
- "storageType": "string",
- "storageTypeName": "string",
- "storageSettings": { },
- "startAt": "2019-08-24T14:15:22Z",
- "endAt": "2019-08-24T14:15:22Z",
- "description": "string",
- "processStartedAt": "2019-08-24T14:15:22Z",
- "processEndedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "totalPages": 0,
- "totalElements": 0,
- "currentPage": 0,
- "pageSize": 0
}
| Authorization
required
|
string
access token |
| storageType
required
|
string^(S3)|(V_STORAGE)$
Available values: "S3", "V_STORAGE" |
| storageSettings
required
|
object
if "storageType" is "S3", "storageSettings" will follow
format: {
"region": "string",
"bucket": "string",
"endpoint": "string",
"accessKey": "string",
"secretKey": "string",
"roleARN": "string",
"cannedACL": "string",
"additionalSettings": {
"forcePathStyle": "boolean",
"followRedirects": "boolean"
}
}if "storageType" is "V_STORAGE", "storageSettings" will follow format: {
"region": "string",
"container": "string",
"endpoint": "string",
"accessKey": "string",
"secretKey": "string"
}
|
| startAt
required
|
string
<
date-time
>
|
| endAt
required
|
string
<
date-time
>
|
| name
required
|
string^[A-Za-z]$|^[A-Za-z][A-Za-z\d-]{0,61}[A-Za-z\...
|
| projectId
required
|
string
[ 0 .. 50 ] characters
|
| description |
string^[A-Za-z\d_.\- ]{0,300}$
|
{- "storageType": "string",
- "storageSettings": { },
- "startAt": "2019-08-24T14:15:22Z",
- "endAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "projectId": "string",
- "description": "string"
}
{- "id": "string",
- "name": "string",
- "status": "string",
- "projectId": "string",
- "userId": 0,
- "storageType": "string",
- "storageTypeName": "string",
- "storageSettings": { },
- "startAt": "2019-08-24T14:15:22Z",
- "endAt": "2019-08-24T14:15:22Z",
- "description": "string",
- "processStartedAt": "2019-08-24T14:15:22Z",
- "processEndedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
| Authorization
required
|
string
access token |
| storageType
required
|
string^(S3)|(V_STORAGE)$
Available values: "S3", "V_STORAGE" |
| storageSettings
required
|
object
if "storageType" is "S3", "storageSettings" will follow
format: {
"region": "string",
"bucket": "string",
"endpoint": "string",
"accessKey": "string",
"secretKey": "string",
"roleARN": "string",
"cannedACL": "string",
"additionalSettings": {
"forcePathStyle": "boolean",
"followRedirects": "boolean"
}
}if "storageType" is "V_STORAGE", "storageSettings" will follow format: {
"region": "string",
"container": "string",
"endpoint": "string",
"accessKey": "string",
"secretKey": "string"
}
|
{- "storageType": "string",
- "storageSettings": { }
}
{- "message": "string",
- "success": true
}
| Authorization
required
|
string
access token |
| startAt
required
|
string
<
date-time
>
|
| endAt
required
|
string
<
date-time
>
|
| name
required
|
string^[A-Za-z]$|^[A-Za-z](?:[A-Za-z\d-]){0,61}[A-Z...
|
| archiveId
required
|
string
[ 0 .. 50 ] characters
|
| projectId
required
|
string
[ 0 .. 50 ] characters
|
| description |
string^[A-Za-z\d_.\- ]{0,300}$
|
{- "startAt": "2019-08-24T14:15:22Z",
- "endAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "archiveId": "string",
- "projectId": "string",
- "description": "string"
}
{- "id": "string",
- "name": "string",
- "status": "string",
- "projectId": "string",
- "userId": 0,
- "storageType": "string",
- "storageTypeName": "string",
- "storageSettings": { },
- "startAt": "2019-08-24T14:15:22Z",
- "endAt": "2019-08-24T14:15:22Z",
- "description": "string",
- "processStartedAt": "2019-08-24T14:15:22Z",
- "processEndedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
| refill_id
required
|
string
|
| Authorization
required
|
string
access token |
const request = require('request'); const options = { method: 'GET', url: 'https://vmonitorapi.vngcloud.vn/log-api/v1/refills/%7Brefill_id%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",
- "status": "string",
- "projectId": "string",
- "userId": 0,
- "storageType": "string",
- "storageTypeName": "string",
- "storageSettings": { },
- "startAt": "2019-08-24T14:15:22Z",
- "endAt": "2019-08-24T14:15:22Z",
- "description": "string",
- "processStartedAt": "2019-08-24T14:15:22Z",
- "processEndedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
| refill_id
required
|
string
|
| Authorization
required
|
string
access token |
const request = require('request'); const options = { method: 'DELETE', url: 'https://vmonitorapi.vngcloud.vn/log-api/v1/refills/%7Brefill_id%7D', headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "message": "string"
}
| Authorization
required
|
string
access token |
| projectId
required
|
string
|
|
required
|
Array of objects (
LogSort
)
|
| size |
integer
<
int32
>
[ 0 .. 500 ]
|
| from |
integer
<
int32
>
>= 0
|
|
required
|
object (
LogQuery
)
|
|
required
|
Array of objects (
LogAggregation
)
|
{- "projectId": "string",
- "sorts": [
- {
- "type": "string",
- "value": { }
}
], - "size": 500,
- "from": 0,
- "query": {
- "type": "string",
- "value": { }
}, - "aggregations": [
- {
- "aggregationQuery": {
- "type": "string",
- "value": { }
}, - "subAggregation": { }
}
]
}
"string"
Prepare logs for downloading
| Authorization
required
|
string
access token |
| projectId
required
|
string
|
|
required
|
Array of objects (
LogSort
)
|
|
required
|
object (
LogQuery
)
|
{- "projectId": "string",
- "sorts": [
- {
- "type": "string",
- "value": { }
}
], - "query": {
- "type": "string",
- "value": { }
}
}
{- "id": "string",
- "total": 0,
- "processedAmount": 0,
- "status": "string"
}
| id
required
|
string
|
| Authorization
required
|
string
access token |
const request = require('request'); const options = { method: 'GET', url: 'https://vmonitorapi.vngcloud.vn/log-api/v1/logs/exports/%7Bid%7D', headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "id": "string",
- "total": 0,
- "processedAmount": 0,
- "status": "string"
}
| query |
string
[ 0 .. 50 ] characters
Default:
""
|
| project_id |
string
|
| page |
integer
<
int32
>
Default:
0
|
| size |
integer
<
int32
>
[ 1 .. 100 ]
Default:
10
|
| Authorization
required
|
string
access token |
const request = require('request'); const options = { method: 'GET', url: 'https://vmonitorapi.vngcloud.vn/log-api/v1/archives', qs: { query: 'SOME_STRING_VALUE', project_id: 'SOME_STRING_VALUE', page: 'SOME_INTEGER_VALUE', size: 'SOME_INTEGER_VALUE' }, headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "content": [
- {
- "id": "string",
- "name": "string",
- "status": "string",
- "description": "string",
- "projectId": "string",
- "userId": 0,
- "storageType": "string",
- "storageTypeName": "string",
- "storageSettings": { },
- "processStartedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "totalPages": 0,
- "totalElements": 0,
- "currentPage": 0,
- "pageSize": 0
}
| Authorization
required
|
string
access token |
| storageType
required
|
string^(S3)|(V_STORAGE)$
Available values: "S3", "V_STORAGE" |
| storageSettings
required
|
object
if "storageType" is "S3", "storageSettings" will follow
format: {
"region": "string",
"bucket": "string",
"endpoint": "string",
"accessKey": "string",
"secretKey": "string",
"roleARN": "string",
"cannedACL": "string",
"additionalSettings": {
"forcePathStyle": "boolean",
"followRedirects": "boolean"
}
}if "storageType" is "V_STORAGE", "storageSettings" will follow format: {
"region": "string",
"container": "string",
"endpoint": "string",
"accessKey": "string",
"secretKey": "string"
}
|
| name
required
|
string^[A-Za-z]$|^[A-Za-z](?:[A-Za-z\d-]){0,61}[A-Z...
|
| projectId
required
|
string
[ 0 .. 50 ] characters
|
| description |
string^[A-Za-z\d_.\- ]{0,300}$
|
{- "storageType": "string",
- "storageSettings": { },
- "name": "string",
- "projectId": "string",
- "description": "string"
}
{- "id": "string",
- "name": "string",
- "status": "string",
- "description": "string",
- "projectId": "string",
- "userId": 0,
- "storageType": "string",
- "storageTypeName": "string",
- "storageSettings": { },
- "processStartedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
| Authorization
required
|
string
access token |
| storageType
required
|
string^(S3)|(V_STORAGE)$
Available values: "S3", "V_STORAGE" |
| storageSettings
required
|
object
if "storageType" is "S3", "storageSettings" will follow
format: {
"region": "string",
"bucket": "string",
"endpoint": "string",
"accessKey": "string",
"secretKey": "string",
"roleARN": "string",
"cannedACL": "string",
"additionalSettings": {
"forcePathStyle": "boolean",
"followRedirects": "boolean"
}
}if "storageType" is "V_STORAGE", "storageSettings" will follow format: {
"region": "string",
"container": "string",
"endpoint": "string",
"accessKey": "string",
"secretKey": "string"
}
|
{- "storageType": "string",
- "storageSettings": { }
}
{- "message": "string",
- "success": true
}
| archive_id
required
|
string
|
| Authorization
required
|
string
access token |
const request = require('request'); const options = { method: 'GET', url: 'https://vmonitorapi.vngcloud.vn/log-api/v1/archives/%7Barchive_id%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",
- "status": "string",
- "description": "string",
- "projectId": "string",
- "userId": 0,
- "storageType": "string",
- "storageTypeName": "string",
- "storageSettings": { },
- "processStartedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
| archive_id
required
|
string
|
| Authorization
required
|
string
access token |
const request = require('request'); const options = { method: 'DELETE', url: 'https://vmonitorapi.vngcloud.vn/log-api/v1/archives/%7Barchive_id%7D', headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "message": "string"
}
const request = require('request'); const options = { method: 'GET', url: 'https://vmonitorapi.vngcloud.vn/log-api/v1/downloads/logs/exports/%7Bid%7D' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "message": "string"
}
| id
required
|
string
|
| Authorization
required
|
string
access token |
const request = require('request'); const options = { method: 'GET', url: 'https://vmonitorapi.vngcloud.vn/log-api/v1/downloads/certificates/projects/%7Bid%7D', headers: {Authorization: 'SOME_STRING_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "message": "string"
}