import requests
url = "https://api.platform.ankra.app/org/service-admission/instances/{instance_id}/reconfigurations/{reconfiguration_id}/confirm"
payload = { "digest": "<string>" }
headers = {
"cookie": "ankra_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'ankra_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({digest: '<string>'})
};
fetch('https://api.platform.ankra.app/org/service-admission/instances/{instance_id}/reconfigurations/{reconfiguration_id}/confirm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.platform.ankra.app/org/service-admission/instances/{instance_id}/reconfigurations/{reconfiguration_id}/confirm \
--header 'Content-Type: application/json' \
--cookie ankra_session= \
--data '
{
"digest": "<string>"
}
'{
"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>",
"current": {},
"target": {},
"changes": [
{
"parameter": "<string>",
"from": 123,
"to": 123,
"unit": "<string>"
}
],
"variables": [
{
"name": "<string>",
"from": "<string>",
"to": "<string>"
}
],
"storage_classes": [
"<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",
"capacity": {
"state": "fits",
"reason": "<string>",
"plan_id": "<string>",
"quota": {
"limits_cpu_millicores": 123,
"limits_memory_mib": 123,
"requests_cpu_millicores": 123,
"requests_memory_mib": 123
},
"committed": {
"limits_cpu_millicores": 123,
"limits_memory_mib": 123,
"requests_cpu_millicores": 123,
"requests_memory_mib": 123
},
"transient": {
"limits_cpu_millicores": 123,
"limits_memory_mib": 123,
"requests_cpu_millicores": 123,
"requests_memory_mib": 123
},
"required": {
"limits_cpu_millicores": 123,
"limits_memory_mib": 123,
"requests_cpu_millicores": 123,
"requests_memory_mib": 123
}
}
}Confirm a managed-service resize by its digest (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. Accepts only the stored review and the digest its actor reviewed. In one stack write, under the cluster lock, it resolves the plan again and refuses when anything it covers moved or the review expired, then sets the reviewed stack variables, records the new size on the service and on its stack’s profile tracking (so a later in-place profile upgrade keeps it), and audits it. The platform then deploys the stack and CloudNativePG applies the change to the running Cluster. A retry returns the same record.
import requests
url = "https://api.platform.ankra.app/org/service-admission/instances/{instance_id}/reconfigurations/{reconfiguration_id}/confirm"
payload = { "digest": "<string>" }
headers = {
"cookie": "ankra_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'ankra_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({digest: '<string>'})
};
fetch('https://api.platform.ankra.app/org/service-admission/instances/{instance_id}/reconfigurations/{reconfiguration_id}/confirm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.platform.ankra.app/org/service-admission/instances/{instance_id}/reconfigurations/{reconfiguration_id}/confirm \
--header 'Content-Type: application/json' \
--cookie ankra_session= \
--data '
{
"digest": "<string>"
}
'{
"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>",
"current": {},
"target": {},
"changes": [
{
"parameter": "<string>",
"from": 123,
"to": 123,
"unit": "<string>"
}
],
"variables": [
{
"name": "<string>",
"from": "<string>",
"to": "<string>"
}
],
"storage_classes": [
"<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",
"capacity": {
"state": "fits",
"reason": "<string>",
"plan_id": "<string>",
"quota": {
"limits_cpu_millicores": 123,
"limits_memory_mib": 123,
"requests_cpu_millicores": 123,
"requests_memory_mib": 123
},
"committed": {
"limits_cpu_millicores": 123,
"limits_memory_mib": 123,
"requests_cpu_millicores": 123,
"requests_memory_mib": 123
},
"transient": {
"limits_cpu_millicores": 123,
"limits_memory_mib": 123,
"requests_cpu_millicores": 123,
"requests_memory_mib": 123
},
"required": {
"limits_cpu_millicores": 123,
"limits_memory_mib": 123,
"requests_cpu_millicores": 123,
"requests_memory_mib": 123
}
}
}Authorizations
Response
The confirmed resize.
One resize of a managed service, as its preparing actor sees it.