cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to create a token while deploying the workspace using terraform

User16753724663
Valued Contributor

we have automated out deployment with python API's however we have been caught in a situation which we cannot yet solve.

We are looking to collect a token during the first deployment within the environment. currently our API requires a token.

Is there an api that can take an initial user and password to produce a token during the first deployment?

1 ACCEPTED SOLUTION

Accepted Solutions

User16753724663
Valued Contributor

We can use below API to create a token and use the username and password

curl -X POST -u "admin_email":"xxxx" https://host/api/2.0/token/create -d'
{
 "lifetime_seconds": 100,
 "comment": "this is an example token"
}'

View solution in original post

1 REPLY 1

User16753724663
Valued Contributor

We can use below API to create a token and use the username and password

curl -X POST -u "admin_email":"xxxx" https://host/api/2.0/token/create -d'
{
 "lifetime_seconds": 100,
 "comment": "this is an example token"
}'

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group