Setting the Admin Password
IBM Cloud® Databases for DataStax is deprecated and no longer supported as of 30 June 2024. For more information, see the deprecation details.
The Databases for DataStax service is provisioned with an admin user.
You must set the admin password before you use it to connect. To set the password through the IBM Cloud dashboard, select Manage from the service dashboard to open the management pane for your service. Open the Settings tab, and use the Change Database Admin Password pane to set a new admin password.
Setting the admin password through the command line
Use the cdb user-password
command from the Databases for DataStax CLI plug-in to set the admin password with the command line.
For example, to set the admin password for a deployment named "example-deployment", use the following command.
ibmcloud cdb user-password example-deployment admin <newpassword>
Setting the admin password through the API
The Foundation Endpoint that is shown on the Overview pane of your service provides the base URL to access this deployment through the API. Use it with the /deployments/{id}/users/{username}
endpoint to set the
admin password.
curl -X PATCH `https://api.{region}.databases.cloud.ibm.com/v4/ibm/deployments/{id}/users/admin' \
-H "Authorization: Bearer $APIKEY" \
-H "Content-Type: application/json" \
-d '{"password":"newrootpasswordsupersecure21"}'
For more information, see the API Reference.