Vault#
Create, edit, list and delete file into the vault.
You need to provide authentication parameters for all queries. To learn more, see API Introduction.
Get all configurations#
Code samples
curl -X GET {server}/vault/api/v1/configurations \
-H 'Accept: application/json' \
-H 'Authorization: Basic {access-token}'
GET /vault/api/v1/configurations
Get all configurations
Example responses
200 Response
{
"value": [
{
"id": "string",
"name": "string",
"description": "string",
"rule": {
"id": [
"string"
],
"labels": [
"string"
]
},
"enabled": true,
"template": "string",
"content": "string",
"created": "2019-08-24T14:15:22Z",
"modified": "2019-08-24T14:15:22Z",
"checksum": "sha256:a579814f0cd7bdb42d671acd900d26c4a109bb1a8dc01c029b6cb19804b31a66"
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Get all configurations | Inline |
Response Schema
Status Code 200
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
ยป value | [object] | false | none | none |
ยปยป id | string | true | none | none |
ยปยป name | string | true | none | none |
ยปยป description | string | false | none | none |
ยปยป rule | object | false | none | none |
ยปยปยป id | [string] | false | none | none |
ยปยปยป labels | [string] | false | none | none |
ยปยป enabled | boolean | false | none | none |
ยปยป template | string | true | none | none |
ยปยป content | string | false | none | none |
ยปยป created | string(date-time) | false | none | none |
ยปยป modified | string(date-time) | false | none | none |
ยปยป checksum | string | false | none | none |
Get a configuration#
Code samples
curl -X GET {server}/vault/api/v1/configurations/{configurationId} \
-H 'Accept: application/json' \
-H 'Authorization: Basic {access-token}'
GET /vault/api/v1/configurations/{configurationId}
Get a configuration
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
configurationId | path | string | true | ID of a configuration |
Example responses
200 Response
{
"value": {
"id": "string",
"name": "string",
"description": "string",
"rule": {
"id": [
"string"
],
"labels": [
"string"
]
},
"enabled": true,
"template": "string",
"content": "#sample \n id =1 \n name='daehli'",
"created": "2019-08-24T14:15:22Z",
"modified": "2019-08-24T14:15:22Z",
"checksum": "sha256:a579814f0cd7bdb42d671acd900d26c4a109bb1a8dc01c029b6cb19804b31a66"
}
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Get a configuration | Inline |
Response Schema
Status Code 200
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
ยป value | any | false | none | none |
allOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
ยปยป anonymous | object | false | none | none |
ยปยปยป id | string | true | none | none |
ยปยปยป name | string | true | none | none |
ยปยปยป description | string | false | none | none |
ยปยปยป rule | object | false | none | none |
ยปยปยปยป id | [string] | false | none | none |
ยปยปยปยป labels | [string] | false | none | none |
ยปยปยป enabled | boolean | false | none | none |
ยปยปยป template | string | true | none | none |
ยปยปยป content | string | false | none | none |
ยปยปยป created | string(date-time) | false | none | none |
ยปยปยป modified | string(date-time) | false | none | none |
ยปยปยป checksum | string | false | none | none |
and
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
ยปยป anonymous | object | false | none | none |
ยปยปยป content | string | false | none | none |
Create a configuration#
Code samples
curl -X POST {server}/vault/api/v1/configurations/{configurationId} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic {access-token}'
POST /vault/api/v1/configurations/{configurationId}
Create a configuration into the vault
Body parameter
{
"id": "string",
"name": "string",
"description": "string",
"rule": {
"id": [
"string"
],
"labels": [
"string"
]
},
"enabled": true,
"template": "string",
"content": "#sample \n id =1 \n name='daehli'",
"created": "2019-08-24T14:15:22Z",
"modified": "2019-08-24T14:15:22Z",
"checksum": "sha256:a579814f0cd7bdb42d671acd900d26c4a109bb1a8dc01c029b6cb19804b31a66"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | any | false | none |
Example responses
201 Response
{
"value": {
"id": "string",
"name": "string",
"description": "string",
"rule": {
"id": [
"string"
],
"labels": [
"string"
]
},
"enabled": true,
"template": "string",
"content": "string",
"created": "2019-08-24T14:15:22Z",
"modified": "2019-08-24T14:15:22Z",
"checksum": "sha256:a579814f0cd7bdb42d671acd900d26c4a109bb1a8dc01c029b6cb19804b31a66"
}
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
201 | Created | Successfully created a configuration | Inline |
Response Schema
Status Code 201
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
ยป value | object | false | none | none |
ยปยป id | string | true | none | none |
ยปยป name | string | true | none | none |
ยปยป description | string | false | none | none |
ยปยป rule | object | false | none | none |
ยปยปยป id | [string] | false | none | none |
ยปยปยป labels | [string] | false | none | none |
ยปยป enabled | boolean | false | none | none |
ยปยป template | string | true | none | none |
ยปยป content | string | false | none | none |
ยปยป created | string(date-time) | false | none | none |
ยปยป modified | string(date-time) | false | none | none |
ยปยป checksum | string | false | none | none |
Edit a configuration#
Code samples
curl -X PATCH {server}/vault/api/v1/configurations/{configurationId} \
-H 'Accept: application/json' \
-H 'Authorization: Basic {access-token}'
PATCH /vault/api/v1/configurations/{configurationId}
Edit a configuration
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
configurationId | path | string | true | ID of a configuration |
Example responses
204 Response
{
"value": {
"id": "string",
"name": "string",
"description": "string",
"rule": {
"id": [
"string"
],
"labels": [
"string"
]
},
"enabled": true,
"template": "string",
"content": "string",
"created": "2019-08-24T14:15:22Z",
"modified": "2019-08-24T14:15:22Z",
"checksum": "sha256:a579814f0cd7bdb42d671acd900d26c4a109bb1a8dc01c029b6cb19804b31a66"
}
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | Edit a configuration | Inline |
Response Schema
Status Code 204
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
ยป value | object | false | none | none |
ยปยป id | string | true | none | none |
ยปยป name | string | true | none | none |
ยปยป description | string | false | none | none |
ยปยป rule | object | false | none | none |
ยปยปยป id | [string] | false | none | none |
ยปยปยป labels | [string] | false | none | none |
ยปยป enabled | boolean | false | none | none |
ยปยป template | string | true | none | none |
ยปยป content | string | false | none | none |
ยปยป created | string(date-time) | false | none | none |
ยปยป modified | string(date-time) | false | none | none |
ยปยป checksum | string | false | none | none |
Delete a configuration#
Code samples
curl -X DELETE {server}/vault/api/v1/configurations/{configurationId} \
-H 'Authorization: Basic {access-token}'
DELETE /vault/api/v1/configurations/{configurationId}
Delete configuration specified by the configuration id
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
configurationId | path | string | true | ID of a configuration |
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | Successfully deleted a configuration in the vault | None |
Get all nodes#
Code samples
curl -X GET {server}/vault/api/v1/nodes \
-H 'Accept: application/json' \
-H 'Authorization: Basic {access-token}'
GET /vault/api/v1/nodes
Get all nodes
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
label | query | string | false | Search by label |
Enumerated Values#
Parameter | Value |
---|---|
label | alert |
label | kapacitor |
label | telegraf |
label | tagger |
Example responses
200 Response
{
"value": {
"id": "Main_Kapacitor",
"label": [
"alert"
]
}
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successfully retrived all nodes | Inline |
Response Schema
Status Code 200
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
ยป value | object | false | none | none |
ยปยป id | string | false | none | none |
ยปยป label | [string] | false | none | none |
Get all templates#
Code samples
curl -X GET {server}/vault/api/v1/templates \
-H 'Accept: application/json' \
-H 'Authorization: Basic {access-token}'
GET /vault/api/v1/templates
Get all templates specified by the label. The label is not required. It will return all the templates
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
label | query | string | false | Search by label |
Enumerated Values#
Parameter | Value |
---|---|
label | alert |
label | kapacitor |
label | telegraf |
label | tagger |
Example responses
200 Response
{
"value": [
{
"id": "string",
"name": "string",
"rule": {
"id": [
"string"
],
"labels": [
"string"
]
},
"type": "static",
"template-language": "string",
"location": "string",
"metadata": {
"docurl": "https://docs.unryo.com/index.html#/02_Administration/100_analytics_alerting",
"version": 200201
}
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successfully retrived all templates | Inline |
Response Schema
Status Code 200
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
ยป value | [object] | false | none | none |
ยปยป id | string | false | none | none |
ยปยป name | string | false | none | none |
ยปยป rule | object | false | none | none |
ยปยปยป id | [string] | false | none | none |
ยปยปยป labels | [string] | false | none | none |
ยปยป type | string | false | none | none |
ยปยป template-language | string | false | none | none |
ยปยป location | string | false | none | none |
ยปยป metadata | object | false | none | none |
ยปยปยป docurl | string | false | none | none |
ยปยปยป version | string | false | none | none |
Enumerated Values#
Property | Value |
---|---|
type | static |
type | dynamic |
Get template#
Code samples
curl -X GET {server}/vault/api/v1/templates/{template} \
-H 'Accept: application/json' \
-H 'Authorization: Basic {access-token}'
GET /vault/api/v1/templates/{template}
Get template specified by the template id
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
template | path | string | true | Search by template ID |
Example responses
200 Response
{
"value": {
"id": "string",
"name": "string",
"rule": {
"id": [
"string"
],
"labels": [
"string"
]
},
"type": "static",
"template-language": "string",
"location": "string",
"metadata": {
"docurl": "https://docs.unryo.com/index.html#/02_Administration/100_analytics_alerting",
"version": 200201
},
"sample": "#sample \n id =1 \n name='daehli'",
"template-content": "string"
}
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successfully retrived template | Inline |
404 | Not Found | template not found | Inline |
Response Schema
Status Code 200
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
ยป value | any | false | none | none |
allOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
ยปยป anonymous | object | false | none | none |
ยปยปยป id | string | false | none | none |
ยปยปยป name | string | false | none | none |
ยปยปยป rule | object | false | none | none |
ยปยปยปยป id | [string] | false | none | none |
ยปยปยปยป labels | [string] | false | none | none |
ยปยปยป type | string | false | none | none |
ยปยปยป template-language | string | false | none | none |
ยปยปยป location | string | false | none | none |
ยปยปยป metadata | object | false | none | none |
ยปยปยปยป docurl | string | false | none | none |
ยปยปยปยป version | string | false | none | none |
and
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
ยปยป anonymous | object | false | none | none |
ยปยปยป sample | string | false | none | none |
ยปยปยป template-content | string | false | none | none |
Enumerated Values#
Property | Value |
---|---|
type | static |
type | dynamic |
Status Code 404
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
ยป status | integer | false | none | none |
ยป message | string | false | none | none |