diff --git a/CHANGELOG.md b/CHANGELOG.md index fae653e5a..b93899da9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ -# v1.2.0 (Unreleased) +# v1.3.0 (Unreleased) + +## Enhancements +* Add `Query` param field to `AgentPoolListOptions` to allow searching based on agent pool name, by @JarrettSpiker [#417](https://github.com/hashicorp/go-tfe/pull/417) + +# v1.2.0 ## Enhancements * Adds support for reading current state version outputs to StateVersionOutputs, which can be useful for reading outputs when users don't have the necessary permissions to read the entire state by @brandonc [#370](https://github.com/hashicorp/go-tfe/pull/370) diff --git a/agent_pool.go b/agent_pool.go index e8cbd6586..5b9c2d0aa 100644 --- a/agent_pool.go +++ b/agent_pool.go @@ -71,6 +71,7 @@ type AgentPoolListOptions struct { // https://www.terraform.io/cloud-docs/api-docs/agents#available-related-resources Include []AgentPoolIncludeOpt `url:"include,omitempty"` + // Optional: A search query string used to filter agent pool. Agent pools are searchable by name Query string `url:"q,omitempty"` }