import requests
url = "https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/log-source/connect-detected"
payload = { "fingerprint": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({fingerprint: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/log-source/connect-detected', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/log-source/connect-detected \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fingerprint": "<string>"
}
'{
"endpoint_host": "<string>",
"health": {
"checked_at": "2023-11-07T05:31:56Z",
"probe_sample_count": 123,
"status": "<string>"
},
"provider": "<string>",
"settings_path": "<string>",
"addon_name": "<string>",
"credential_name": "<string>",
"service_name": "<string>",
"service_namespace": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}Connect the detected log source
Connects the log store Ankra detected in the cluster as the cluster’s log source. Send the fingerprint of the candidate you read from the detected log source route: Ankra derives the candidate again, refuses with 409 when it changed or when the cluster already has a log source, runs a read-only probe against the endpoint through the cluster’s agent, and only then registers the source. The request carries no credential and no endpoint: the detected store is an in-cluster Service the agent reaches directly. A log store that needs a credential is not connected by this route. Requires clusters.write on the cluster, and an organisation admin.
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/log-source/connect-detected"
payload = { "fingerprint": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({fingerprint: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/log-source/connect-detected', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/log-source/connect-detected \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fingerprint": "<string>"
}
'{
"endpoint_host": "<string>",
"health": {
"checked_at": "2023-11-07T05:31:56Z",
"probe_sample_count": 123,
"status": "<string>"
},
"provider": "<string>",
"settings_path": "<string>",
"addon_name": "<string>",
"credential_name": "<string>",
"service_name": "<string>",
"service_namespace": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
PAT organisation override.
Path Parameters
Body
The detected candidate's fingerprint as you read it.