Skip to content

Commit 8cb7f54

Browse files
Merge pull request #319 from hzoppetti/reset-password
[New] POST /linode/instances/{linodeId}/password
2 parents 3347cd1 + cf78649 commit 8cb7f54

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

openapi.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5328,6 +5328,75 @@ paths:
53285328
- lang: CLI
53295329
source: >
53305330
linode-cli linodes upgrade 123
5331+
/linode/instances/{linodeId}/password:
5332+
parameters:
5333+
- name: linodeId
5334+
in: path
5335+
description: ID of the Linode for which to reset it's root password.
5336+
required: true
5337+
schema:
5338+
type: integer
5339+
x-linode-cli-command: linodes
5340+
post:
5341+
x-linode-grant: read_write
5342+
summary: Reset Linode Root Password
5343+
description: >
5344+
Resets the root password for this Linode.
5345+
5346+
* Your Linode must be [shut down](/api/v4/linode-instances-linode-id-shutdown/#post) for a password reset to complete.
5347+
5348+
* If your Linode has more than one disk (not counting its swap disk), use the
5349+
[Reset Disk Root Password](/api/v4/linode-instances-linode-id-disks-disk-id-password/#post) endpoint to update a specific disk's root password.
5350+
5351+
* A `password_reset` event is generated when a root password reset is successful.
5352+
tags:
5353+
- Linode Instances
5354+
operationId: resetLinodePassword
5355+
x-linode-cli-action: linode-reset-password
5356+
security:
5357+
- personalAccessToken: []
5358+
- oauth:
5359+
- linodes:read_write
5360+
requestBody:
5361+
description: This Linode's new root password.
5362+
content:
5363+
'application/json':
5364+
schema:
5365+
required:
5366+
- root_pass
5367+
properties:
5368+
root_pass:
5369+
type: string
5370+
description: >
5371+
The root user's password on this Linode. Linode passwords
5372+
have the following constraints:
5373+
5374+
5375+
Must meet a password strength score requirement that is calculated internally
5376+
by the API. If the strength requirement is not met, you will receive a
5377+
Password does not meet strength requirement error.
5378+
example: a$eCure4assw0rd!43v51
5379+
responses:
5380+
'200':
5381+
description: Password Reset.
5382+
content:
5383+
application/json:
5384+
schema:
5385+
type: object
5386+
default:
5387+
$ref: '#/components/responses/ErrorResponse'
5388+
x-code-samples:
5389+
- lang: Shell
5390+
source: >
5391+
curl -H "Content-Type: application/json" \
5392+
-H "Authorization: Bearer $TOKEN" \
5393+
-X POST -d '{
5394+
"root_pass": "a$eCure4assw0rd!43v51"
5395+
}' \
5396+
https://api.linode.com/v4/linode/instances/123/password
5397+
- lang: CLI
5398+
source: >
5399+
linode-cli linodes linode-reset-password 123 a$eCure4assw0rd!43v51
53315400
/linode/instances/{linodeId}/reboot:
53325401
parameters:
53335402
- name: linodeId

0 commit comments

Comments
 (0)