Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
458
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqinzheng committed Dec 19, 2019
1 parent 07fa35d commit 3c7e1a7
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/rest-server/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1687,31 +1687,39 @@ paths:
tags:
- kubernetes
summary: Get kubernetes node list.
description: Get kubernetes node list.
description: Get kubernetes node list. Need administrator permission.
operationId: getK8sNodes
security:
- bearerAuth: []
responses:
200:
description: Succeeded
content:
application/json:
description: Please refer to Kubernetes API doc https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.17/
example:
- Please refer to Kubernetes API doc
- https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.17/#list-node-v1-core
401:
$ref: '#/components/responses/UnauthorizedUserError'
403:
$ref: '#/components/responses/ForbiddenUserError'
/api/v1/kubernetes/nodes:
/api/v1/kubernetes/pods:
get:
tags:
- kubernetes
summary: Get kubernetes pod list.
description: Get kubernetes pod list.
description: Get kubernetes pod list. Need administrator permission.
operationId: getK8sPods
security:
- bearerAuth: []
responses:
200:
description: Succeeded
content:
application/json:
description: Please refer to Kubernetes API doc https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.17/
example:
- Please refer to Kubernetes API doc
- https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.17/#list-all-namespaces-pod-v1-core
401:
$ref: '#/components/responses/UnauthorizedUserError'
403:
Expand Down

0 comments on commit 3c7e1a7

Please sign in to comment.