Skip to main content

ProviderCatalogService.DeleteSourceConnection

Request deletion of the registered connection using the UID and resource version from a current read. Returns deletionRequested after Kubernetes accepts foreground deletion with both preconditions.

ProviderCatalogService · Installed Web API. Use the HTTPS origin of your Prokrust installation and credentials authorized for this operation.

POST /prokrust.api.v1alpha1.ProviderCatalogService/DeleteSourceConnection

Request headers​

HeaderValue and purpose
AuthorizationUse Bearer $PROKRUST_TOKEN for a Kubernetes caller authorized for this operation. Browser calls use the signed-in session.
Content-Typeapplication/json selects ProtoJSON for this unary request.
Connect-Protocol-Version1 selects version 1 of the Connect protocol.

Request fields​

DeleteSourceConnectionRequest

JSON fieldTypeMeaning
namespacestringKubernetes workspace namespace for the operation. Use the namespace in which the selected resource lives.
typeConnectionTypeRegistered Kubernetes connection type. Use the API version and kind advertised by ListConnectorProviders.
namestringKubernetes metadata.name of the selected resource in this namespace.
uidstringKubernetes metadata.uid identifying this particular object. Read it from the resource before targeting an existing instance.
resourceVersionstringOpaque Kubernetes resource version. Copy the value from a current read. Preserve it as a string.

Example request​

Set PROKRUST_URL to the installation’s HTTPS origin and PROKRUST_TOKEN to your caller token. Replace the sample values with values from your installation.

curl --fail-with-body --silent --show-error \
-H "Authorization: Bearer $PROKRUST_TOKEN" \
-H 'Content-Type: application/json' \
-H 'Connect-Protocol-Version: 1' \
"$PROKRUST_URL/prokrust.api.v1alpha1.ProviderCatalogService/DeleteSourceConnection" \
--data-binary @- <<'JSON'
{
"namespace": "analytics",
"type": {
"apiVersion": "synthetic.sources.prokrust.ai/v1",
"kind": "SyntheticConnection"
},
"name": "source",
"uid": "5cd3c9cd-1f14-51be-8e21-45591e3e0065",
"resourceVersion": "42"
}
JSON

Response fields​

DeleteResourceResponse

JSON fieldTypeMeaning
resourceResourceTarget observed by the resource deletion handler before requesting deletion. Provider connection deletion returns only deletionRequested.
deletionRequestedboolTrue after the deletion request was accepted. Finalizers can keep the resource present during cleanup.

Example response​

{
"deletionRequested": true
}