List GitOps conflicts
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/gitops/conflicts"
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/conflicts', 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/conflicts \
--header 'Authorization: Bearer <token>'{
"conflicts": [
{
"resource_key": "<string>",
"stack_name": "<string>",
"resource_kind": "<string>",
"resource_name": "<string>",
"git_change_type": "<string>",
"db_change_type": "<string>",
"last_applied_commit_sha": "<string>",
"detected_at": "2023-11-07T05:31:56Z",
"resolution_choice": "git",
"resolved_at": "2023-11-07T05:31:56Z"
}
],
"total": 123
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Clusters
List GitOps conflicts
Lists the cluster’s open GitOps merge conflicts (ankra cluster gitops conflicts list): resources changed both in the GitOps repository and on the platform since they last agreed. GitOps sync stays paused on them until each is resolved. Each entry names the resource, how Git (git_change_type) and the platform (db_change_type) changed it, and any resolution already recorded that the next sync will apply. Any member of the cluster’s organisation can read it.
GET
/
api
/
v1
/
org
/
clusters
/
{cluster_id}
/
gitops
/
conflicts
List GitOps conflicts
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/gitops/conflicts"
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/conflicts', 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/conflicts \
--header 'Authorization: Bearer <token>'{
"conflicts": [
{
"resource_key": "<string>",
"stack_name": "<string>",
"resource_kind": "<string>",
"resource_name": "<string>",
"git_change_type": "<string>",
"db_change_type": "<string>",
"last_applied_commit_sha": "<string>",
"detected_at": "2023-11-07T05:31:56Z",
"resolution_choice": "git",
"resolved_at": "2023-11-07T05:31:56Z"
}
],
"total": 123
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
PAT organisation override.