Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2021 09:24 AM
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?
Labels:
- Labels:
-
Automation
-
Deployment
-
Python
-
Rest API
-
Token
-
Workspace
1 ACCEPTED SOLUTION
Accepted Solutions
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2021 09:25 AM
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"
}'
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2021 09:25 AM
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"
}'

