Create Kubernetes Operator
Create a new Kubernetes Operator
Request
POST /kubernetes_operators
Example Request
Parameters
Name | Type | Description |
---|
description | string | human-readable description of this Kubernetes Operator. optional, max 255 bytes. |
metadata | string | arbitrary user-defined machine-readable data of this Kubernetes Operator. optional, max 4096 bytes. |
enabled_features | List<string> | features enabled for this Kubernetes Operator. a subset of "bindings", "ingress", and "gateway" |
region | string | the ngrok region in which the ingress for this operator is served. defaults to "global" |
deployment | KubernetesOperatorDeployment | information about the deployment of this Kubernetes Operator |
binding | KubernetesOperatorBindingCreate | configuration for the Bindings feature of this Kubernetes Operator. set only if enabling the "bindings" feature |
KubernetesOperatorDeployment parameters
Name | Type | Description |
---|
name | string | the deployment name |
namespace | string | the namespace this Kubernetes Operator is deployed to |
version | string | the version of this Kubernetes Operator |
cluster_name | string | user-given name for the cluster the Kubernetes Operator is deployed to |
KubernetesOperatorBindingCreate parameters
Name | Type | Description |
---|
endpoint_selectors | List<string> | the list of cel expressions that filter the k8s bound endpoints for this operator |
csr | string | CSR is supplied during initial creation to enable creating a mutual TLS secured connection between ngrok and the operator. This is an internal implementation detail and subject to change. |
ingress_endpoint | string | the public ingress endpoint for this Kubernetes Operator |
Response
Returns a 201 response on success
Example Response
Fields
Name | Type | Description |
---|
id | string | unique identifier for this Kubernetes Operator |
uri | string | URI of this Kubernetes Operator API resource |
created_at | string | timestamp when the Kubernetes Operator was created. RFC 3339 format |
updated_at | string | timestamp when the Kubernetes Operator was last updated. RFC 3339 format |
description | string | human-readable description of this Kubernetes Operator. optional, max 255 bytes. |
metadata | string | arbitrary user-defined machine-readable data of this Kubernetes Operator. optional, max 4096 bytes. |
principal | Ref | the principal who created this Kubernetes Operator |
enabled_features | List<string> | features enabled for this Kubernetes Operator. a subset of "bindings", "ingress", and "gateway" |
region | string | the ngrok region in which the ingress for this operator is served. defaults to "global" |
deployment | KubernetesOperatorDeployment | information about the deployment of this Kubernetes Operator |
binding | KubernetesOperatorBinding | information about the Bindings feature of this Kubernetes Operator, if enabled |
Ref fields
Name | Type | Description |
---|
id | string | a resource identifier |
uri | string | a uri for locating a resource |
KubernetesOperatorDeployment fields
Name | Type | Description |
---|
name | string | the deployment name |
namespace | string | the namespace this Kubernetes Operator is deployed to |
version | string | the version of this Kubernetes Operator |
cluster_name | string | user-given name for the cluster the Kubernetes Operator is deployed to |
KubernetesOperatorBinding fields
Name | Type | Description |
---|
endpoint_selectors | List<string> | the list of cel expressions that filter the k8s bound endpoints for this operator |
cert | KubernetesOperatorCert | the binding certificate information |
ingress_endpoint | string | the public ingress endpoint for this Kubernetes Operator |
KubernetesOperatorCert fields
Name | Type | Description |
---|
cert | string | the public client certificate generated for this Kubernetes Operator from the CSR supplied when enabling the Bindings feature |
not_before | string | timestamp when the certificate becomes valid. RFC 3339 format |
not_after | string | timestamp when the certificate becomes invalid. RFC 3339 format |
Update Kubernetes Operator
Update an existing Kubernetes operator by ID.
Request
PATCH /kubernetes_operators/{id}
Example Request
Parameters
Name | Type | Description |
---|
id | string | unique identifier for this Kubernetes Operator |
description | string | human-readable description of this Kubernetes Operator. optional, max 255 bytes. |
metadata | string | arbitrary user-defined machine-readable data of this Kubernetes Operator. optional, max 4096 bytes. |
enabled_features | List<string> | features enabled for this Kubernetes Operator. a subset of "bindings", "ingress", and "gateway" |
region | string | the ngrok region in which the ingress for this operator is served. defaults to "global" |
binding | KubernetesOperatorBindingUpdate | configuration for the Bindings feature of this Kubernetes Operator. set only if enabling the "bindings" feature |
deployment | KubernetesOperatorDeploymentUpdate | configuration for the Deployment info |
KubernetesOperatorBindingUpdate parameters
Name | Type | Description |
---|
endpoint_selectors | List<string> | the list of cel expressions that filter the k8s bound endpoints for this operator |
csr | string | CSR is supplied during initial creation to enable creating a mutual TLS secured connection between ngrok and the operator. This is an internal implementation detail and subject to change. |
ingress_endpoint | string | the public ingress endpoint for this Kubernetes Operator |
KubernetesOperatorDeploymentUpdate parameters
Name | Type | Description |
---|
name | string | the deployment name |
version | string | the version of this Kubernetes Operator |
Response
Returns a 200 response on success
Example Response
Fields
Name | Type | Description |
---|
id | string | unique identifier for this Kubernetes Operator |
uri | string | URI of this Kubernetes Operator API resource |
created_at | string | timestamp when the Kubernetes Operator was created. RFC 3339 format |
updated_at | string | timestamp when the Kubernetes Operator was last updated. RFC 3339 format |
description | string | human-readable description of this Kubernetes Operator. optional, max 255 bytes. |
metadata | string | arbitrary user-defined machine-readable data of this Kubernetes Operator. optional, max 4096 bytes. |
principal | Ref | the principal who created this Kubernetes Operator |
enabled_features | List<string> | features enabled for this Kubernetes Operator. a subset of "bindings", "ingress", and "gateway" |
region | string | the ngrok region in which the ingress for this operator is served. defaults to "global" |
deployment | KubernetesOperatorDeployment | information about the deployment of this Kubernetes Operator |
binding | KubernetesOperatorBinding | information about the Bindings feature of this Kubernetes Operator, if enabled |
Ref fields
Name | Type | Description |
---|
id | string | a resource identifier |
uri | string | a uri for locating a resource |
KubernetesOperatorDeployment fields
Name | Type | Description |
---|
name | string | the deployment name |
namespace | string | the namespace this Kubernetes Operator is deployed to |
version | string | the version of this Kubernetes Operator |
cluster_name | string | user-given name for the cluster the Kubernetes Operator is deployed to |
KubernetesOperatorBinding fields
Name | Type | Description |
---|
endpoint_selectors | List<string> | the list of cel expressions that filter the k8s bound endpoints for this operator |
cert | KubernetesOperatorCert | the binding certificate information |
ingress_endpoint | string | the public ingress endpoint for this Kubernetes Operator |
KubernetesOperatorCert fields
Name | Type | Description |
---|
cert | string | the public client certificate generated for this Kubernetes Operator from the CSR supplied when enabling the Bindings feature |
not_before | string | timestamp when the certificate becomes valid. RFC 3339 format |
not_after | string | timestamp when the certificate becomes invalid. RFC 3339 format |
Delete Kubernetes Operator
Delete a Kubernetes Operator
Request
DELETE /kubernetes_operators/{id}
Example Request
Response
Returns a 204 response with no body on success
Get Kubernetes Operator
Get of a Kubernetes Operator
Request
GET /kubernetes_operators/{id}
Example Request
Response
Returns a 200 response on success
Example Response
Fields
Name | Type | Description |
---|
id | string | unique identifier for this Kubernetes Operator |
uri | string | URI of this Kubernetes Operator API resource |
created_at | string | timestamp when the Kubernetes Operator was created. RFC 3339 format |
updated_at | string | timestamp when the Kubernetes Operator was last updated. RFC 3339 format |
description | string | human-readable description of this Kubernetes Operator. optional, max 255 bytes. |
metadata | string | arbitrary user-defined machine-readable data of this Kubernetes Operator. optional, max 4096 bytes. |
principal | Ref | the principal who created this Kubernetes Operator |
enabled_features | List<string> | features enabled for this Kubernetes Operator. a subset of "bindings", "ingress", and "gateway" |
region | string | the ngrok region in which the ingress for this operator is served. defaults to "global" |
deployment | KubernetesOperatorDeployment | information about the deployment of this Kubernetes Operator |
binding | KubernetesOperatorBinding | information about the Bindings feature of this Kubernetes Operator, if enabled |
Ref fields
Name | Type | Description |
---|
id | string | a resource identifier |
uri | string | a uri for locating a resource |
KubernetesOperatorDeployment fields
Name | Type | Description |
---|
name | string | the deployment name |
namespace | string | the namespace this Kubernetes Operator is deployed to |
version | string | the version of this Kubernetes Operator |
cluster_name | string | user-given name for the cluster the Kubernetes Operator is deployed to |
KubernetesOperatorBinding fields
Name | Type | Description |
---|
endpoint_selectors | List<string> | the list of cel expressions that filter the k8s bound endpoints for this operator |
cert | KubernetesOperatorCert | the binding certificate information |
ingress_endpoint | string | the public ingress endpoint for this Kubernetes Operator |
KubernetesOperatorCert fields
Name | Type | Description |
---|
cert | string | the public client certificate generated for this Kubernetes Operator from the CSR supplied when enabling the Bindings feature |
not_before | string | timestamp when the certificate becomes valid. RFC 3339 format |
not_after | string | timestamp when the certificate becomes invalid. RFC 3339 format |
List Kubernetes Operators
List all Kubernetes Operators owned by this account
Request
GET /kubernetes_operators
Example Request
Response
Returns a 200 response on success
Example Response
Fields
Name | Type | Description |
---|
operators | KubernetesOperator | the list of Kubernetes Operators for this account |
uri | string | |
next_page_uri | string | URI of the next page, or null if there is no next page |
KubernetesOperator fields
Name | Type | Description |
---|
id | string | unique identifier for this Kubernetes Operator |
uri | string | URI of this Kubernetes Operator API resource |
created_at | string | timestamp when the Kubernetes Operator was created. RFC 3339 format |
updated_at | string | timestamp when the Kubernetes Operator was last updated. RFC 3339 format |
description | string | human-readable description of this Kubernetes Operator. optional, max 255 bytes. |
metadata | string | arbitrary user-defined machine-readable data of this Kubernetes Operator. optional, max 4096 bytes. |
principal | Ref | the principal who created this Kubernetes Operator |
enabled_features | List<string> | features enabled for this Kubernetes Operator. a subset of "bindings", "ingress", and "gateway" |
region | string | the ngrok region in which the ingress for this operator is served. defaults to "global" |
deployment | KubernetesOperatorDeployment | information about the deployment of this Kubernetes Operator |
binding | KubernetesOperatorBinding | information about the Bindings feature of this Kubernetes Operator, if enabled |
Ref fields
Name | Type | Description |
---|
id | string | a resource identifier |
uri | string | a uri for locating a resource |
KubernetesOperatorDeployment fields
Name | Type | Description |
---|
name | string | the deployment name |
namespace | string | the namespace this Kubernetes Operator is deployed to |
version | string | the version of this Kubernetes Operator |
cluster_name | string | user-given name for the cluster the Kubernetes Operator is deployed to |
KubernetesOperatorBinding fields
Name | Type | Description |
---|
endpoint_selectors | List<string> | the list of cel expressions that filter the k8s bound endpoints for this operator |
cert | KubernetesOperatorCert | the binding certificate information |
ingress_endpoint | string | the public ingress endpoint for this Kubernetes Operator |
KubernetesOperatorCert fields
Name | Type | Description |
---|
cert | string | the public client certificate generated for this Kubernetes Operator from the CSR supplied when enabling the Bindings feature |
not_before | string | timestamp when the certificate becomes valid. RFC 3339 format |
not_after | string | timestamp when the certificate becomes invalid. RFC 3339 format |
GetBoundEndpoints Kubernetes Operator
List Endpoints bound to a Kubernetes Operator
Request
GET /kubernetes_operators/{id}/bound_endpoints
Example Request
Response
Returns a 200 response on success
Example Response
Fields