Skip to main content

CatalogService.CreateGcsConnection

This compatibility method authenticates the caller, then returns unimplemented. Use ProviderCatalogService/CreateSourceConnection.

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

POST /prokrust.api.v1alpha1.CatalogService/CreateGcsConnection

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​

CreateResourceRequest

JSON fieldTypeMeaning
namespacestringKubernetes workspace namespace for the operation. Use the namespace in which the selected resource lives.
namestringName to give the new Kubernetes object. Workspace setup resources use the fixed name default.
specJSON objectFull CRD spec as a ProtoJSON object. Send the fields under spec in the Kubernetes manifest. Choose field names and allowed values from that kind’s CRD. Spec numbers must fit the exact integer range of a protobuf Struct (±9007199254740991).

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.CatalogService/CreateGcsConnection" \
--data-binary @- <<'JSON'
{
"namespace": "analytics",
"name": "source",
"spec": {
"bucket": "analytics-source",
"prefix": "records/"
}
}
JSON

Returned error​

{
"code": "unimplemented",
"message": "Use the provider catalog APIs for source connections"
}