Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Rancher Clusters API

Downstream Kubernetes clusters managed by Rancher.

Rancher Clusters API is one of 8 APIs that Rancher publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 6 JSON Schema definitions.

Tagged areas include Clusters. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a getting-started guide, a JSON-LD context, and 6 JSON Schemas.

This API exposes 4 operations across 2 paths, and defines 2 schemas. It is described by OpenAPI 3.1.0, at version 1.0.

Requests are made against 2 base URLs: https://{rancher_host}/v3, https://{rancher_host}/k8s/clusters/{cluster_id}.

4 operations 2 paths 2 schemas 1 DELETE2 GET1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.0
Base URL
https://{rancher_host}/v3
Authentication
HTTP Bearer
License
Resource Areas
1

Authentication & Security 1

Rancher Clusters API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (token-XXXXX:secret) (BearerAuth).

Paths & Operations 4

Across 2 paths, the API surfaces 4 operations — 1 DELETE, 2 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.

Clusters 4

Downstream Kubernetes clusters managed by Rancher.

GET
/clusters
List clusters
listClusters → 200
POST
/clusters
Create a cluster
createCluster body → 201
GET
/clusters/{id}
Retrieve a cluster
getCluster 1 param → 200
DELETE
/clusters/{id}
Delete a cluster
deleteCluster 1 param → 204

Schemas 2

The contract defines 2 schemas that model the data the API accepts and returns. The most detailed are Cluster (6 properties), ClusterCollection (2 properties). Each schema is shown below with its type and property counts.

Cluster
object
6 properties
ClusterCollection
object
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

rancher-clusters-api-openapi.yml Raw ↑

Other APIs Rancher publishes across the network.

Rancher Apps API
Rancher Catalogs API
Rancher Nodes API
Rancher Projects API
Rancher Roles API
Rancher Tokens API
Rancher Users API