2.5. Changing Instance PasswordsΒΆ

PUT /instances/{instance_id}/password

Creates a task to change the password of the specified user in the specified instance. If the instance is a virtual machine, it must have the guest tools installed.

Request example:

# curl -s -X PUT -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
-H 'X-Effective-User-ID: c3862f44c4bc48358db62ae22d684f33' \
-H 'X-Effective-Project-ID: 04e0d744d0f544c69ff7c17db5c8b4b9' -d '
"user": "root",
"password": "QWE!@#RTY"
' https://<controller_hostname>/api/v1/instances/6e634127-5c8c-4205-8ac6-a8113cdc58a1/password

Response example:

  "finished_at": null,
  "id": 16,
  "instance_uuid": "242fae68-5fd0-4420-a5ec-e7852ed9ba1c",
  "message": null,
  "progress": 0,
  "project_id": "04d99efea4464248811f19a9a5b85c83",
  "started_at": "2017-02-20T16:07:58.000000",
  "state": "running",
  "status": null,
  "type": "set_password",
  "user_id": "d5fdd55f2280407f9f263532985f11a2"