Read preserved file differences
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/gitops/preserved-paths/diff"
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/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://platform.ankra.app/api/v1/org/clusters/{cluster_id}/gitops/preserved-paths/diff \
--header 'Authorization: Bearer <token>'{
"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
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
/
api
/
v1
/
org
/
clusters
/
{cluster_id}
/
gitops
/
preserved-paths
/
diff
Read preserved file differences
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/gitops/preserved-paths/diff"
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/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://platform.ankra.app/api/v1/org/clusters/{cluster_id}/gitops/preserved-paths/diff \
--header 'Authorization: Bearer <token>'{
"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.