Storage connection (storage)
Description
Defines access parameters for a specific storage used by the platform.
Defines the type (type). Data can be located in PostgreSQL, Kafka, or ClickHouse clusters. Files in s3, fs, nfs, fsync.
Sets the code (instance) and allows referencing it when configuring data model classes.
An element with instance = auto is created automatically.
Fields
{
"id": uuid,
"name": str,
"instance": str,
"params": object,
"opts": {
"title": str,
"comment": str
},
"ext": {
"ct": date,
"lwt": date
}
}
Connection parameters for storage types
| Storage type | Parameters |
|---|---|
|
* host — host; |
|
* endpoints — list of connection points. Each endpoint object contains: |
|
* cluster — name of the clickhouse cluster from its configuration. |
|
* bucket — bucket name. |
|
* configkey — configuration key defining the disk directory associated with the storage (inside the container). Value variants: 'globalshare', 'siteshare', 'local'. |
|
* prefix (optional) — path prefix in the disk directory. Default empty string. |
|
* prefix (optional) — path prefix in the disk directory. Default empty string. |