After deploying the RealTheory collector to a Kubernetes cluster (See Installing RealTheory in a Cluster), the cluster and its associated objects become available in the RealTheory API within minutes.
Get Deployments
To get the list of available deployments for a given cluster and namespace, call the method below on the K8sSummary endpoint.
where
{endpoint}
- is the URL of the RealTheory SaaS portal for your account.{query}
- is a query used to limit the results to deployments within a given namespace and cluster.{index}
- is the starting index of the deployment summaries to include in the list. This parameter is optional and defaults to 0 if not specified.{count}
- is maximum number of deployment summaries to return. This parameter is optional and defaults to 100 if not specified.{order}
- is a string containing the name of the attribute to sort on. This parameter is optional.{direction}
- is a number that controls the direction of the sort. A value equal to or greater than 0 indicates ascending order; a value less than 0 indicates descending order. This parameter is optional and defaults to 0 if not specified.
Note: All calls to RealTheory APIs must be authenticated and authorized. See Authentication for more details.
Example
which returns a list of the first 100 deployment summaries associated with namespace realtheory-example
on cluster realtheory-cluster-01
, sorted by name in ascending order.
Notes:
- A deployment summary is an object that summarizes key information related to a Kubernetes Deployment.
- The query should be URL encoded; otherwise the request might be rejected.
Output
Note: Content has been omitted from the JSON response above for brevity.