tfc_admin
Overview
Make Terraform Cloud API calls for common platform administration tasks.
Reference
Available Functions
Show organization details
List teams
List projects
Get project ID from project name
List workspaces in a project
Get workspace ID from workspace name
Move workspace into a project
Examples
import sys
import tfc_admin
# List all teams in an organization.
teams_list = []
page_number = 1
# Iterate through all pages of teams.
while True:
teams = tfc_admin.get_teams(
sys.argv[1], # token
sys.argv[2], # organization
page_number
)
if not teams['data']:
break
for team in teams['data']:
teams_list.append(team['attributes']['name'])
page_number += 1
# Print the list of teams.
print(teams_list)
Metadata
Release files for tfc_admin 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tfc_admin-1.1.0.tar.gz | 2.3 kB | Without provenance | Details for tfc_admin-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tfc_admin-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for tfc_admin-1.1.0-py3-none-any.whl |
Total release size: 5.4 kB
Release files / tfc_admin-1.1.0.tar.gz
| Download URL | tfc_admin-1.1.0.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31160740c4c241fdc58ff21f92b0ab02bc44e7504c327099be41678c707f0a66
|
|
BLAKE2b-256 checksum How to use checksums |
1f70c86076f29e98597e54969e57e86a07b62376d75feb858b4a01c92e4e8011
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.10.12 Linux/5.4.109+
|
Release files / tfc_admin-1.1.0-py3-none-any.whl
| Download URL | tfc_admin-1.1.0-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8708dfa3ec252410ab022906698f2a3fe38cca15ae8df064a7a50a53d8acfa7d
|
|
BLAKE2b-256 checksum How to use checksums |
d00d92b6b42a72b89f05caea72a46601ed0efe2276fdeeeb3e02abc97bae28ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.10.12 Linux/5.4.109+
|
Security for tfc_admin 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.