Documentation survey

API

The v3 API is not supported and backwards compatibility is not guaranteed.

如何使用 API

Rancher v2.8.0 introduced the Rancher Kubernetes API (RK-API), which is Rancher’s supported API. This page describes the v3 API. For more information on RK-API, see the RK-API quickstart and reference guide.

API 有自己的用户界面,你可以从 Web 浏览器访问它。这是查看资源、执行操作以及查看等效 cURL 或 HTTP 请求和响应的一种简单的方法。要访问它:

  1. 单击右上角的用户头像。

  2. 单击账号 & API 密钥

  3. API 密钥下,找到 API 端点字段并单击链接。该链接类似于 https://<rancher_fqdn>/v3,其中 <RANCHER_FQDN> 是 Rancher deployment 的完全限定域名。