curl --request POST \ --url 'https://api.e2enetworks.com/myaccount/api/v1/gpu/dbaas/{managed_db_id}/users/{username}/reset-password/?project_id=<PROJECT_ID>&location=<LOCATION>&apikey=<API_KEY>' \ --header 'Authorization: Bearer <API_TOKEN>' \ --header 'Content-Type: application/json' \ --data '{ "password": "<password>"}'import requests
response = requests.post( "https://api.e2enetworks.com/myaccount/api/v1/gpu/dbaas/{managed_db_id}/users/{username}/reset-password/", params={"project_id": "<PROJECT_ID>", "location": "<LOCATION>", "apikey": "<API_KEY>"}, headers={"Authorization": "Bearer <API_TOKEN>"}, json={ "password": "<password>", },)print(response.json())const url = new URL("https://api.e2enetworks.com/myaccount/api/v1/gpu/dbaas/{managed_db_id}/users/{username}/reset-password/");url.search = new URLSearchParams({ project_id: "<PROJECT_ID>", location: "<LOCATION>", apikey: "<API_KEY>" });
const response = await fetch(url, { method: "POST", headers: { "Authorization": "Bearer <API_TOKEN>", "Content-Type": "application/json" }, body: JSON.stringify({ "password": "<password>" }),});console.log(await response.json());Sets a new password for a database user. The database must be Running. The response repeats the new password, so do not log it. Needs the Update permission on DBaaS.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Database ID
The user.
Query Parameters
Section titled “Query Parameters”Project ID
Active IAM ID (To access contact person account) Find your Active IAM ID here
Location
Request Bodyrequired
Section titled “Request Bodyrequired”object
12 to 64 characters with at least one uppercase letter, one lowercase letter, one digit and one symbol.
Example
<password>Responses
Section titled “Responses”Password reset
object
The result, under its own data; its log reads “Password reset successfully.”
object
object
The new password.
object
object
Example
{ "code": 200, "message": "Success", "data": { "status": 200, "data": { "username": "appadmin", "password": "<password>" }, "errors": {}, "log": "Password reset successfully.", "success": true }, "errors": {}}The user is one the platform uses (“‘errors “Project ID is missing or invalid”.
object
object
Keyed by field.
object
Example
{ "code": 400, "message": "Bad Request", "data": {}, "errors": { "password": "Password must be 12-64 characters and include at least one uppercase letter, one lowercase letter, one digit and one symbol." }}The caller lacks the permission the call needs on the project, or the region is not allowed.
object
object
Example
{ "code": 403, "message": "Forbidden", "data": {}, "errors": "You don't have permission to access this service. Please verify your policy or project."}No database with that ID in the project and region.
object
object
Example
{ "code": 404, "message": "Bad Request", "data": {}, "errors": "Invalid request! Database Not Found"}The database is not Running (“Database NOT in RUNNING state. Please try again later.”), or the password could not be set, for example for a user that does not exist (“Error occurred at backend! Please try after sometime.”).
object
object
Example
{ "code": 412, "message": "Precondition Failed", "data": {}, "errors": "Database NOT in RUNNING state. Please try again later."}