• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Nova
  5. Servers Password
  6. Show server password

Show server password

Function Description

This interface is used to obtain the random password generated during initial Windows ECS installation for user Administrator or the configured Cloudbase-init user when you use an image that supports Cloudbase-Init to create a Windows ECS.

After starting an ECS, wait for 5 to 10 minutes and ensure that the password is injected. Then, you can use this interface to query the password.

URI

  • URI format

    GET /v2/{tenant_id}/servers/{server_id}/os-server-password

    GET /v2.1/{tenant_id}/servers/{server_id}/os-server-password

  • Parameter description

    Parameter

    Mandatory

    Description

    tenant_id

    Yes

    Specifies the tenant or project ID.

    server_id

    Yes

    Specifies the ECS ID.

Request

N/A

Response

  • Parameter description

    Parameter

    Type

    Description

    password

    String

    Specifies the password in ciphertext.

  • Example response
    {
        "password": "UHC9+YW1xDC1Yu8Mg9n+tnOp7euEO/cW//9KgdJKWhr5w=="
    }

Returned Values

See General Request Returned Values.