Tfe.NetClient is a .NET Client for Terraform Enterprise.
Terraform Cloud API Documentation can be found here.
- Applies
- ConfigurationVersions
- OAuthClient
- Organization
- Plans
- Runs
- SSHKeys
- StateVersionOutputs
- StateVersions
- Teams
- TeamWorkspaces
- Workspaces
- WorkspaceVariables
dotnet add package Tfe.NetClient
var httpClient = new HttpClient();
var config = new TfeConfig(<YOUR TOKEN HERE>, httpClient);
var client = new TfeClient(config);
/// This sample creates a workspace
/// Create a WorkspacesRequest
var request = new WorkspacesRequest();
var workspaceName = $"test-{Guid.NewGuid().ToString()}";
request.Data.Attributes.Name = workspaceName;
/// Call the CreateAsync method.
var result = await client.Workspace.CreateAsync(organizationName, request);
Please check the Integration tests here for more samples.
Check our Contributing guidelines here.
mkdir -p everis-technology/Tfe.NetClient
git clone https://github.com/everis-technology/Tfe.NetClient everis-technology/Tfe.NetClient