Connect or disconnect cloud account
curl --request POST \
--url https://api.omnistrate.cloud/2022-09-01-00/resource-instance/account-config/{id} \
--header 'Content-Type: application/json' \
--header 'Cookie: <cookie>' \
--data '
{
"serviceId": "<string>",
"subscriptionId": "<string>",
"setConnection": true
}
'import requests
url = "https://api.omnistrate.cloud/2022-09-01-00/resource-instance/account-config/{id}"
payload = {
"serviceId": "<string>",
"subscriptionId": "<string>",
"setConnection": True
}
headers = {
"Cookie": "<cookie>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Cookie: '<cookie>', 'Content-Type': 'application/json'},
body: JSON.stringify({serviceId: '<string>', subscriptionId: '<string>', setConnection: true})
};
fetch('https://api.omnistrate.cloud/2022-09-01-00/resource-instance/account-config/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.omnistrate.cloud/2022-09-01-00/resource-instance/account-config/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'serviceId' => '<string>',
'subscriptionId' => '<string>',
'setConnection' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Cookie: <cookie>"
],
]);
$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 := "https://api.omnistrate.cloud/2022-09-01-00/resource-instance/account-config/{id}"
payload := strings.NewReader("{\n \"serviceId\": \"<string>\",\n \"subscriptionId\": \"<string>\",\n \"setConnection\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Cookie", "<cookie>")
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.post("https://api.omnistrate.cloud/2022-09-01-00/resource-instance/account-config/{id}")
.header("Cookie", "<cookie>")
.header("Content-Type", "application/json")
.body("{\n \"serviceId\": \"<string>\",\n \"subscriptionId\": \"<string>\",\n \"setConnection\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.omnistrate.cloud/2022-09-01-00/resource-instance/account-config/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Cookie"] = '<cookie>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"serviceId\": \"<string>\",\n \"subscriptionId\": \"<string>\",\n \"setConnection\": true\n}"
response = http.request(request)
puts response.read_bodyCloud accounts
Connect or disconnect cloud account
Reconnect a cloud account or temporarily disconnect it from FalkorDB.
POST
/
2022-09-01-00
/
resource-instance
/
account-config
/
{id}
Connect or disconnect cloud account
curl --request POST \
--url https://api.omnistrate.cloud/2022-09-01-00/resource-instance/account-config/{id} \
--header 'Content-Type: application/json' \
--header 'Cookie: <cookie>' \
--data '
{
"serviceId": "<string>",
"subscriptionId": "<string>",
"setConnection": true
}
'import requests
url = "https://api.omnistrate.cloud/2022-09-01-00/resource-instance/account-config/{id}"
payload = {
"serviceId": "<string>",
"subscriptionId": "<string>",
"setConnection": True
}
headers = {
"Cookie": "<cookie>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Cookie: '<cookie>', 'Content-Type': 'application/json'},
body: JSON.stringify({serviceId: '<string>', subscriptionId: '<string>', setConnection: true})
};
fetch('https://api.omnistrate.cloud/2022-09-01-00/resource-instance/account-config/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.omnistrate.cloud/2022-09-01-00/resource-instance/account-config/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'serviceId' => '<string>',
'subscriptionId' => '<string>',
'setConnection' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Cookie: <cookie>"
],
]);
$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 := "https://api.omnistrate.cloud/2022-09-01-00/resource-instance/account-config/{id}"
payload := strings.NewReader("{\n \"serviceId\": \"<string>\",\n \"subscriptionId\": \"<string>\",\n \"setConnection\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Cookie", "<cookie>")
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.post("https://api.omnistrate.cloud/2022-09-01-00/resource-instance/account-config/{id}")
.header("Cookie", "<cookie>")
.header("Content-Type", "application/json")
.body("{\n \"serviceId\": \"<string>\",\n \"subscriptionId\": \"<string>\",\n \"setConnection\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.omnistrate.cloud/2022-09-01-00/resource-instance/account-config/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Cookie"] = '<cookie>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"serviceId\": \"<string>\",\n \"subscriptionId\": \"<string>\",\n \"setConnection\": true\n}"
response = http.request(request)
puts response.read_bodyControls whether FalkorDB maintains an active connection to your cloud account. Disconnecting stops FalkorDB from managing infrastructure in the account without deleting the registration; reconnecting resumes management.
Disconnecting moves the instance through
DISCONNECTING to DISCONNECTED. Reconnecting moves it through CONNECTING back to READY.Authorization
Path parameters
string
required
ID of the cloud account deployment instance.
Body
string
required
ID of the service the cloud account belongs to.
string
required
Subscription that owns the cloud account.
boolean
true to connect, false to disconnect.Disconnect
{
"serviceId": "s-abc123",
"subscriptionId": "sub-abc123",
"setConnection": false
}
Response
Returns200 OK with an empty body.
Errors
See Error for the error response shape.⌘I