Tfe.NetClient is a .NET Client for Terraform Enterprise.
dotnet add package Tfe.NetClient --version 0.1.0
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