Skip to content

[New] POST /linode/instances/{linodeId}/password #319

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
merged 6 commits into from
Sep 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5325,6 +5325,75 @@ paths:
- lang: CLI
source: >
linode-cli linodes upgrade 123
/linode/instances/{linodeId}/password:
parameters:
- name: linodeId
in: path
description: ID of the Linode for which to reset it's root password.
required: true
schema:
type: integer
x-linode-cli-command: linodes
post:
x-linode-grant: read_write
summary: Reset Linode Root Password
description: >
Resets the root password for this Linode.

* Your Linode must be [shut down](/api/v4/linode-instances-linode-id-shutdown/#post) for a password reset to complete.

* If your Linode has more than one disk (not counting its swap disk), use the
[Reset Disk Root Password](/api/v4/linode-instances-linode-id-disks-disk-id-password/#post) endpoint to update a specific disk's root password.

* A `password_reset` event is generated when a root password reset is successful.
tags:
- Linode Instances
operationId: resetLinodePassword
x-linode-cli-action: linode-reset-password
security:
- personalAccessToken: []
- oauth:
- linodes:read_write
requestBody:
description: This Linode's new root password.
content:
'application/json':
schema:
required:
- root_pass
properties:
root_pass:
type: string
description: >
The root user's password on this Linode. Linode passwords
have the following constraints:


Must meet a password strength score requirement that is calculated internally
by the API. If the strength requirement is not met, you will receive a
Password does not meet strength requirement error.
example: a$eCure4assw0rd!43v51
responses:
'200':
description: Password Reset.
content:
application/json:
schema:
type: object
default:
$ref: '#/components/responses/ErrorResponse'
x-code-samples:
- lang: Shell
source: >
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X POST -d '{
"root_pass": "a$eCure4assw0rd!43v51"
}' \
https://api.linode.com/v4/linode/instances/123/password
- lang: CLI
source: >
linode-cli linodes linode-reset-password 123 a$eCure4assw0rd!43v51
/linode/instances/{linodeId}/reboot:
parameters:
- name: linodeId
Expand Down