{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"To reset the password for a database user, send a POST request to\n`/v2/databases/$DATABASE_ID/users/$USERNAME/reset_auth`.\n\nFor `mysql` databases, the authentication method can be specifying by\nincluding a key in the JSON body called `mysql_settings` with the `auth_plugin`\nvalue specified.\n\nThe response will be a JSON object with a `user` key. This will be set to an\nobject containing the standard database user attributes.\n","properties":{"path":{"type":"object","properties":{"database_cluster_uuid":{"type":"string","format":"uuid","examples":["9cc10173-e9ea-4176-9dbc-a4cee4c4ff30"],"description":"A unique identifier for a database cluster."},"username":{"type":"string","examples":["app-01"],"description":"The name of the database user."}},"required":["database_cluster_uuid","username"],"additionalProperties":false},"body":{"type":"object","properties":{"mysql_settings":{"$ref":"#/definitions/mysql_settings"}},"examples":[{"mysql_settings":{"auth_plugin":"caching_sha2_password"}}]}},"required":["path","body"],"additionalProperties":false,"definitions":{"mysql_settings":{"type":"object","properties":{"auth_plugin":{"type":"string","enum":["mysql_native_password","caching_sha2_password"],"description":"A string specifying the authentication method to be used for connections\nto the MySQL user account. The valid values are `mysql_native_password`\nor `caching_sha2_password`. If excluded when creating a new user, the\ndefault for the version of MySQL in use will be used. As of MySQL 8.0, the\ndefault is `caching_sha2_password`.\n","examples":["mysql_native_password"]}},"required":["auth_plugin"]}}},"name":"Reset a Database User's Password or Authentication Method","id":"digitalocean.databases_reset_auth","example":{"path":{"database_cluster_uuid":"9cc10173-e9ea-4176-9dbc-a4cee4c4ff30","username":"app-01"},"body":{"mysql_settings":{"auth_plugin":"caching_sha2_password"}}},"maxRequests":1,"summary":false}}