Skip to main content

ConnectorService.ReleaseScan

Have the planner release upstream resources identified by an adopted plan. To clean up an abandoned attempt, supply its execution input and select the abandoned-planning target after the attempt deadline and grace period.

ConnectorService · Connector runtime API for provider implementers. The platform calls the provider runtime using its authenticated workload transport.

POST /prokrust.connector.v1.ConnectorService/ReleaseScan

Request fields​

ReleaseScanRequest

JSON fieldTypeMeaning
expectedConnectionIdentityFull identity of the connection the caller resolved. The runtime compares it to its own identity before serving the request.
executionInputArtifactRefExecution input that authorized the original planning attempt.
planArtifactRef (one of target)Verified plan that records which upstream resources to release. Choose one cleanup target.
abandonedPlanningAttemptbool (one of target)Set true to clean up the planning attempt when a completed plan was not adopted. The runtime waits for its deadline and cleanup grace period.

Example request​

{
"expected": {
"installationNamespaceUid": "00000000-0000-4000-8000-000000000001",
"workspaceNamespaceUid": "00000000-0000-4000-8000-000000000002",
"connection": {
"apiVersion": "sources.prokrust.ai/v1beta1",
"kind": "SyntheticConnection",
"namespace": "analytics",
"name": "fixture",
"uid": "00000000-0000-4000-8000-000000000003"
},
"providerId": "prokrust.ai/synthetic",
"providerMajor": 1,
"configDigest": "sha256:b0d4913f313bf0e18b6ec2d81d84ff748bdd415a26cb32243978b22b248567bc"
},
"executionInput": {
"store": {
"apiVersion": "platform.prokrust.ai/v1beta1",
"kind": "ArtifactStore",
"namespace": "analytics",
"name": "default",
"uid": "00000000-0000-4000-8000-000000000004"
},
"key": "control/run/input.json",
"version": "1",
"sha256": "a638227fbba3d845cff4a30bc887df733fdfa1b34c5bbe80aabde918ebceb89e",
"sizeBytes": "1024"
},
"plan": {
"store": {
"apiVersion": "platform.prokrust.ai/v1beta1",
"kind": "ArtifactStore",
"namespace": "analytics",
"name": "default",
"uid": "00000000-0000-4000-8000-000000000004"
},
"key": "staging/run/plan/plan.json",
"version": "1",
"sha256": "6100655cb2d718d6f2eebc44209024234a78d8ee49f33e9e64c93c63be7ae1f2",
"sizeBytes": "2048"
}
}

Response fields​

ReleaseScanResponse

JSON fieldTypeMeaning
releasedboolTrue when the provider completed cleanup for this target.

Example response​

{
"released": true
}