API¶
-
class
terrasnek.api.TFC(api_token, url='https://app.terraform.io', verify=True, log_level=50)¶ Super class for access to all TFC Endpoints.
-
get_entitlements()¶ Allows for the user to retrieve the entitlements to the API for the current org.
-
get_org()¶ Allows for the user to retrieve the current org from the API object.
-
get_token()¶ Allows for the user to retrieve the token from the API object.
-
get_url()¶ Allows for the user to retrieve the URL being hit from the API object.
-
set_org(org_name)¶ Sets the organization to use for org specific endpoints. This method must be called for any non-admin endpoint to work.
-
set_token(token)¶ Allows for the user to change the token they are using on the fly if they need to change tokens.
-
well_known_paths()¶ Retrieve all the well known paths from the Terraform Cloud installation.
-
API Spec¶
- Account
- Admin Module Sharing
- Admin Runs
- Admin Orgs
- Admin Users
- Admin Settings
- Admin Workspaces
- Admin Workspaces
- Agents
- Agent Tokens
- Applies
- Audit Trails
- Config Versions
- Cost Estimates
- Feature Sets
- Invoices
- IP Ranges
- Notification Configurations
- OAuth Clients
- OAuth Tokens
- Orgs
- Org Memberships
- Org Tokens
- Plan Exports
- Plans
- Policies
- Policy Checks
- Policy Sets
- Policy Set Params
- Registry Modules
- Runs
- Run Triggers
- SSH Keys
- State Versions
- State Version Outputs
- Subscriptions
- Team Access
- Team Memberships
- Team Tokens
- Teams
- User Tokens
- Users
- Variables
- Variables
- Workspaces