Check an application's Secret references
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/deploy/clusters/{cluster_id}/secret-references"
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/applications/{application_id}/deploy/clusters/{cluster_id}/secret-references', 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/applications/{application_id}/deploy/clusters/{cluster_id}/secret-references \
--header 'Authorization: Bearer <token>'{
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"namespace": "<string>",
"state": "known",
"reason": "<string>",
"references": [
{
"name": "<string>",
"used_by": "<string>",
"state": "exists",
"produced_by": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}Applications
Check an application's Secret references
Which Secrets the application’s workloads read without optional: true, rendered as its next deploy to this cluster namespace would render them, and whether each one will be there when they start: produced by the same deploy (its environment secrets, a Secret manifest in the set, or a CloudNativePG Cluster X publishing X-app), exists on the cluster, or missing. state is unknown when the manifests could not be rendered or the cluster’s Secrets could not be read recently enough to vouch for an absence; an unknown answer never blocks a deploy.
GET
/
api
/
v1
/
org
/
applications
/
{application_id}
/
deploy
/
clusters
/
{cluster_id}
/
secret-references
Check an application's Secret references
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/deploy/clusters/{cluster_id}/secret-references"
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/applications/{application_id}/deploy/clusters/{cluster_id}/secret-references', 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/applications/{application_id}/deploy/clusters/{cluster_id}/secret-references \
--header 'Authorization: Bearer <token>'{
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"namespace": "<string>",
"state": "known",
"reason": "<string>",
"references": [
{
"name": "<string>",
"used_by": "<string>",
"state": "exists",
"produced_by": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
Response
Successful Response