Skip to content

feat: add runbooks.Get for space-wide runbook queries - #433

Open
Scott-Emberson wants to merge 1 commit into
OctopusDeploy:mainfrom
Scott-Emberson:feat/runbooks-get-by-query
Open

feat: add runbooks.Get for space-wide runbook queries#433
Scott-Emberson wants to merge 1 commit into
OctopusDeploy:mainfrom
Scott-Emberson:feat/runbooks-get-by-query

Conversation

@Scott-Emberson

@Scott-Emberson Scott-Emberson commented Aug 2, 2026

Copy link
Copy Markdown

The space-wide runbooks endpoint and its RunbooksQuery filter struct both already exist in this package, but nothing connects them. Callers can only reach runbooks through the project-scoped List. This adds Get, using the same newclient.GetByQuery pattern that tenants.Get and the other functions sharing this template already use.

RunbooksQuery is not referenced anywhere in the SDK today. This makes it reachable.

The Terraform provider needs space-wide runbook querying for a runbooks data source (OctopusDeploy/terraform-provider-octopusdeploy#209). Without it the data source would be limited to project-scoped listing, which is not what that issue asks for.

Tests cover expansion of RunbooksQuery into the template for every filter, and the empty-query case.

The space-wide runbooks endpoint and its RunbooksQuery filter struct both
already existed, but no function connected them, so callers could only reach
runbooks through the project-scoped List. Add Get, following the same
newclient.GetByQuery pattern used by tenants and the other resources sharing
this template.

This lets callers filter runbooks by project, name, or ID across a space,
which the Terraform provider needs to offer a runbooks data source
(OctopusDeploy/terraform-provider-octopusdeploy#209).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@CLAassistant

CLAassistant commented Aug 2, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants