10.2. API 端点
可用的 API 端点如下:
/api/v1/serviceaccounts-
GET:列出或监视类型为 ServiceAccount 的对象
-
/api/v1/watch/serviceaccounts-
GET: 观察单个对 ServiceAccount 列表的更改。已弃用:改为使用 'watch' 参数及列表操作。
-
/api/v1/namespaces/{namespace}/serviceaccounts-
DELETE:删除 ServiceAccount 的集合 -
GET:列出或监视类型为 ServiceAccount 的对象 -
POST:创建一个 ServiceAccount
-
/api/v1/watch/namespaces/{namespace}/serviceaccounts-
GET: 观察单个对 ServiceAccount 列表的更改。已弃用:改为使用 'watch' 参数及列表操作。
-
/api/v1/namespaces/{namespace}/serviceaccounts/{name}-
DELETE:删除 ServiceAccount -
GET:读取指定的 ServiceAccount -
PATCH: 部分更新指定的 ServiceAccount -
PUT:替换指定的 ServiceAccount
-
/api/v1/watch/namespaces/{namespace}/serviceaccounts/{name}-
GET: 观察对类型为 ServiceAccount 的对象的更改。已弃用:使用带有 list 操作的 'watch' 参数,而是过滤到带有 'fieldSelector' 参数的单个项目。
-
10.2.1. /api/v1/serviceaccounts 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
- HTTP 方法
-
GET - 描述
- 列出或监视类型为 ServiceAccount 的对象
| HTTP 代码 | 响应正文 |
|---|---|
| 200 - OK |
|
| 401 - Unauthorized | 空 |