{"id":13505908,"url":"https://github.com/skierkowski/terraform-enterprise-client","last_synced_at":"2025-07-08T23:41:07.202Z","repository":{"id":59157555,"uuid":"105706941","full_name":"skierkowski/terraform-enterprise-client","owner":"skierkowski","description":"Terraform Enterprise API Ruby Client and Command Line tool","archived":false,"fork":false,"pushed_at":"2018-05-27T04:12:16.000Z","size":144,"stargazers_count":8,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T09:18:49.930Z","etag":null,"topics":["hashicorp","hashicorp-terraform","ruby","rubygem","terraform","terraform-enterprise"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skierkowski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-03T21:47:24.000Z","updated_at":"2021-04-02T05:40:50.000Z","dependencies_parsed_at":"2022-09-13T20:11:21.994Z","dependency_job_id":null,"html_url":"https://github.com/skierkowski/terraform-enterprise-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skierkowski%2Fterraform-enterprise-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skierkowski%2Fterraform-enterprise-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skierkowski%2Fterraform-enterprise-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skierkowski%2Fterraform-enterprise-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skierkowski","download_url":"https://codeload.github.com/skierkowski/terraform-enterprise-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248271919,"owners_count":21075800,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hashicorp","hashicorp-terraform","ruby","rubygem","terraform","terraform-enterprise"],"created_at":"2024-08-01T00:01:16.919Z","updated_at":"2025-04-10T18:43:38.642Z","avatar_url":"https://github.com/skierkowski.png","language":"Ruby","funding_links":[],"categories":["Terraform Enterprise","Terraform Enterprise Tooling"],"sub_categories":["Miscellaneous","IDE"],"readme":"# Terraform Enterprise API Client\nA simple Ruby API client library for the [Terraform Enterprise API](https://www.terraform.io/docs/enterprise/api/index.html).\n\n[![Gem Version](https://badge.fury.io/rb/terraform-enterprise-client.svg)](https://badge.fury.io/rb/terraform-enterprise-client)\n[![Maintainability](https://api.codeclimate.com/v1/badges/1fd90e8dda31d1d402e8/maintainability)](https://codeclimate.com/github/skierkowski/terraform-enterprise-client/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/1fd90e8dda31d1d402e8/test_coverage)](https://codeclimate.com/github/skierkowski/terraform-enterprise-client/test_coverage)\n[![Inline docs](http://inch-ci.org/github/skierkowski/terraform-enterprise-client.svg?branch=master)](http://inch-ci.org/github/skierkowski/terraform-enterprise-client)\n\n#### NOTE: The command line tool has moved to [skierkowski/terraform-enterprise-cli](https://github.com/skierkowski/terraform-enterprise-cli).\n\n## Requirements\n\nMRI Ruby 2.3 and newer are supported. Alternative interpreters compatible with 2.3+ should work as well.\n\nThis gem depends on these other gems for usage at runtime:\n\n- [rest-client](https://github.com/rest-client/rest-client)\n\n## API Client\n\n### Usage\n\n\n\n#### Basic Example\n\n```ruby\nrequire 'terraform-enterprise-client'\n\ntoken = ENV['TFE_TOKEN']\nclient = TerraformEnterprise::API::Client.new(token: token)\n\n# Create a new organization\norg = client.organizations.create(name:'my-org',email:'maciej@skierkowski.com')\n\n# Create a new workspace in the new organization.\n# Uses the same parameters as the following docs:\n# https://www.terraform.io/docs/enterprise/api/workspaces.html\nclient.workspaces.create(name:'my-new-workspace', organization:'my-org')\n\n# Delete the workspace\nclient.workspaces.delete(name:'my-new-workspace', organization: 'my-org')\n\n# Delete the organization now that we are done\nclient.organizations.delete(name:'my-org')\n```\n\n\n\n### Configuration\n\nThere are two main settings that can be modified on initialization:\n\n- `:token` (required) - which specifies the API key (formerly called ATLAS_TOKEN)\n- `:host` - a hostname other than the default (`app.terraform.io`) for usage with private installs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskierkowski%2Fterraform-enterprise-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskierkowski%2Fterraform-enterprise-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskierkowski%2Fterraform-enterprise-client/lists"}