You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+17-2
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,20 @@
1
+
# Unreleased
2
+
3
+
## Enhancements
4
+
* Adds `BaseURL` and `BaseRegistryURL` methods to `Client` to expose its configuration by @brandonc[#638](https://github.com/hashicorp/go-tfe/pull/638)
5
+
6
+
## Bug Fixes
7
+
8
+
# v1.17.0
9
+
10
+
## Enhancements
11
+
* Add Beta endpoint `TeamProjectAccesses` to manage Project Access for Teams by @hs26gill[#599](https://github.com/hashicorp/go-tfe/pull/599)
12
+
* Updates api doc links from terraform.io to developer.hashicorp domain by @uk1288[#629](https://github.com/hashicorp/go-tfe/pull/629)
13
+
* Adds `UploadTarGzip()` method to `RegistryModules` and `ConfigurationVersions` interface by @sebasslash[#623](https://github.com/hashicorp/go-tfe/pull/623)
14
+
* Adds `ManageProjects` field to `OrganizationAccess` struct by @hs26gill[#633](https://github.com/hashicorp/go-tfe/pull/633)
15
+
* Adds agent-count to `AgentPools` endpoint. @evilensky[#611](https://github.com/hashicorp/go-tfe/pull/611)
16
+
* Adds `Links` to `Workspace`, (currently contains "self" and "self-html" paths) @brandonc[#622](https://github.com/hashicorp/go-tfe/pull/622)
17
+
1
18
# v1.16.0
2
19
3
20
## Bug Fixes
@@ -9,8 +26,6 @@
9
26
* Adds `ProviderBinaryUploaded` field to `RegistryPlatforms` struct by @sebasslash[#602](https://github.com/hashicorp/go-tfe/pull/602)
10
27
* Adds `ReadWorkspaces` and `ReadProjects` permissions to `Organizations` by @JuliannaTetreault[#614](https://github.com/hashicorp/go-tfe/pull/614)
11
28
12
-
* Adds agent-count to `AgentPools` endpoint. @evilensky[#611](https://github.com/hashicorp/go-tfe/pull/611)
Copy file name to clipboardexpand all lines: README.md
+67-12
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Terraform Cloud/Enterprise Go Client
9
9
10
10
The official Go API client for [Terraform Cloud/Enterprise](https://www.hashicorp.com/products/terraform).
11
11
12
-
This client supports the [Terraform Cloud V2 API](https://www.terraform.io/docs/cloud/api/index.html).
12
+
This client supports the [Terraform Cloud V2 API](https://developer.hashicorp.com/terraform/cloud-docs/api-docs).
13
13
As Terraform Enterprise is a self-hosted distribution of Terraform Cloud, this
14
14
client supports both Cloud and Enterprise use cases. In all package
15
15
documentation and API, the platform will always be stated as 'Terraform
@@ -20,27 +20,82 @@ the other, if applicable (rare).
20
20
21
21
Almost always, minor version changes will indicate backwards-compatible features and enhancements. Occasionally, function signature changes that reflect a bug fix may appear as a minor version change. Patch version changes will be used for bug fixes, performance improvements, and otherwise unimpactful changes.
22
22
23
-
## Installation
23
+
## Example Usage
24
24
25
-
Installation can be done with a normal `go get`:
25
+
Construct a new TFE client, then use the various endpoints on the client to
26
+
access different parts of the Terraform Enterprise API. The following example lists
27
+
all organizations.
26
28
27
-
```
28
-
go get -u github.com/hashicorp/go-tfe
29
+
### (Recommended Approach) Using custom config to provide configuration details to the API client
The default configuration makes use of the `TFE_ADDRESS` and `TFE_TOKEN` environment variables.
32
58
59
+
1.`TFE_ADDRESS` - URL of a Terraform Cloud or Terraform Enterprise instance. Example: `https://tfe.local`
60
+
1.`TFE_TOKEN` - An [API token](https://developer.hashicorp.com/terraform/cloud-docs/users-teams-organizations/api-tokens) for the Terraform Cloud or Terraform Enterprise instance.
61
+
62
+
**Note:** Alternatively, you can set `TFE_HOSTNAME` which serves as a fallback for `TFE_ADDRESS`. It will only be used if `TFE_ADDRESS` is not set and will resolve the host to an `https` scheme. Example: `tfe.local` => resolves to `https://tfe.local`
63
+
64
+
The environment variables are used as a fallback to configure TFE client if the Address or Token values are not provided as in the cases below:
0 commit comments