Skip to content

Runtime API reference

This reference describes Runtime Plane–related application programming interfaces (APIs) exposed by Privacera (for example configuration and connector operations via the PrivaceraCloud). Each reference page is presented primarily from a representational state transfer (REST) perspective.

Typical REST calls include the following components:

  • The host url (for privaceracloud, "https://api.privaceracloud.com").
  • The HTTP method for the operation, such as GET, POST, PUT, or DELETE.
  • The path for the operation (for example a path that identifies a connector or configuration resource).
  • Authentication for the request—see Authentication (header x-pcloud-key).
  • Any request body (JSON) or query parameters the operation supports.

For how to supply these components from your shell, CI job, or application—and how to parse JSON responses—see your tool or language documentation.

This reference describes the paths, methods, and supported request and response shapes for each operation. Pages may add examples (for example curl) as they are filled in.


Authentication

Call the HTTP APIs in this reference with the x-pcloud-key request header set to your Privacera API key.

The portal shows the key only once when the runtime plane is created (or when it is first issued for your access). If you saved that value, use it in the header.

For example:

Bash
curl -H "x-pcloud-key: <PCLOUD_KEY>" ...

If you did not save it, run the following in a shell that has kubectl access to your cluster. Replace <YOUR_RUNTIME_PLANE_NAMESPACE> with the Kubernetes namespace for your runtime plane.

Bash
1
2
3
kubectl get secret privacera-runtime-secret -n <YOUR_RUNTIME_PLANE_NAMESPACE> \
  -o go-template='{{index .data "runtime.api.key"}}' | base64 -d
echo

The command prints the decoded api key as plain text—treat the output as sensitive (do not log it or commit it to source control).

If the Secret or key name does not match your cluster, inspect the Secret’s Data key names without printing values:

Bash
kubectl describe secret privacera-runtime-secret -n YOUR_RUNTIME_PLANE_NAMESPACE

If you cannot recover the key from the cluster or the portal, use Regenerate (available on Portal) or your Privacera administrator, as described in Privacera Managed keys.