Retrieve information of all the connected data plane nodes.
curl --request GET \
--url https://{tenant}/dataplanes \
--header 'X-Tyk-Authorization: <api-key>' \
--header 'x-tyk-authorization: <x-tyk-authorization>'import requests
url = "https://{tenant}/dataplanes"
headers = {
"x-tyk-authorization": "<x-tyk-authorization>",
"X-Tyk-Authorization": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'x-tyk-authorization': '<x-tyk-authorization>',
'X-Tyk-Authorization': '<api-key>'
}
};
fetch('https://{tenant}/dataplanes', 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://{tenant}/dataplanes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Tyk-Authorization: <api-key>",
"x-tyk-authorization: <x-tyk-authorization>"
],
]);
$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://{tenant}/dataplanes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-tyk-authorization", "<x-tyk-authorization>")
req.Header.Add("X-Tyk-Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{tenant}/dataplanes")
.header("x-tyk-authorization", "<x-tyk-authorization>")
.header("X-Tyk-Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant}/dataplanes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-tyk-authorization"] = '<x-tyk-authorization>'
request["X-Tyk-Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{}{
"error": "Attempted administrative access with invalid or missing key!"
}Data Planes
Retrieve information of all the connected data plane nodes.
Provides a list of all the data plane nodes connected to MDCB. Data plane nodes are Tyk Gateways that make your APIs available to your consumers. MDCB offers centralised management of your data plane nodes. This endpoint offers metadata and status for all connected data plane nodes, allowing for monitoring and troubleshooting.
GET
/
dataplanes
Retrieve information of all the connected data plane nodes.
curl --request GET \
--url https://{tenant}/dataplanes \
--header 'X-Tyk-Authorization: <api-key>' \
--header 'x-tyk-authorization: <x-tyk-authorization>'import requests
url = "https://{tenant}/dataplanes"
headers = {
"x-tyk-authorization": "<x-tyk-authorization>",
"X-Tyk-Authorization": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'x-tyk-authorization': '<x-tyk-authorization>',
'X-Tyk-Authorization': '<api-key>'
}
};
fetch('https://{tenant}/dataplanes', 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://{tenant}/dataplanes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Tyk-Authorization: <api-key>",
"x-tyk-authorization: <x-tyk-authorization>"
],
]);
$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://{tenant}/dataplanes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-tyk-authorization", "<x-tyk-authorization>")
req.Header.Add("X-Tyk-Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{tenant}/dataplanes")
.header("x-tyk-authorization", "<x-tyk-authorization>")
.header("X-Tyk-Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant}/dataplanes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-tyk-authorization"] = '<x-tyk-authorization>'
request["X-Tyk-Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{}{
"error": "Attempted administrative access with invalid or missing key!"
}Was this page helpful?
⌘I