Read preserved file differences (browser session)
import requests
url = "https://api.platform.ankra.app/org/clusters/{cluster_id}/gitops/preserved-paths/diff"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/clusters/{cluster_id}/gitops/preserved-paths/diff', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/clusters/{cluster_id}/gitops/preserved-paths/diff \
--cookie ankra_session={
"path": "<string>",
"head_content_hash": "<string>",
"render_content_hash": "<string>",
"head_commit_sha": "<string>",
"status": "computed",
"changes": [
{
"path": "<string>",
"change": "added",
"git_value": "<string>",
"ankra_value": "<string>",
"value_masked": true
}
],
"total": 1,
"offset": 1,
"has_more": true,
"next_cursor": "<string>",
"structural_diff_values": "revealed",
"values_withheld_reason": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Clusters
Read preserved file differences (browser session)
Read a bounded page beyond the listing preview. Continue with next_cursor until has_more is false. Cursors bind the cluster, path, file hashes, commit, stored diff rules and reveal permission. Values follow the existing kubernetes.secrets_reveal and masking boundary. Incomplete or unexamined metadata returns 409; restart when a snapshot changes.
GET
/
org
/
clusters
/
{cluster_id}
/
gitops
/
preserved-paths
/
diff
Read preserved file differences (browser session)
import requests
url = "https://api.platform.ankra.app/org/clusters/{cluster_id}/gitops/preserved-paths/diff"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/clusters/{cluster_id}/gitops/preserved-paths/diff', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/clusters/{cluster_id}/gitops/preserved-paths/diff \
--cookie ankra_session={
"path": "<string>",
"head_content_hash": "<string>",
"render_content_hash": "<string>",
"head_commit_sha": "<string>",
"status": "computed",
"changes": [
{
"path": "<string>",
"change": "added",
"git_value": "<string>",
"ankra_value": "<string>",
"value_masked": true
}
],
"total": 1,
"offset": 1,
"has_more": true,
"next_cursor": "<string>",
"structural_diff_values": "revealed",
"values_withheld_reason": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Authorizations
Query Parameters
Response
Successful response
One bounded page of complete current structural metadata. Every page rechecks access and value masking. A changed file, commit, diff rules or reveal outcome invalidates continuation. No file contents are returned.