Get a managed-service upgrade review (browser session)
import requests
url = "https://api.platform.ankra.app/org/service-admission/instances/{instance_id}/upgrades/{upgrade_id}"
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/service-admission/instances/{instance_id}/upgrades/{upgrade_id}', 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/service-admission/instances/{instance_id}/upgrades/{upgrade_id} \
--cookie ankra_session={
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"instance_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"plan": {
"schema_version": 123,
"instance_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"actor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"generation": 123,
"stack_resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"stack_name": "<string>",
"profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"from": {
"package_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"package_version": "<string>",
"package_digest": "<string>",
"profile_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"profile_version": 123,
"profile_digest": "<string>",
"image": "<string>",
"postgresql_major": 123,
"postgresql_version": "<string>",
"chart_version": "<string>"
},
"to": {
"package_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"package_version": "<string>",
"package_digest": "<string>",
"profile_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"profile_version": 123,
"profile_digest": "<string>",
"image": "<string>",
"postgresql_major": 123,
"postgresql_version": "<string>",
"chart_version": "<string>"
},
"rollback": true,
"changelog": [
{
"profile_version": 123,
"changelog": "<string>"
}
],
"disruption": {
"instances": 123,
"tier": "standard",
"restart": "rolling",
"summary": "<string>"
},
"consumers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"namespace": "<string>"
}
],
"backups": {
"policy": "declared",
"enabled": true,
"vault": "<string>",
"schedule": "<string>"
},
"recorded_inputs_digest": "<string>",
"effects": [
"<string>"
],
"expires_at": "2023-11-07T05:31:56Z"
},
"digest": "<string>",
"state": "pending",
"created_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"confirmed_at": "2023-11-07T05:31:56Z",
"operation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"backup_observation": {
"state": "protected",
"reason": "<string>",
"last_complete_restore_point_at": "<string>",
"stale": true,
"not_capturing": true
},
"warnings": [
"<string>"
]
}Services
Get a managed-service upgrade review (browser session)
Requires the applications rollout flag, applications.deploy in the cluster’s project, and clusters.read and clusters.operate on the service’s cluster, all intersected with live token scopes: the authority setting the service up on that cluster needed. Returns an upgrade review its actor prepared, with its state and, once confirmed, the operation its stack write started. backup_observation is null on a read. Another actor’s review is not found.
GET
/
org
/
service-admission
/
instances
/
{instance_id}
/
upgrades
/
{upgrade_id}
Get a managed-service upgrade review (browser session)
import requests
url = "https://api.platform.ankra.app/org/service-admission/instances/{instance_id}/upgrades/{upgrade_id}"
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/service-admission/instances/{instance_id}/upgrades/{upgrade_id}', 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/service-admission/instances/{instance_id}/upgrades/{upgrade_id} \
--cookie ankra_session={
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"instance_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"plan": {
"schema_version": 123,
"instance_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"actor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"generation": 123,
"stack_resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"stack_name": "<string>",
"profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"from": {
"package_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"package_version": "<string>",
"package_digest": "<string>",
"profile_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"profile_version": 123,
"profile_digest": "<string>",
"image": "<string>",
"postgresql_major": 123,
"postgresql_version": "<string>",
"chart_version": "<string>"
},
"to": {
"package_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"package_version": "<string>",
"package_digest": "<string>",
"profile_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"profile_version": 123,
"profile_digest": "<string>",
"image": "<string>",
"postgresql_major": 123,
"postgresql_version": "<string>",
"chart_version": "<string>"
},
"rollback": true,
"changelog": [
{
"profile_version": 123,
"changelog": "<string>"
}
],
"disruption": {
"instances": 123,
"tier": "standard",
"restart": "rolling",
"summary": "<string>"
},
"consumers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"namespace": "<string>"
}
],
"backups": {
"policy": "declared",
"enabled": true,
"vault": "<string>",
"schedule": "<string>"
},
"recorded_inputs_digest": "<string>",
"effects": [
"<string>"
],
"expires_at": "2023-11-07T05:31:56Z"
},
"digest": "<string>",
"state": "pending",
"created_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"confirmed_at": "2023-11-07T05:31:56Z",
"operation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"backup_observation": {
"state": "protected",
"reason": "<string>",
"last_complete_restore_point_at": "<string>",
"stale": true,
"not_capturing": true
},
"warnings": [
"<string>"
]
}Authorizations
Response
The actor's upgrade review.
One upgrade of a managed service, as its preparing actor sees it.