User Tokens

class terrasnek.user_tokens.TFCUserTokens(instance_url, org_name, headers, well_known_paths, verify, log_level)

User Tokens API Docs

create(user_id, payload)

POST /users/:user_id/authentication-tokens

User Tokens Create API Doc Reference

NOTE: the following method descriptor is here for the api_comparison.py script to pass, since it uses a different prefix than the majority of endpoints.

POST /api/v2/users/:user_id/authentication-tokens

Create Sample Payload

destroy(token_id)

DELETE /authentication-tokens/:id

User Tokens Destroy API Doc Reference

NOTE: the following method descriptor is here for the api_comparison.py script to pass, since it uses a different prefix than the majority of endpoints.

DELETE /api/v2/authentication-tokens/:id

list(user_id)

GET /users/:user_id/authentication-tokens

User Tokens List API Doc Reference

NOTE: the following method descriptor is here for the api_comparison.py script to pass, since it uses a different prefix than the majority of endpoints.

GET /api/v2/users/:user_id/authentication-tokens

required_entitlements()

Terraform Cloud Entitlements required for endpoint to work.

show(token_id)

GET /authentication-tokens/:id

User Tokens Show API Doc Reference

NOTE: the following method descriptor is here for the api_comparison.py script to pass, since it uses a different prefix than the majority of endpoints.

GET /api/v2/authentication-tokens/:id