v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14159650798.5 KB

Returns the current, previous, or pending versions of the master user password for a Lightsail database.

The GetRelationalDatabaseMasterUserPassword operation supports tag-based access control via resource tags applied to the resource identified by relationalDatabaseName.

post/#X-Amz-Target=Lightsail_20161128.GetRelationalDatabaseMasterUserPassword

Headers

X-Amz-Target'Lightsail_20161128.GetRelationalDatabaseMasterUserPassword' required

Request body

relationalDatabaseNamestring required

The name of your database for which to get the master user password.

passwordVersion'CURRENT' | 'PREVIOUS' | 'PENDING'
<p>The password version to return.</p> <p>Specifying <code>CURRENT</code> or <code>PREVIOUS</code> returns the current or previous passwords respectively. Specifying <code>PENDING</code> returns the newest version of the password that will rotate to <code>CURRENT</code>. After the <code>PENDING</code> password rotates to <code>CURRENT</code>, the <code>PENDING</code> password is no longer available.</p> <p>Default: <code>CURRENT</code> </p>

Response

Success

masterUserPasswordstring password

The master user password for the <code>password version</code> specified.

createdAtstring date-time

The timestamp when the specified version of the master user password was created.