Platform
RevokeSelfHostEnrollment
Revoke a self-host enrollment
Revokes an enrollment so its token can no longer authenticate a proxy. Connected proxies keep their last-known config until they reconnect.
Usage
err := client.Platform.RevokeSelfHostEnrollment(ctx, "org_abc123", "she_01h455vb4pex5vsknk084sn02q")Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| ctx | context.Context | Yes | Request context |
| orgID | string | Yes | Unique organization identifier. |
| enrollmentID | string | Yes | Unique enrollment identifier. |
Response
error: returns nil on success.
Example
import pgbeam "go.pgbeam.com/sdk"
client := pgbeam.NewClient(&pgbeam.ClientOptions{
APIKey: "pgb_your_api_key",
})
err := client.Platform.RevokeSelfHostEnrollment(ctx, "org_abc123", "she_01h455vb4pex5vsknk084sn02q")
if err != nil {
log.Fatal(err)
}Errors
| Status | Description |
|---|---|
| 401 | Missing or invalid authentication. |
| 403 | Operation not allowed by current plan limits. |
| 404 | Resource not found. |