Get Instances Endpoint
curl --request GET \
--url https://ccnnnnnn.cyrisma.com/app/partner/instances/infoimport requests
url = "https://ccnnnnnn.cyrisma.com/app/partner/instances/info"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://ccnnnnnn.cyrisma.com/app/partner/instances/info', 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://ccnnnnnn.cyrisma.com/app/partner/instances/info",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://ccnnnnnn.cyrisma.com/app/partner/instances/info"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://ccnnnnnn.cyrisma.com/app/partner/instances/info")
.asString();require 'uri'
require 'net/http'
url = URI("https://ccnnnnnn.cyrisma.com/app/partner/instances/info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"instance_id": "<string>",
"name": "<string>",
"short_name": "<string>",
"parent_id": "<string>",
"hierarchy": "<string>",
"instance_type": "<string>",
"is_consulting": true,
"number_of_endpoints": 123,
"url": "<string>",
"tenant_id": "<string>",
"agent_key": "<string>",
"mfa": "<string>"
}
]{
"error": "<string>",
"error_description": "<string>"
}{
"error": "<string>",
"error_description": "<string>"
}{
"error": "<string>",
"error_description": "<string>"
}Instances
Get Instances Endpoint
This will retrieve the entire existing provisioned structure of organizations and instances within the CYRISMA platform.
Required headers:
Authorization: access_token {token}
GET
/
partner
/
instances
/
info
Get Instances Endpoint
curl --request GET \
--url https://ccnnnnnn.cyrisma.com/app/partner/instances/infoimport requests
url = "https://ccnnnnnn.cyrisma.com/app/partner/instances/info"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://ccnnnnnn.cyrisma.com/app/partner/instances/info', 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://ccnnnnnn.cyrisma.com/app/partner/instances/info",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://ccnnnnnn.cyrisma.com/app/partner/instances/info"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://ccnnnnnn.cyrisma.com/app/partner/instances/info")
.asString();require 'uri'
require 'net/http'
url = URI("https://ccnnnnnn.cyrisma.com/app/partner/instances/info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"instance_id": "<string>",
"name": "<string>",
"short_name": "<string>",
"parent_id": "<string>",
"hierarchy": "<string>",
"instance_type": "<string>",
"is_consulting": true,
"number_of_endpoints": 123,
"url": "<string>",
"tenant_id": "<string>",
"agent_key": "<string>",
"mfa": "<string>"
}
]{
"error": "<string>",
"error_description": "<string>"
}{
"error": "<string>",
"error_description": "<string>"
}{
"error": "<string>",
"error_description": "<string>"
}Response
OK
