Skip to content

Commit 32f3158

Browse files
Add new endpoint /lke/clusters/{clusterId}/api-endpoints
1 parent 0948f61 commit 32f3158

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

openapi.yaml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6585,6 +6585,67 @@ paths:
65856585
- lang: CLI
65866586
source: >
65876587
linode-cli lke pool-delete 12345 456
6588+
/lke/clusters/{clusterId}/api-endpoints:
6589+
parameters:
6590+
- name: clusterId
6591+
in: path
6592+
description: ID of the Kubernetes cluster to look up.
6593+
required: true
6594+
schema:
6595+
type: integer
6596+
x-linode-cli-command: lke
6597+
get:
6598+
operationId: getLKEClusterAPIEndpoints
6599+
x-linode-cli-action: api-endpoints-list
6600+
security:
6601+
- personalAccessToken: []
6602+
- oauth:
6603+
- lke:read_only
6604+
tags:
6605+
- Linode Kubernetes Engine (LKE)
6606+
servers:
6607+
- url: https://api.linode.com/v4beta
6608+
summary: List Kubernetes API Endpoint
6609+
description: >
6610+
Get the Kubernetes API server endpoints for this cluster. Please note that it often takes
6611+
2-5 minutes before the endpoint is ready after first [creating a new cluster](/api/v4/lke-clusters/#post).
6612+
6613+
6614+
**Beta**: This endpoint is in private beta. Please make sure to prepend all requests with
6615+
`/v4beta` instead of `/v4`, and be aware that this endpoint may receive breaking
6616+
updates in the future. This notice will be removed when this endpoint is out of
6617+
beta. Sign up for the beta [here](https://welcome.linode.com/lkebeta/).
6618+
responses:
6619+
'200':
6620+
description: Returns the Kubernetes API server endpoints for this cluster.
6621+
content:
6622+
application/json:
6623+
schema:
6624+
type: object
6625+
properties:
6626+
endpoints:
6627+
type: array
6628+
description: >
6629+
The Kubernetes API server endpoints for this cluster.
6630+
items:
6631+
type: object
6632+
properties:
6633+
endpoint:
6634+
type: string
6635+
readOnly: true
6636+
description: >
6637+
A Kubernetes API server endpoint for this cluster.
6638+
example: "https://192.0.2.1:6443"
6639+
default:
6640+
$ref: '#/components/responses/ErrorResponse'
6641+
x-code-samples:
6642+
- lang: Shell
6643+
source: >
6644+
curl -H "Authorization: Bearer $TOKEN" \
6645+
https://api.linode.com/v4beta/lke/clusters/12345/api-endpoints
6646+
- lang: CLI
6647+
source: >
6648+
linode-cli lke api-endpoint-list 12345
65886649
/lke/clusters/{clusterId}/api-endpoint:
65896650
parameters:
65906651
- name: clusterId

0 commit comments

Comments
 (0)