Skip to content

Commit

Permalink
Fix images references on datahub.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Sassi committed Aug 9, 2024
1 parent 89cd7c7 commit d86798c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/how-tos/datahub/how_to_datahub_cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,39 +11,39 @@ First of all, you need to establish a secure connection to your DataHub server.

Open a terminal on VSCode and run `DataHub init`:

![DataHub init](./assets/DataHub-init.png)
![DataHub init](assets/datahub-init.png)

Type the DataHub host url, following this pattern: `http://{environment slug}-DataHub-DataHub-gms:8080`, the environment slug can be found next to your environment name in the header.

![Environment slug](./assets/DataHub-env-slug.png)
![Environment slug](assets/datahub-env-slug.png)

In this example it's `DEV123`, so the url becomes: http://dev123-DataHub-DataHub-gms:8080.

### DataHub API token

The next element you need to provide is a DataHub access token:

![DataHub token](./assets/DataHub-token.png)
![DataHub token](assets/datahub-token.png)

1. On a new tab, navigate to Datacoves and then DataHub
2. Go to `Settings` (gear icon on the top right corner)
3. Click on the `Access Tokens` nav bar menu item

![DataHub access tokens](./assets/DataHub-access-tokens.png)
![DataHub access tokens](assets/datahub-access-tokens.png)

4. Click on `+ Generate new token` link, a popup window will show where you give the token a name, description and expiration date.

![DataHub new token](./assets/DataHub-new-token.png)
![DataHub new token](assets/datahub-new-token.png)

5. Click on create and right after you'll see the new JWT token generated.
6. Copy the token clicking on this button and don't close the window as you won’t be able to see it again.

![DataHub copy token](./assets/DataHub-copy-token.png)
![DataHub copy token](assets/datahub-copy-token.png)

7. Go back to the tab were you have VSCode terminal waiting for your input and paste the copied token. Press Enter.
8. You can validate that the connection was correctly configured by running `DataHub check server-config`:

![DataHub check](./assets/DataHub-check.png)
![DataHub check](assets/datahub-check.png)

## Useful commands

Expand Down

0 comments on commit d86798c

Please sign in to comment.