-
Notifications
You must be signed in to change notification settings - Fork 69
[New ] GET /lke/clusters/{clusterId}/api-endpoints #241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
leslitagordita
merged 4 commits into
linode:lke-ga-release-prep
from
leslitagordita:lke-api-endpoints-update
Apr 9, 2020
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
32f3158
Add new endpoint /lke/clusters/{clusterId}/api-endpoints
leslitagordita 03b333c
Add note about /lke/clusters/{clusterId}/api-endpoint deprecations
leslitagordita c680a99
Update List Kubernetes API Endpoints response
leslitagordita c30da5a
Syntax fixes for data array in response of List Kubernetes API Endpoints
nmelehan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6585,6 +6585,73 @@ paths: | |
- lang: CLI | ||
source: > | ||
linode-cli lke pool-delete 12345 456 | ||
/lke/clusters/{clusterId}/api-endpoints: | ||
parameters: | ||
- name: clusterId | ||
in: path | ||
description: ID of the Kubernetes cluster to look up. | ||
required: true | ||
schema: | ||
type: integer | ||
x-linode-cli-command: lke | ||
get: | ||
operationId: getLKEClusterAPIEndpoints | ||
x-linode-cli-action: api-endpoints-list | ||
security: | ||
- personalAccessToken: [] | ||
- oauth: | ||
- lke:read_only | ||
tags: | ||
- Linode Kubernetes Engine (LKE) | ||
servers: | ||
- url: https://api.linode.com/v4beta | ||
summary: List Kubernetes API Endpoints | ||
description: > | ||
List the Kubernetes API server endpoints for this cluster. Please note that it often takes | ||
2-5 minutes before the endpoint is ready after first [creating a new cluster](/api/v4/lke-clusters/#post). | ||
|
||
|
||
**Beta**: This endpoint is in private beta. Please make sure to prepend all requests with | ||
`/v4beta` instead of `/v4`, and be aware that this endpoint may receive breaking | ||
updates in the future. This notice will be removed when this endpoint is out of | ||
beta. Sign up for the beta [here](https://welcome.linode.com/lkebeta/). | ||
responses: | ||
'200': | ||
description: Returns the Kubernetes API server endpoints for this cluster. | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In addition to renaming this endpoint, the return structure changed to be more in line with the rest of the API.
|
||
data: | ||
type: array | ||
items: | ||
type: object | ||
description: > | ||
The Kubernetes API server endpoints for this cluster. | ||
properties: | ||
endpoint: | ||
type: string | ||
readOnly: true | ||
description: > | ||
A Kubernetes API server endpoint for this cluster. | ||
example: "https://192.0.2.1:6443" | ||
page: | ||
$ref: '#/components/schemas/PaginationEnvelope/properties/page' | ||
pages: | ||
$ref: '#/components/schemas/PaginationEnvelope/properties/pages' | ||
results: | ||
$ref: '#/components/schemas/PaginationEnvelope/properties/results' | ||
default: | ||
$ref: '#/components/responses/ErrorResponse' | ||
x-code-samples: | ||
- lang: Shell | ||
source: > | ||
curl -H "Authorization: Bearer $TOKEN" \ | ||
https://api.linode.com/v4beta/lke/clusters/12345/api-endpoints | ||
- lang: CLI | ||
source: > | ||
linode-cli lke api-endpoint-list 12345 | ||
/lke/clusters/{clusterId}/api-endpoint: | ||
parameters: | ||
- name: clusterId | ||
|
@@ -6610,6 +6677,10 @@ paths: | |
Get the Kubernetes API server endpoint for this cluster. | ||
|
||
|
||
**Note** This endpoint will be deprecated in favor of | ||
[List Kubernetes API Endpoints](/api/v4/lke-clusters-cluster-id-api-endpoints). | ||
|
||
|
||
**Beta**: This endpoint is in private beta. Please make sure to prepend all requests with | ||
`/v4beta` instead of `/v4`, and be aware that this endpoint may receive breaking | ||
updates in the future. This notice will be removed when this endpoint is out of | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.