import requests
url = "https://platform.ankra.app/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/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/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>"
}Check an application's Secret references (browser session)
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.
import requests
url = "https://platform.ankra.app/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/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/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
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
The Kubernetes namespace the application deploys to.
Response
Successful Response
unknown: the manifests could not be rendered or the cluster's Secrets could not be read; never block on it.
known, unknown Show child attributes
Show child attributes