List canvas datasets
import requests
url = "https://platform.ankra.app/api/v1/org/canvas-datasets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/canvas-datasets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/canvas-datasets \
--header 'Authorization: Bearer <token>'{
"items": [
{
"id": "<string>",
"title": "<string>",
"description": "<string>",
"shape": "timeseries",
"parameters": [
{
"name": "<string>",
"kind": "cluster",
"required": true,
"options": [
"<string>"
]
}
],
"source": "<string>",
"unit": "<string>"
}
]
}Canvas Datasets
List canvas datasets
Lists the fixed, named datasets a canvas dashboard element can bind to, with the shape each answers and the parameters it takes. The queries behind them are owned by the platform; no query text is ever accepted.
GET
/
api
/
v1
/
org
/
canvas-datasets
List canvas datasets
import requests
url = "https://platform.ankra.app/api/v1/org/canvas-datasets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/canvas-datasets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/canvas-datasets \
--header 'Authorization: Bearer <token>'{
"items": [
{
"id": "<string>",
"title": "<string>",
"description": "<string>",
"shape": "timeseries",
"parameters": [
{
"name": "<string>",
"kind": "cluster",
"required": true,
"options": [
"<string>"
]
}
],
"source": "<string>",
"unit": "<string>"
}
]
}