Skip to content

Commit 9eb5ae0

Browse files
authored
Merge pull request #511 from bbiggerr/get-linode-nodebalancers
[New] Linode NodeBalancers View
2 parents 2c7c321 + 515d95a commit 9eb5ae0

File tree

1 file changed

+52
-1
lines changed

1 file changed

+52
-1
lines changed

openapi.yaml

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4175,7 +4175,7 @@ paths:
41754175
A Backup ID from another Linode's available backups. Your User must have
41764176
`read_write` access to that Linode, the Backup must have a `status` of
41774177
`successful`, and the Linode must be deployed to the same `region` as the Backup.
4178-
See [/linode/instances/{linodeId}/backups](/docs/api/linode-instances/#backups-list)
4178+
See [GET /linode/instances/{linodeId}/backups](/docs/api/linode-instances/#backups-list)
41794179
for a Linode's available backups.
41804180

41814181
This field and the `image` field are mutually exclusive.
@@ -6356,6 +6356,57 @@ paths:
63566356
- lang: CLI
63576357
source: >
63586358
linode-cli linodes upgrade 123
6359+
/linode/instances/{linodeId}/nodebalancers:
6360+
parameters:
6361+
- name: linodeId
6362+
in: path
6363+
description: ID of the Linode to look up
6364+
required: true
6365+
schema:
6366+
type: integer
6367+
x-linode-cli-command: linodes
6368+
get:
6369+
x-linode-grant: read_only
6370+
tags:
6371+
- Linode Instances
6372+
summary: Linode NodeBalancers View
6373+
description: |
6374+
Returns a list of NodeBalancers that are assigned to this Linode and readable by the requesting User.
6375+
6376+
Read permission to a NodeBalancer can be given to a User by accessing the User's Grants Update
6377+
([PUT /account/users/{username}/grants](https://www.linode.com/docs/api/account/#users-grants-update)) endpoint.
6378+
operationId: getLinodeNodeBalancers
6379+
x-linode-cli-action: nodebalancers
6380+
security:
6381+
- personalAccessToken: []
6382+
- oauth:
6383+
- linodes:read_only
6384+
responses:
6385+
'200':
6386+
description: Returns a paginated list of NodeBalancers.
6387+
content:
6388+
application/json:
6389+
schema:
6390+
type: object
6391+
properties:
6392+
data:
6393+
type: array
6394+
items:
6395+
$ref: '#/components/schemas/NodeBalancer'
6396+
page:
6397+
$ref: '#/components/schemas/PaginationEnvelope/properties/page'
6398+
pages:
6399+
$ref: '#/components/schemas/PaginationEnvelope/properties/pages'
6400+
results:
6401+
$ref: '#/components/schemas/PaginationEnvelope/properties/results'
6402+
x-code-samples:
6403+
- lang: Shell
6404+
source: >
6405+
curl -H "Authorization: Bearer $TOKEN" \
6406+
https://api.linode.com/v4/linode/instances/123/nodebalancers
6407+
- lang: CLI
6408+
source: >
6409+
linode-cli linodes nodebalancers 123
63596410
/linode/instances/{linodeId}/password:
63606411
parameters:
63616412
- name: linodeId

0 commit comments

Comments
 (0)