Created
August 27, 2024 20:49
-
-
Save SafeEval/48e3647f9eb3d5ca89c83288298304f1 to your computer and use it in GitHub Desktop.
Show the HCP Terraform (Terraform Cloud) profile information for a user with a given token
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl \ | |
--header "Authorization: Bearer $TFC_TOKEN" \ | |
--header "Content-Type: application/vnd.api+json" \ | |
"https://app.terraform.io/api/v2/account/details" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment