curl --request PATCH \
--url http://localhost:3000/api/clusters/{clusterName} \
--header 'Content-Type: application/json' \
--cookie token= \
--data '
{
"replicas": 2,
"version": "<string>",
"componentDefinition": "<string>",
"resources": {
"limits": {
"cpu": "<string>",
"memory": "<string>"
},
"requests": {
"cpu": "<string>",
"memory": "<string>"
}
},
"services": [
{
"name": "<string>",
"serviceType": "ClusterIP",
"annotations": {},
"podService": true
}
],
"modules": {
"falkordb": {
"config": {
"THREAD_COUNT": "<string>",
"CACHE_SIZE": "<string>",
"OMP_THREAD_COUNT": "<string>",
"NODE_CREATION_BUFFER": "<string>",
"BOLT_PORT": "<string>",
"MAX_QUEUED_QUERIES": "<string>",
"TIMEOUT_MAX": "<string>",
"TIMEOUT_DEFAULT": "<string>",
"RESULTSET_SIZE": "<string>",
"QUERY_MEM_CAPACITY": "<string>",
"VKEY_MAX_ENTITY_COUNT": "<string>",
"EFFECTS_THRESHOLD": "<string>",
"CMD_INFO": "<string>",
"MAX_INFO_QUERIES": "<string>",
"DELTA_MAX_PENDING_CHANGES": "<string>",
"IMPORT_FOLDER": "<string>"
}
}
},
"falkordbArgs": {
"THREAD_COUNT": "<string>",
"CACHE_SIZE": "<string>",
"OMP_THREAD_COUNT": "<string>",
"NODE_CREATION_BUFFER": "<string>",
"BOLT_PORT": "<string>",
"MAX_QUEUED_QUERIES": "<string>",
"TIMEOUT_MAX": "<string>",
"TIMEOUT_DEFAULT": "<string>",
"RESULTSET_SIZE": "<string>",
"QUERY_MEM_CAPACITY": "<string>",
"VKEY_MAX_ENTITY_COUNT": "<string>",
"EFFECTS_THRESHOLD": "<string>",
"CMD_INFO": "<string>",
"MAX_INFO_QUERIES": "<string>",
"DELTA_MAX_PENDING_CHANGES": "<string>",
"IMPORT_FOLDER": "<string>"
},
"disableExporter": true,
"externalDomain": "<string>",
"sentinel": {
"replicas": 2,
"componentDefinition": "<string>",
"resources": {
"limits": {
"cpu": "<string>",
"memory": "<string>"
},
"requests": {
"cpu": "<string>",
"memory": "<string>"
}
},
"services": [
{
"name": "<string>",
"serviceType": "ClusterIP",
"annotations": {},
"podService": true
}
]
},
"sharding": {
"shardCount": 4,
"replicas": 3,
"resources": {
"limits": {
"cpu": "<string>",
"memory": "<string>"
},
"requests": {
"cpu": "<string>",
"memory": "<string>"
}
},
"services": [
{
"name": "<string>",
"serviceType": "ClusterIP",
"annotations": {},
"podService": true
}
]
},
"terminationPolicy": "DoNotTerminate",
"labels": {},
"annotations": {}
}
'import requests
url = "http://localhost:3000/api/clusters/{clusterName}"
payload = {
"replicas": 2,
"version": "<string>",
"componentDefinition": "<string>",
"resources": {
"limits": {
"cpu": "<string>",
"memory": "<string>"
},
"requests": {
"cpu": "<string>",
"memory": "<string>"
}
},
"services": [
{
"name": "<string>",
"serviceType": "ClusterIP",
"annotations": {},
"podService": True
}
],
"modules": { "falkordb": { "config": {
"THREAD_COUNT": "<string>",
"CACHE_SIZE": "<string>",
"OMP_THREAD_COUNT": "<string>",
"NODE_CREATION_BUFFER": "<string>",
"BOLT_PORT": "<string>",
"MAX_QUEUED_QUERIES": "<string>",
"TIMEOUT_MAX": "<string>",
"TIMEOUT_DEFAULT": "<string>",
"RESULTSET_SIZE": "<string>",
"QUERY_MEM_CAPACITY": "<string>",
"VKEY_MAX_ENTITY_COUNT": "<string>",
"EFFECTS_THRESHOLD": "<string>",
"CMD_INFO": "<string>",
"MAX_INFO_QUERIES": "<string>",
"DELTA_MAX_PENDING_CHANGES": "<string>",
"IMPORT_FOLDER": "<string>"
} } },
"falkordbArgs": {
"THREAD_COUNT": "<string>",
"CACHE_SIZE": "<string>",
"OMP_THREAD_COUNT": "<string>",
"NODE_CREATION_BUFFER": "<string>",
"BOLT_PORT": "<string>",
"MAX_QUEUED_QUERIES": "<string>",
"TIMEOUT_MAX": "<string>",
"TIMEOUT_DEFAULT": "<string>",
"RESULTSET_SIZE": "<string>",
"QUERY_MEM_CAPACITY": "<string>",
"VKEY_MAX_ENTITY_COUNT": "<string>",
"EFFECTS_THRESHOLD": "<string>",
"CMD_INFO": "<string>",
"MAX_INFO_QUERIES": "<string>",
"DELTA_MAX_PENDING_CHANGES": "<string>",
"IMPORT_FOLDER": "<string>"
},
"disableExporter": True,
"externalDomain": "<string>",
"sentinel": {
"replicas": 2,
"componentDefinition": "<string>",
"resources": {
"limits": {
"cpu": "<string>",
"memory": "<string>"
},
"requests": {
"cpu": "<string>",
"memory": "<string>"
}
},
"services": [
{
"name": "<string>",
"serviceType": "ClusterIP",
"annotations": {},
"podService": True
}
]
},
"sharding": {
"shardCount": 4,
"replicas": 3,
"resources": {
"limits": {
"cpu": "<string>",
"memory": "<string>"
},
"requests": {
"cpu": "<string>",
"memory": "<string>"
}
},
"services": [
{
"name": "<string>",
"serviceType": "ClusterIP",
"annotations": {},
"podService": True
}
]
},
"terminationPolicy": "DoNotTerminate",
"labels": {},
"annotations": {}
}
headers = {
"cookie": "token=",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {cookie: 'token=', 'Content-Type': 'application/json'},
body: JSON.stringify({
replicas: 2,
version: '<string>',
componentDefinition: '<string>',
resources: {
limits: {cpu: '<string>', memory: '<string>'},
requests: {cpu: '<string>', memory: '<string>'}
},
services: [
{name: '<string>', serviceType: 'ClusterIP', annotations: {}, podService: true}
],
modules: {
falkordb: {
config: {
THREAD_COUNT: '<string>',
CACHE_SIZE: '<string>',
OMP_THREAD_COUNT: '<string>',
NODE_CREATION_BUFFER: '<string>',
BOLT_PORT: '<string>',
MAX_QUEUED_QUERIES: '<string>',
TIMEOUT_MAX: '<string>',
TIMEOUT_DEFAULT: '<string>',
RESULTSET_SIZE: '<string>',
QUERY_MEM_CAPACITY: '<string>',
VKEY_MAX_ENTITY_COUNT: '<string>',
EFFECTS_THRESHOLD: '<string>',
CMD_INFO: '<string>',
MAX_INFO_QUERIES: '<string>',
DELTA_MAX_PENDING_CHANGES: '<string>',
IMPORT_FOLDER: '<string>'
}
}
},
falkordbArgs: {
THREAD_COUNT: '<string>',
CACHE_SIZE: '<string>',
OMP_THREAD_COUNT: '<string>',
NODE_CREATION_BUFFER: '<string>',
BOLT_PORT: '<string>',
MAX_QUEUED_QUERIES: '<string>',
TIMEOUT_MAX: '<string>',
TIMEOUT_DEFAULT: '<string>',
RESULTSET_SIZE: '<string>',
QUERY_MEM_CAPACITY: '<string>',
VKEY_MAX_ENTITY_COUNT: '<string>',
EFFECTS_THRESHOLD: '<string>',
CMD_INFO: '<string>',
MAX_INFO_QUERIES: '<string>',
DELTA_MAX_PENDING_CHANGES: '<string>',
IMPORT_FOLDER: '<string>'
},
disableExporter: true,
externalDomain: '<string>',
sentinel: {
replicas: 2,
componentDefinition: '<string>',
resources: {
limits: {cpu: '<string>', memory: '<string>'},
requests: {cpu: '<string>', memory: '<string>'}
},
services: [
{name: '<string>', serviceType: 'ClusterIP', annotations: {}, podService: true}
]
},
sharding: {
shardCount: 4,
replicas: 3,
resources: {
limits: {cpu: '<string>', memory: '<string>'},
requests: {cpu: '<string>', memory: '<string>'}
},
services: [
{name: '<string>', serviceType: 'ClusterIP', annotations: {}, podService: true}
]
},
terminationPolicy: 'DoNotTerminate',
labels: {},
annotations: {}
})
};
fetch('http://localhost:3000/api/clusters/{clusterName}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/clusters/{clusterName}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'replicas' => 2,
'version' => '<string>',
'componentDefinition' => '<string>',
'resources' => [
'limits' => [
'cpu' => '<string>',
'memory' => '<string>'
],
'requests' => [
'cpu' => '<string>',
'memory' => '<string>'
]
],
'services' => [
[
'name' => '<string>',
'serviceType' => 'ClusterIP',
'annotations' => [
],
'podService' => true
]
],
'modules' => [
'falkordb' => [
'config' => [
'THREAD_COUNT' => '<string>',
'CACHE_SIZE' => '<string>',
'OMP_THREAD_COUNT' => '<string>',
'NODE_CREATION_BUFFER' => '<string>',
'BOLT_PORT' => '<string>',
'MAX_QUEUED_QUERIES' => '<string>',
'TIMEOUT_MAX' => '<string>',
'TIMEOUT_DEFAULT' => '<string>',
'RESULTSET_SIZE' => '<string>',
'QUERY_MEM_CAPACITY' => '<string>',
'VKEY_MAX_ENTITY_COUNT' => '<string>',
'EFFECTS_THRESHOLD' => '<string>',
'CMD_INFO' => '<string>',
'MAX_INFO_QUERIES' => '<string>',
'DELTA_MAX_PENDING_CHANGES' => '<string>',
'IMPORT_FOLDER' => '<string>'
]
]
],
'falkordbArgs' => [
'THREAD_COUNT' => '<string>',
'CACHE_SIZE' => '<string>',
'OMP_THREAD_COUNT' => '<string>',
'NODE_CREATION_BUFFER' => '<string>',
'BOLT_PORT' => '<string>',
'MAX_QUEUED_QUERIES' => '<string>',
'TIMEOUT_MAX' => '<string>',
'TIMEOUT_DEFAULT' => '<string>',
'RESULTSET_SIZE' => '<string>',
'QUERY_MEM_CAPACITY' => '<string>',
'VKEY_MAX_ENTITY_COUNT' => '<string>',
'EFFECTS_THRESHOLD' => '<string>',
'CMD_INFO' => '<string>',
'MAX_INFO_QUERIES' => '<string>',
'DELTA_MAX_PENDING_CHANGES' => '<string>',
'IMPORT_FOLDER' => '<string>'
],
'disableExporter' => true,
'externalDomain' => '<string>',
'sentinel' => [
'replicas' => 2,
'componentDefinition' => '<string>',
'resources' => [
'limits' => [
'cpu' => '<string>',
'memory' => '<string>'
],
'requests' => [
'cpu' => '<string>',
'memory' => '<string>'
]
],
'services' => [
[
'name' => '<string>',
'serviceType' => 'ClusterIP',
'annotations' => [
],
'podService' => true
]
]
],
'sharding' => [
'shardCount' => 4,
'replicas' => 3,
'resources' => [
'limits' => [
'cpu' => '<string>',
'memory' => '<string>'
],
'requests' => [
'cpu' => '<string>',
'memory' => '<string>'
]
],
'services' => [
[
'name' => '<string>',
'serviceType' => 'ClusterIP',
'annotations' => [
],
'podService' => true
]
]
],
'terminationPolicy' => 'DoNotTerminate',
'labels' => [
],
'annotations' => [
]
]),
CURLOPT_COOKIE => "token=",
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:3000/api/clusters/{clusterName}"
payload := strings.NewReader("{\n \"replicas\": 2,\n \"version\": \"<string>\",\n \"componentDefinition\": \"<string>\",\n \"resources\": {\n \"limits\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n },\n \"requests\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n }\n },\n \"services\": [\n {\n \"name\": \"<string>\",\n \"serviceType\": \"ClusterIP\",\n \"annotations\": {},\n \"podService\": true\n }\n ],\n \"modules\": {\n \"falkordb\": {\n \"config\": {\n \"THREAD_COUNT\": \"<string>\",\n \"CACHE_SIZE\": \"<string>\",\n \"OMP_THREAD_COUNT\": \"<string>\",\n \"NODE_CREATION_BUFFER\": \"<string>\",\n \"BOLT_PORT\": \"<string>\",\n \"MAX_QUEUED_QUERIES\": \"<string>\",\n \"TIMEOUT_MAX\": \"<string>\",\n \"TIMEOUT_DEFAULT\": \"<string>\",\n \"RESULTSET_SIZE\": \"<string>\",\n \"QUERY_MEM_CAPACITY\": \"<string>\",\n \"VKEY_MAX_ENTITY_COUNT\": \"<string>\",\n \"EFFECTS_THRESHOLD\": \"<string>\",\n \"CMD_INFO\": \"<string>\",\n \"MAX_INFO_QUERIES\": \"<string>\",\n \"DELTA_MAX_PENDING_CHANGES\": \"<string>\",\n \"IMPORT_FOLDER\": \"<string>\"\n }\n }\n },\n \"falkordbArgs\": {\n \"THREAD_COUNT\": \"<string>\",\n \"CACHE_SIZE\": \"<string>\",\n \"OMP_THREAD_COUNT\": \"<string>\",\n \"NODE_CREATION_BUFFER\": \"<string>\",\n \"BOLT_PORT\": \"<string>\",\n \"MAX_QUEUED_QUERIES\": \"<string>\",\n \"TIMEOUT_MAX\": \"<string>\",\n \"TIMEOUT_DEFAULT\": \"<string>\",\n \"RESULTSET_SIZE\": \"<string>\",\n \"QUERY_MEM_CAPACITY\": \"<string>\",\n \"VKEY_MAX_ENTITY_COUNT\": \"<string>\",\n \"EFFECTS_THRESHOLD\": \"<string>\",\n \"CMD_INFO\": \"<string>\",\n \"MAX_INFO_QUERIES\": \"<string>\",\n \"DELTA_MAX_PENDING_CHANGES\": \"<string>\",\n \"IMPORT_FOLDER\": \"<string>\"\n },\n \"disableExporter\": true,\n \"externalDomain\": \"<string>\",\n \"sentinel\": {\n \"replicas\": 2,\n \"componentDefinition\": \"<string>\",\n \"resources\": {\n \"limits\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n },\n \"requests\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n }\n },\n \"services\": [\n {\n \"name\": \"<string>\",\n \"serviceType\": \"ClusterIP\",\n \"annotations\": {},\n \"podService\": true\n }\n ]\n },\n \"sharding\": {\n \"shardCount\": 4,\n \"replicas\": 3,\n \"resources\": {\n \"limits\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n },\n \"requests\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n }\n },\n \"services\": [\n {\n \"name\": \"<string>\",\n \"serviceType\": \"ClusterIP\",\n \"annotations\": {},\n \"podService\": true\n }\n ]\n },\n \"terminationPolicy\": \"DoNotTerminate\",\n \"labels\": {},\n \"annotations\": {}\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("cookie", "token=")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("http://localhost:3000/api/clusters/{clusterName}")
.header("cookie", "token=")
.header("Content-Type", "application/json")
.body("{\n \"replicas\": 2,\n \"version\": \"<string>\",\n \"componentDefinition\": \"<string>\",\n \"resources\": {\n \"limits\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n },\n \"requests\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n }\n },\n \"services\": [\n {\n \"name\": \"<string>\",\n \"serviceType\": \"ClusterIP\",\n \"annotations\": {},\n \"podService\": true\n }\n ],\n \"modules\": {\n \"falkordb\": {\n \"config\": {\n \"THREAD_COUNT\": \"<string>\",\n \"CACHE_SIZE\": \"<string>\",\n \"OMP_THREAD_COUNT\": \"<string>\",\n \"NODE_CREATION_BUFFER\": \"<string>\",\n \"BOLT_PORT\": \"<string>\",\n \"MAX_QUEUED_QUERIES\": \"<string>\",\n \"TIMEOUT_MAX\": \"<string>\",\n \"TIMEOUT_DEFAULT\": \"<string>\",\n \"RESULTSET_SIZE\": \"<string>\",\n \"QUERY_MEM_CAPACITY\": \"<string>\",\n \"VKEY_MAX_ENTITY_COUNT\": \"<string>\",\n \"EFFECTS_THRESHOLD\": \"<string>\",\n \"CMD_INFO\": \"<string>\",\n \"MAX_INFO_QUERIES\": \"<string>\",\n \"DELTA_MAX_PENDING_CHANGES\": \"<string>\",\n \"IMPORT_FOLDER\": \"<string>\"\n }\n }\n },\n \"falkordbArgs\": {\n \"THREAD_COUNT\": \"<string>\",\n \"CACHE_SIZE\": \"<string>\",\n \"OMP_THREAD_COUNT\": \"<string>\",\n \"NODE_CREATION_BUFFER\": \"<string>\",\n \"BOLT_PORT\": \"<string>\",\n \"MAX_QUEUED_QUERIES\": \"<string>\",\n \"TIMEOUT_MAX\": \"<string>\",\n \"TIMEOUT_DEFAULT\": \"<string>\",\n \"RESULTSET_SIZE\": \"<string>\",\n \"QUERY_MEM_CAPACITY\": \"<string>\",\n \"VKEY_MAX_ENTITY_COUNT\": \"<string>\",\n \"EFFECTS_THRESHOLD\": \"<string>\",\n \"CMD_INFO\": \"<string>\",\n \"MAX_INFO_QUERIES\": \"<string>\",\n \"DELTA_MAX_PENDING_CHANGES\": \"<string>\",\n \"IMPORT_FOLDER\": \"<string>\"\n },\n \"disableExporter\": true,\n \"externalDomain\": \"<string>\",\n \"sentinel\": {\n \"replicas\": 2,\n \"componentDefinition\": \"<string>\",\n \"resources\": {\n \"limits\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n },\n \"requests\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n }\n },\n \"services\": [\n {\n \"name\": \"<string>\",\n \"serviceType\": \"ClusterIP\",\n \"annotations\": {},\n \"podService\": true\n }\n ]\n },\n \"sharding\": {\n \"shardCount\": 4,\n \"replicas\": 3,\n \"resources\": {\n \"limits\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n },\n \"requests\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n }\n },\n \"services\": [\n {\n \"name\": \"<string>\",\n \"serviceType\": \"ClusterIP\",\n \"annotations\": {},\n \"podService\": true\n }\n ]\n },\n \"terminationPolicy\": \"DoNotTerminate\",\n \"labels\": {},\n \"annotations\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/clusters/{clusterName}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Patch.new(url)
request["cookie"] = 'token='
request["Content-Type"] = 'application/json'
request.body = "{\n \"replicas\": 2,\n \"version\": \"<string>\",\n \"componentDefinition\": \"<string>\",\n \"resources\": {\n \"limits\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n },\n \"requests\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n }\n },\n \"services\": [\n {\n \"name\": \"<string>\",\n \"serviceType\": \"ClusterIP\",\n \"annotations\": {},\n \"podService\": true\n }\n ],\n \"modules\": {\n \"falkordb\": {\n \"config\": {\n \"THREAD_COUNT\": \"<string>\",\n \"CACHE_SIZE\": \"<string>\",\n \"OMP_THREAD_COUNT\": \"<string>\",\n \"NODE_CREATION_BUFFER\": \"<string>\",\n \"BOLT_PORT\": \"<string>\",\n \"MAX_QUEUED_QUERIES\": \"<string>\",\n \"TIMEOUT_MAX\": \"<string>\",\n \"TIMEOUT_DEFAULT\": \"<string>\",\n \"RESULTSET_SIZE\": \"<string>\",\n \"QUERY_MEM_CAPACITY\": \"<string>\",\n \"VKEY_MAX_ENTITY_COUNT\": \"<string>\",\n \"EFFECTS_THRESHOLD\": \"<string>\",\n \"CMD_INFO\": \"<string>\",\n \"MAX_INFO_QUERIES\": \"<string>\",\n \"DELTA_MAX_PENDING_CHANGES\": \"<string>\",\n \"IMPORT_FOLDER\": \"<string>\"\n }\n }\n },\n \"falkordbArgs\": {\n \"THREAD_COUNT\": \"<string>\",\n \"CACHE_SIZE\": \"<string>\",\n \"OMP_THREAD_COUNT\": \"<string>\",\n \"NODE_CREATION_BUFFER\": \"<string>\",\n \"BOLT_PORT\": \"<string>\",\n \"MAX_QUEUED_QUERIES\": \"<string>\",\n \"TIMEOUT_MAX\": \"<string>\",\n \"TIMEOUT_DEFAULT\": \"<string>\",\n \"RESULTSET_SIZE\": \"<string>\",\n \"QUERY_MEM_CAPACITY\": \"<string>\",\n \"VKEY_MAX_ENTITY_COUNT\": \"<string>\",\n \"EFFECTS_THRESHOLD\": \"<string>\",\n \"CMD_INFO\": \"<string>\",\n \"MAX_INFO_QUERIES\": \"<string>\",\n \"DELTA_MAX_PENDING_CHANGES\": \"<string>\",\n \"IMPORT_FOLDER\": \"<string>\"\n },\n \"disableExporter\": true,\n \"externalDomain\": \"<string>\",\n \"sentinel\": {\n \"replicas\": 2,\n \"componentDefinition\": \"<string>\",\n \"resources\": {\n \"limits\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n },\n \"requests\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n }\n },\n \"services\": [\n {\n \"name\": \"<string>\",\n \"serviceType\": \"ClusterIP\",\n \"annotations\": {},\n \"podService\": true\n }\n ]\n },\n \"sharding\": {\n \"shardCount\": 4,\n \"replicas\": 3,\n \"resources\": {\n \"limits\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n },\n \"requests\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n }\n },\n \"services\": [\n {\n \"name\": \"<string>\",\n \"serviceType\": \"ClusterIP\",\n \"annotations\": {},\n \"podService\": true\n }\n ]\n },\n \"terminationPolicy\": \"DoNotTerminate\",\n \"labels\": {},\n \"annotations\": {}\n}"
response = http.request(request)
puts response.read_body{
"name": "<string>",
"namespace": "<string>",
"state": "Pending",
"replicas": 123,
"version": "<string>",
"creationTimestamp": "<string>",
"topology": "standalone",
"componentDefinition": "<string>",
"resources": {
"limits": {
"cpu": "<string>",
"memory": "<string>"
},
"requests": {
"cpu": "<string>",
"memory": "<string>"
}
},
"persistence": {
"enabled": true,
"storageClass": "<string>",
"size": "<string>",
"accessMode": "<string>"
},
"services": [
{
"name": "<string>",
"serviceType": "ClusterIP",
"annotations": {},
"podService": true
}
],
"modules": {
"falkordb": {
"config": {
"THREAD_COUNT": "<string>",
"CACHE_SIZE": "<string>",
"OMP_THREAD_COUNT": "<string>",
"NODE_CREATION_BUFFER": "<string>",
"BOLT_PORT": "<string>",
"MAX_QUEUED_QUERIES": "<string>",
"TIMEOUT_MAX": "<string>",
"TIMEOUT_DEFAULT": "<string>",
"RESULTSET_SIZE": "<string>",
"QUERY_MEM_CAPACITY": "<string>",
"VKEY_MAX_ENTITY_COUNT": "<string>",
"EFFECTS_THRESHOLD": "<string>",
"CMD_INFO": "<string>",
"MAX_INFO_QUERIES": "<string>",
"DELTA_MAX_PENDING_CHANGES": "<string>",
"IMPORT_FOLDER": "<string>"
}
}
},
"falkordbArgs": {
"THREAD_COUNT": "<string>",
"CACHE_SIZE": "<string>",
"OMP_THREAD_COUNT": "<string>",
"NODE_CREATION_BUFFER": "<string>",
"BOLT_PORT": "<string>",
"MAX_QUEUED_QUERIES": "<string>",
"TIMEOUT_MAX": "<string>",
"TIMEOUT_DEFAULT": "<string>",
"RESULTSET_SIZE": "<string>",
"QUERY_MEM_CAPACITY": "<string>",
"VKEY_MAX_ENTITY_COUNT": "<string>",
"EFFECTS_THRESHOLD": "<string>",
"CMD_INFO": "<string>",
"MAX_INFO_QUERIES": "<string>",
"DELTA_MAX_PENDING_CHANGES": "<string>",
"IMPORT_FOLDER": "<string>"
},
"sentinel": {
"enabled": true,
"replicas": 2,
"componentDefinition": "<string>",
"resources": {
"limits": {
"cpu": "<string>",
"memory": "<string>"
},
"requests": {
"cpu": "<string>",
"memory": "<string>"
}
},
"persistence": {
"enabled": true,
"storageClass": "<string>",
"size": "<string>",
"accessMode": "<string>"
},
"services": [
{
"name": "<string>",
"serviceType": "ClusterIP",
"annotations": {},
"podService": true
}
]
},
"sharding": {
"enabled": true,
"shardCount": 4,
"replicas": 3,
"resources": {
"limits": {
"cpu": "<string>",
"memory": "<string>"
},
"requests": {
"cpu": "<string>",
"memory": "<string>"
}
},
"persistence": {
"enabled": true,
"storageClass": "<string>",
"size": "<string>",
"accessMode": "<string>"
},
"services": [
{
"name": "<string>",
"serviceType": "ClusterIP",
"annotations": {},
"podService": true
}
]
},
"externalDomain": "<string>",
"labels": {},
"annotations": {},
"status": {
"state": "<string>",
"ready": true,
"replicas": 123,
"readyReplicas": 123,
"conditions": [
{
"type": "<string>",
"status": "<string>",
"reason": "<string>",
"message": "<string>",
"lastTransitionTime": "<string>"
}
]
}
}{
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}{
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}Update an existing cluster
curl --request PATCH \
--url http://localhost:3000/api/clusters/{clusterName} \
--header 'Content-Type: application/json' \
--cookie token= \
--data '
{
"replicas": 2,
"version": "<string>",
"componentDefinition": "<string>",
"resources": {
"limits": {
"cpu": "<string>",
"memory": "<string>"
},
"requests": {
"cpu": "<string>",
"memory": "<string>"
}
},
"services": [
{
"name": "<string>",
"serviceType": "ClusterIP",
"annotations": {},
"podService": true
}
],
"modules": {
"falkordb": {
"config": {
"THREAD_COUNT": "<string>",
"CACHE_SIZE": "<string>",
"OMP_THREAD_COUNT": "<string>",
"NODE_CREATION_BUFFER": "<string>",
"BOLT_PORT": "<string>",
"MAX_QUEUED_QUERIES": "<string>",
"TIMEOUT_MAX": "<string>",
"TIMEOUT_DEFAULT": "<string>",
"RESULTSET_SIZE": "<string>",
"QUERY_MEM_CAPACITY": "<string>",
"VKEY_MAX_ENTITY_COUNT": "<string>",
"EFFECTS_THRESHOLD": "<string>",
"CMD_INFO": "<string>",
"MAX_INFO_QUERIES": "<string>",
"DELTA_MAX_PENDING_CHANGES": "<string>",
"IMPORT_FOLDER": "<string>"
}
}
},
"falkordbArgs": {
"THREAD_COUNT": "<string>",
"CACHE_SIZE": "<string>",
"OMP_THREAD_COUNT": "<string>",
"NODE_CREATION_BUFFER": "<string>",
"BOLT_PORT": "<string>",
"MAX_QUEUED_QUERIES": "<string>",
"TIMEOUT_MAX": "<string>",
"TIMEOUT_DEFAULT": "<string>",
"RESULTSET_SIZE": "<string>",
"QUERY_MEM_CAPACITY": "<string>",
"VKEY_MAX_ENTITY_COUNT": "<string>",
"EFFECTS_THRESHOLD": "<string>",
"CMD_INFO": "<string>",
"MAX_INFO_QUERIES": "<string>",
"DELTA_MAX_PENDING_CHANGES": "<string>",
"IMPORT_FOLDER": "<string>"
},
"disableExporter": true,
"externalDomain": "<string>",
"sentinel": {
"replicas": 2,
"componentDefinition": "<string>",
"resources": {
"limits": {
"cpu": "<string>",
"memory": "<string>"
},
"requests": {
"cpu": "<string>",
"memory": "<string>"
}
},
"services": [
{
"name": "<string>",
"serviceType": "ClusterIP",
"annotations": {},
"podService": true
}
]
},
"sharding": {
"shardCount": 4,
"replicas": 3,
"resources": {
"limits": {
"cpu": "<string>",
"memory": "<string>"
},
"requests": {
"cpu": "<string>",
"memory": "<string>"
}
},
"services": [
{
"name": "<string>",
"serviceType": "ClusterIP",
"annotations": {},
"podService": true
}
]
},
"terminationPolicy": "DoNotTerminate",
"labels": {},
"annotations": {}
}
'import requests
url = "http://localhost:3000/api/clusters/{clusterName}"
payload = {
"replicas": 2,
"version": "<string>",
"componentDefinition": "<string>",
"resources": {
"limits": {
"cpu": "<string>",
"memory": "<string>"
},
"requests": {
"cpu": "<string>",
"memory": "<string>"
}
},
"services": [
{
"name": "<string>",
"serviceType": "ClusterIP",
"annotations": {},
"podService": True
}
],
"modules": { "falkordb": { "config": {
"THREAD_COUNT": "<string>",
"CACHE_SIZE": "<string>",
"OMP_THREAD_COUNT": "<string>",
"NODE_CREATION_BUFFER": "<string>",
"BOLT_PORT": "<string>",
"MAX_QUEUED_QUERIES": "<string>",
"TIMEOUT_MAX": "<string>",
"TIMEOUT_DEFAULT": "<string>",
"RESULTSET_SIZE": "<string>",
"QUERY_MEM_CAPACITY": "<string>",
"VKEY_MAX_ENTITY_COUNT": "<string>",
"EFFECTS_THRESHOLD": "<string>",
"CMD_INFO": "<string>",
"MAX_INFO_QUERIES": "<string>",
"DELTA_MAX_PENDING_CHANGES": "<string>",
"IMPORT_FOLDER": "<string>"
} } },
"falkordbArgs": {
"THREAD_COUNT": "<string>",
"CACHE_SIZE": "<string>",
"OMP_THREAD_COUNT": "<string>",
"NODE_CREATION_BUFFER": "<string>",
"BOLT_PORT": "<string>",
"MAX_QUEUED_QUERIES": "<string>",
"TIMEOUT_MAX": "<string>",
"TIMEOUT_DEFAULT": "<string>",
"RESULTSET_SIZE": "<string>",
"QUERY_MEM_CAPACITY": "<string>",
"VKEY_MAX_ENTITY_COUNT": "<string>",
"EFFECTS_THRESHOLD": "<string>",
"CMD_INFO": "<string>",
"MAX_INFO_QUERIES": "<string>",
"DELTA_MAX_PENDING_CHANGES": "<string>",
"IMPORT_FOLDER": "<string>"
},
"disableExporter": True,
"externalDomain": "<string>",
"sentinel": {
"replicas": 2,
"componentDefinition": "<string>",
"resources": {
"limits": {
"cpu": "<string>",
"memory": "<string>"
},
"requests": {
"cpu": "<string>",
"memory": "<string>"
}
},
"services": [
{
"name": "<string>",
"serviceType": "ClusterIP",
"annotations": {},
"podService": True
}
]
},
"sharding": {
"shardCount": 4,
"replicas": 3,
"resources": {
"limits": {
"cpu": "<string>",
"memory": "<string>"
},
"requests": {
"cpu": "<string>",
"memory": "<string>"
}
},
"services": [
{
"name": "<string>",
"serviceType": "ClusterIP",
"annotations": {},
"podService": True
}
]
},
"terminationPolicy": "DoNotTerminate",
"labels": {},
"annotations": {}
}
headers = {
"cookie": "token=",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {cookie: 'token=', 'Content-Type': 'application/json'},
body: JSON.stringify({
replicas: 2,
version: '<string>',
componentDefinition: '<string>',
resources: {
limits: {cpu: '<string>', memory: '<string>'},
requests: {cpu: '<string>', memory: '<string>'}
},
services: [
{name: '<string>', serviceType: 'ClusterIP', annotations: {}, podService: true}
],
modules: {
falkordb: {
config: {
THREAD_COUNT: '<string>',
CACHE_SIZE: '<string>',
OMP_THREAD_COUNT: '<string>',
NODE_CREATION_BUFFER: '<string>',
BOLT_PORT: '<string>',
MAX_QUEUED_QUERIES: '<string>',
TIMEOUT_MAX: '<string>',
TIMEOUT_DEFAULT: '<string>',
RESULTSET_SIZE: '<string>',
QUERY_MEM_CAPACITY: '<string>',
VKEY_MAX_ENTITY_COUNT: '<string>',
EFFECTS_THRESHOLD: '<string>',
CMD_INFO: '<string>',
MAX_INFO_QUERIES: '<string>',
DELTA_MAX_PENDING_CHANGES: '<string>',
IMPORT_FOLDER: '<string>'
}
}
},
falkordbArgs: {
THREAD_COUNT: '<string>',
CACHE_SIZE: '<string>',
OMP_THREAD_COUNT: '<string>',
NODE_CREATION_BUFFER: '<string>',
BOLT_PORT: '<string>',
MAX_QUEUED_QUERIES: '<string>',
TIMEOUT_MAX: '<string>',
TIMEOUT_DEFAULT: '<string>',
RESULTSET_SIZE: '<string>',
QUERY_MEM_CAPACITY: '<string>',
VKEY_MAX_ENTITY_COUNT: '<string>',
EFFECTS_THRESHOLD: '<string>',
CMD_INFO: '<string>',
MAX_INFO_QUERIES: '<string>',
DELTA_MAX_PENDING_CHANGES: '<string>',
IMPORT_FOLDER: '<string>'
},
disableExporter: true,
externalDomain: '<string>',
sentinel: {
replicas: 2,
componentDefinition: '<string>',
resources: {
limits: {cpu: '<string>', memory: '<string>'},
requests: {cpu: '<string>', memory: '<string>'}
},
services: [
{name: '<string>', serviceType: 'ClusterIP', annotations: {}, podService: true}
]
},
sharding: {
shardCount: 4,
replicas: 3,
resources: {
limits: {cpu: '<string>', memory: '<string>'},
requests: {cpu: '<string>', memory: '<string>'}
},
services: [
{name: '<string>', serviceType: 'ClusterIP', annotations: {}, podService: true}
]
},
terminationPolicy: 'DoNotTerminate',
labels: {},
annotations: {}
})
};
fetch('http://localhost:3000/api/clusters/{clusterName}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/clusters/{clusterName}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'replicas' => 2,
'version' => '<string>',
'componentDefinition' => '<string>',
'resources' => [
'limits' => [
'cpu' => '<string>',
'memory' => '<string>'
],
'requests' => [
'cpu' => '<string>',
'memory' => '<string>'
]
],
'services' => [
[
'name' => '<string>',
'serviceType' => 'ClusterIP',
'annotations' => [
],
'podService' => true
]
],
'modules' => [
'falkordb' => [
'config' => [
'THREAD_COUNT' => '<string>',
'CACHE_SIZE' => '<string>',
'OMP_THREAD_COUNT' => '<string>',
'NODE_CREATION_BUFFER' => '<string>',
'BOLT_PORT' => '<string>',
'MAX_QUEUED_QUERIES' => '<string>',
'TIMEOUT_MAX' => '<string>',
'TIMEOUT_DEFAULT' => '<string>',
'RESULTSET_SIZE' => '<string>',
'QUERY_MEM_CAPACITY' => '<string>',
'VKEY_MAX_ENTITY_COUNT' => '<string>',
'EFFECTS_THRESHOLD' => '<string>',
'CMD_INFO' => '<string>',
'MAX_INFO_QUERIES' => '<string>',
'DELTA_MAX_PENDING_CHANGES' => '<string>',
'IMPORT_FOLDER' => '<string>'
]
]
],
'falkordbArgs' => [
'THREAD_COUNT' => '<string>',
'CACHE_SIZE' => '<string>',
'OMP_THREAD_COUNT' => '<string>',
'NODE_CREATION_BUFFER' => '<string>',
'BOLT_PORT' => '<string>',
'MAX_QUEUED_QUERIES' => '<string>',
'TIMEOUT_MAX' => '<string>',
'TIMEOUT_DEFAULT' => '<string>',
'RESULTSET_SIZE' => '<string>',
'QUERY_MEM_CAPACITY' => '<string>',
'VKEY_MAX_ENTITY_COUNT' => '<string>',
'EFFECTS_THRESHOLD' => '<string>',
'CMD_INFO' => '<string>',
'MAX_INFO_QUERIES' => '<string>',
'DELTA_MAX_PENDING_CHANGES' => '<string>',
'IMPORT_FOLDER' => '<string>'
],
'disableExporter' => true,
'externalDomain' => '<string>',
'sentinel' => [
'replicas' => 2,
'componentDefinition' => '<string>',
'resources' => [
'limits' => [
'cpu' => '<string>',
'memory' => '<string>'
],
'requests' => [
'cpu' => '<string>',
'memory' => '<string>'
]
],
'services' => [
[
'name' => '<string>',
'serviceType' => 'ClusterIP',
'annotations' => [
],
'podService' => true
]
]
],
'sharding' => [
'shardCount' => 4,
'replicas' => 3,
'resources' => [
'limits' => [
'cpu' => '<string>',
'memory' => '<string>'
],
'requests' => [
'cpu' => '<string>',
'memory' => '<string>'
]
],
'services' => [
[
'name' => '<string>',
'serviceType' => 'ClusterIP',
'annotations' => [
],
'podService' => true
]
]
],
'terminationPolicy' => 'DoNotTerminate',
'labels' => [
],
'annotations' => [
]
]),
CURLOPT_COOKIE => "token=",
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:3000/api/clusters/{clusterName}"
payload := strings.NewReader("{\n \"replicas\": 2,\n \"version\": \"<string>\",\n \"componentDefinition\": \"<string>\",\n \"resources\": {\n \"limits\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n },\n \"requests\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n }\n },\n \"services\": [\n {\n \"name\": \"<string>\",\n \"serviceType\": \"ClusterIP\",\n \"annotations\": {},\n \"podService\": true\n }\n ],\n \"modules\": {\n \"falkordb\": {\n \"config\": {\n \"THREAD_COUNT\": \"<string>\",\n \"CACHE_SIZE\": \"<string>\",\n \"OMP_THREAD_COUNT\": \"<string>\",\n \"NODE_CREATION_BUFFER\": \"<string>\",\n \"BOLT_PORT\": \"<string>\",\n \"MAX_QUEUED_QUERIES\": \"<string>\",\n \"TIMEOUT_MAX\": \"<string>\",\n \"TIMEOUT_DEFAULT\": \"<string>\",\n \"RESULTSET_SIZE\": \"<string>\",\n \"QUERY_MEM_CAPACITY\": \"<string>\",\n \"VKEY_MAX_ENTITY_COUNT\": \"<string>\",\n \"EFFECTS_THRESHOLD\": \"<string>\",\n \"CMD_INFO\": \"<string>\",\n \"MAX_INFO_QUERIES\": \"<string>\",\n \"DELTA_MAX_PENDING_CHANGES\": \"<string>\",\n \"IMPORT_FOLDER\": \"<string>\"\n }\n }\n },\n \"falkordbArgs\": {\n \"THREAD_COUNT\": \"<string>\",\n \"CACHE_SIZE\": \"<string>\",\n \"OMP_THREAD_COUNT\": \"<string>\",\n \"NODE_CREATION_BUFFER\": \"<string>\",\n \"BOLT_PORT\": \"<string>\",\n \"MAX_QUEUED_QUERIES\": \"<string>\",\n \"TIMEOUT_MAX\": \"<string>\",\n \"TIMEOUT_DEFAULT\": \"<string>\",\n \"RESULTSET_SIZE\": \"<string>\",\n \"QUERY_MEM_CAPACITY\": \"<string>\",\n \"VKEY_MAX_ENTITY_COUNT\": \"<string>\",\n \"EFFECTS_THRESHOLD\": \"<string>\",\n \"CMD_INFO\": \"<string>\",\n \"MAX_INFO_QUERIES\": \"<string>\",\n \"DELTA_MAX_PENDING_CHANGES\": \"<string>\",\n \"IMPORT_FOLDER\": \"<string>\"\n },\n \"disableExporter\": true,\n \"externalDomain\": \"<string>\",\n \"sentinel\": {\n \"replicas\": 2,\n \"componentDefinition\": \"<string>\",\n \"resources\": {\n \"limits\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n },\n \"requests\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n }\n },\n \"services\": [\n {\n \"name\": \"<string>\",\n \"serviceType\": \"ClusterIP\",\n \"annotations\": {},\n \"podService\": true\n }\n ]\n },\n \"sharding\": {\n \"shardCount\": 4,\n \"replicas\": 3,\n \"resources\": {\n \"limits\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n },\n \"requests\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n }\n },\n \"services\": [\n {\n \"name\": \"<string>\",\n \"serviceType\": \"ClusterIP\",\n \"annotations\": {},\n \"podService\": true\n }\n ]\n },\n \"terminationPolicy\": \"DoNotTerminate\",\n \"labels\": {},\n \"annotations\": {}\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("cookie", "token=")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("http://localhost:3000/api/clusters/{clusterName}")
.header("cookie", "token=")
.header("Content-Type", "application/json")
.body("{\n \"replicas\": 2,\n \"version\": \"<string>\",\n \"componentDefinition\": \"<string>\",\n \"resources\": {\n \"limits\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n },\n \"requests\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n }\n },\n \"services\": [\n {\n \"name\": \"<string>\",\n \"serviceType\": \"ClusterIP\",\n \"annotations\": {},\n \"podService\": true\n }\n ],\n \"modules\": {\n \"falkordb\": {\n \"config\": {\n \"THREAD_COUNT\": \"<string>\",\n \"CACHE_SIZE\": \"<string>\",\n \"OMP_THREAD_COUNT\": \"<string>\",\n \"NODE_CREATION_BUFFER\": \"<string>\",\n \"BOLT_PORT\": \"<string>\",\n \"MAX_QUEUED_QUERIES\": \"<string>\",\n \"TIMEOUT_MAX\": \"<string>\",\n \"TIMEOUT_DEFAULT\": \"<string>\",\n \"RESULTSET_SIZE\": \"<string>\",\n \"QUERY_MEM_CAPACITY\": \"<string>\",\n \"VKEY_MAX_ENTITY_COUNT\": \"<string>\",\n \"EFFECTS_THRESHOLD\": \"<string>\",\n \"CMD_INFO\": \"<string>\",\n \"MAX_INFO_QUERIES\": \"<string>\",\n \"DELTA_MAX_PENDING_CHANGES\": \"<string>\",\n \"IMPORT_FOLDER\": \"<string>\"\n }\n }\n },\n \"falkordbArgs\": {\n \"THREAD_COUNT\": \"<string>\",\n \"CACHE_SIZE\": \"<string>\",\n \"OMP_THREAD_COUNT\": \"<string>\",\n \"NODE_CREATION_BUFFER\": \"<string>\",\n \"BOLT_PORT\": \"<string>\",\n \"MAX_QUEUED_QUERIES\": \"<string>\",\n \"TIMEOUT_MAX\": \"<string>\",\n \"TIMEOUT_DEFAULT\": \"<string>\",\n \"RESULTSET_SIZE\": \"<string>\",\n \"QUERY_MEM_CAPACITY\": \"<string>\",\n \"VKEY_MAX_ENTITY_COUNT\": \"<string>\",\n \"EFFECTS_THRESHOLD\": \"<string>\",\n \"CMD_INFO\": \"<string>\",\n \"MAX_INFO_QUERIES\": \"<string>\",\n \"DELTA_MAX_PENDING_CHANGES\": \"<string>\",\n \"IMPORT_FOLDER\": \"<string>\"\n },\n \"disableExporter\": true,\n \"externalDomain\": \"<string>\",\n \"sentinel\": {\n \"replicas\": 2,\n \"componentDefinition\": \"<string>\",\n \"resources\": {\n \"limits\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n },\n \"requests\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n }\n },\n \"services\": [\n {\n \"name\": \"<string>\",\n \"serviceType\": \"ClusterIP\",\n \"annotations\": {},\n \"podService\": true\n }\n ]\n },\n \"sharding\": {\n \"shardCount\": 4,\n \"replicas\": 3,\n \"resources\": {\n \"limits\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n },\n \"requests\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n }\n },\n \"services\": [\n {\n \"name\": \"<string>\",\n \"serviceType\": \"ClusterIP\",\n \"annotations\": {},\n \"podService\": true\n }\n ]\n },\n \"terminationPolicy\": \"DoNotTerminate\",\n \"labels\": {},\n \"annotations\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/clusters/{clusterName}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Patch.new(url)
request["cookie"] = 'token='
request["Content-Type"] = 'application/json'
request.body = "{\n \"replicas\": 2,\n \"version\": \"<string>\",\n \"componentDefinition\": \"<string>\",\n \"resources\": {\n \"limits\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n },\n \"requests\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n }\n },\n \"services\": [\n {\n \"name\": \"<string>\",\n \"serviceType\": \"ClusterIP\",\n \"annotations\": {},\n \"podService\": true\n }\n ],\n \"modules\": {\n \"falkordb\": {\n \"config\": {\n \"THREAD_COUNT\": \"<string>\",\n \"CACHE_SIZE\": \"<string>\",\n \"OMP_THREAD_COUNT\": \"<string>\",\n \"NODE_CREATION_BUFFER\": \"<string>\",\n \"BOLT_PORT\": \"<string>\",\n \"MAX_QUEUED_QUERIES\": \"<string>\",\n \"TIMEOUT_MAX\": \"<string>\",\n \"TIMEOUT_DEFAULT\": \"<string>\",\n \"RESULTSET_SIZE\": \"<string>\",\n \"QUERY_MEM_CAPACITY\": \"<string>\",\n \"VKEY_MAX_ENTITY_COUNT\": \"<string>\",\n \"EFFECTS_THRESHOLD\": \"<string>\",\n \"CMD_INFO\": \"<string>\",\n \"MAX_INFO_QUERIES\": \"<string>\",\n \"DELTA_MAX_PENDING_CHANGES\": \"<string>\",\n \"IMPORT_FOLDER\": \"<string>\"\n }\n }\n },\n \"falkordbArgs\": {\n \"THREAD_COUNT\": \"<string>\",\n \"CACHE_SIZE\": \"<string>\",\n \"OMP_THREAD_COUNT\": \"<string>\",\n \"NODE_CREATION_BUFFER\": \"<string>\",\n \"BOLT_PORT\": \"<string>\",\n \"MAX_QUEUED_QUERIES\": \"<string>\",\n \"TIMEOUT_MAX\": \"<string>\",\n \"TIMEOUT_DEFAULT\": \"<string>\",\n \"RESULTSET_SIZE\": \"<string>\",\n \"QUERY_MEM_CAPACITY\": \"<string>\",\n \"VKEY_MAX_ENTITY_COUNT\": \"<string>\",\n \"EFFECTS_THRESHOLD\": \"<string>\",\n \"CMD_INFO\": \"<string>\",\n \"MAX_INFO_QUERIES\": \"<string>\",\n \"DELTA_MAX_PENDING_CHANGES\": \"<string>\",\n \"IMPORT_FOLDER\": \"<string>\"\n },\n \"disableExporter\": true,\n \"externalDomain\": \"<string>\",\n \"sentinel\": {\n \"replicas\": 2,\n \"componentDefinition\": \"<string>\",\n \"resources\": {\n \"limits\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n },\n \"requests\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n }\n },\n \"services\": [\n {\n \"name\": \"<string>\",\n \"serviceType\": \"ClusterIP\",\n \"annotations\": {},\n \"podService\": true\n }\n ]\n },\n \"sharding\": {\n \"shardCount\": 4,\n \"replicas\": 3,\n \"resources\": {\n \"limits\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n },\n \"requests\": {\n \"cpu\": \"<string>\",\n \"memory\": \"<string>\"\n }\n },\n \"services\": [\n {\n \"name\": \"<string>\",\n \"serviceType\": \"ClusterIP\",\n \"annotations\": {},\n \"podService\": true\n }\n ]\n },\n \"terminationPolicy\": \"DoNotTerminate\",\n \"labels\": {},\n \"annotations\": {}\n}"
response = http.request(request)
puts response.read_body{
"name": "<string>",
"namespace": "<string>",
"state": "Pending",
"replicas": 123,
"version": "<string>",
"creationTimestamp": "<string>",
"topology": "standalone",
"componentDefinition": "<string>",
"resources": {
"limits": {
"cpu": "<string>",
"memory": "<string>"
},
"requests": {
"cpu": "<string>",
"memory": "<string>"
}
},
"persistence": {
"enabled": true,
"storageClass": "<string>",
"size": "<string>",
"accessMode": "<string>"
},
"services": [
{
"name": "<string>",
"serviceType": "ClusterIP",
"annotations": {},
"podService": true
}
],
"modules": {
"falkordb": {
"config": {
"THREAD_COUNT": "<string>",
"CACHE_SIZE": "<string>",
"OMP_THREAD_COUNT": "<string>",
"NODE_CREATION_BUFFER": "<string>",
"BOLT_PORT": "<string>",
"MAX_QUEUED_QUERIES": "<string>",
"TIMEOUT_MAX": "<string>",
"TIMEOUT_DEFAULT": "<string>",
"RESULTSET_SIZE": "<string>",
"QUERY_MEM_CAPACITY": "<string>",
"VKEY_MAX_ENTITY_COUNT": "<string>",
"EFFECTS_THRESHOLD": "<string>",
"CMD_INFO": "<string>",
"MAX_INFO_QUERIES": "<string>",
"DELTA_MAX_PENDING_CHANGES": "<string>",
"IMPORT_FOLDER": "<string>"
}
}
},
"falkordbArgs": {
"THREAD_COUNT": "<string>",
"CACHE_SIZE": "<string>",
"OMP_THREAD_COUNT": "<string>",
"NODE_CREATION_BUFFER": "<string>",
"BOLT_PORT": "<string>",
"MAX_QUEUED_QUERIES": "<string>",
"TIMEOUT_MAX": "<string>",
"TIMEOUT_DEFAULT": "<string>",
"RESULTSET_SIZE": "<string>",
"QUERY_MEM_CAPACITY": "<string>",
"VKEY_MAX_ENTITY_COUNT": "<string>",
"EFFECTS_THRESHOLD": "<string>",
"CMD_INFO": "<string>",
"MAX_INFO_QUERIES": "<string>",
"DELTA_MAX_PENDING_CHANGES": "<string>",
"IMPORT_FOLDER": "<string>"
},
"sentinel": {
"enabled": true,
"replicas": 2,
"componentDefinition": "<string>",
"resources": {
"limits": {
"cpu": "<string>",
"memory": "<string>"
},
"requests": {
"cpu": "<string>",
"memory": "<string>"
}
},
"persistence": {
"enabled": true,
"storageClass": "<string>",
"size": "<string>",
"accessMode": "<string>"
},
"services": [
{
"name": "<string>",
"serviceType": "ClusterIP",
"annotations": {},
"podService": true
}
]
},
"sharding": {
"enabled": true,
"shardCount": 4,
"replicas": 3,
"resources": {
"limits": {
"cpu": "<string>",
"memory": "<string>"
},
"requests": {
"cpu": "<string>",
"memory": "<string>"
}
},
"persistence": {
"enabled": true,
"storageClass": "<string>",
"size": "<string>",
"accessMode": "<string>"
},
"services": [
{
"name": "<string>",
"serviceType": "ClusterIP",
"annotations": {},
"podService": true
}
]
},
"externalDomain": "<string>",
"labels": {},
"annotations": {},
"status": {
"state": "<string>",
"ready": true,
"replicas": 123,
"readyReplicas": 123,
"conditions": [
{
"type": "<string>",
"status": "<string>",
"reason": "<string>",
"message": "<string>",
"lastTransitionTime": "<string>"
}
]
}
}{
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}{
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}Authorizations
JWT token stored in HTTP-only cookie
Path Parameters
Query Parameters
namespace is required
1Body
x >= 111Show child attributes
Show child attributes
Show child attributes
Show child attributes
Extra ClusterIP / NodePort / LoadBalancer services for the main FalkorDB component.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
FalkorDB configuration key-value map that will be encoded into the FALKORDB_ARGS environment variable.
Show child attributes
Show child attributes
DNS domain under which per-pod records are published, e.g. 'db.internal.example.com'. Requires routable pod IPs and an ExternalDNS instance.
1 - 253^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$Show child attributes
Show child attributes
Show child attributes
Show child attributes
DoNotTerminate Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
Default Response
Pending standalone Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
FalkorDB configuration key-value map that will be encoded into the FALKORDB_ARGS environment variable.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
DNS domain under which per-pod records are published, e.g. 'db.internal.example.com'. Requires routable pod IPs and an ExternalDNS instance.
1 - 253^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes