API

class terrasnek.api.TFC(api_token, url='https://app.terraform.io', verify=True, log_level=50, skip_version_check=False)

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_hostname()

Allows for the user to retrieve the hostname being hit from the API object.

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.

is_terraform_cloud()

Returns true if this API instance is configured for Terraform Cloud.

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.