cURL
curl --request POST \
--url https://app.cysmiq.com/api/v1/{tenant_slug}/kubernetes-collector/jobs/next \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.cysmiq.com/api/v1/{tenant_slug}/kubernetes-collector/jobs/next"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.cysmiq.com/api/v1/{tenant_slug}/kubernetes-collector/jobs/next', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"schema_version": 1,
"job_type": "COLLECT_KUBERNETES",
"tenant_id": "<string>",
"run_id": "<string>",
"lease_token": "<string>",
"connection_id": "<string>",
"provider": "kubernetes",
"provider_realm": "kubernetes",
"cluster_address": "<string>",
"scope": {
"type": "cluster",
"key": "<string>",
"provider_id": "<string>",
"name": "<string>"
},
"cloud": {
"provider": "<string>",
"provider_realm": "<string>",
"cluster_address": "<string>",
"scope": [
"<unknown>"
],
"location": {
"type": "<string>",
"key": "<string>",
"name": "<string>"
}
}
}KubernetesCollector
Post kubernetes collectorjobsnext
POST
/
{tenant_slug}
/
kubernetes-collector
/
jobs
/
next
cURL
curl --request POST \
--url https://app.cysmiq.com/api/v1/{tenant_slug}/kubernetes-collector/jobs/next \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.cysmiq.com/api/v1/{tenant_slug}/kubernetes-collector/jobs/next"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.cysmiq.com/api/v1/{tenant_slug}/kubernetes-collector/jobs/next', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"schema_version": 1,
"job_type": "COLLECT_KUBERNETES",
"tenant_id": "<string>",
"run_id": "<string>",
"lease_token": "<string>",
"connection_id": "<string>",
"provider": "kubernetes",
"provider_realm": "kubernetes",
"cluster_address": "<string>",
"scope": {
"type": "cluster",
"key": "<string>",
"provider_id": "<string>",
"name": "<string>"
},
"cloud": {
"provider": "<string>",
"provider_realm": "<string>",
"cluster_address": "<string>",
"scope": [
"<unknown>"
],
"location": {
"type": "<string>",
"key": "<string>",
"name": "<string>"
}
}
}Authorizations
Response
Was this page helpful?