Skip to content

Expose module information on Workspace to enable filtering by no-code module #1273

@Sirius1996

Description

@Sirius1996

Use-cases

I am using
List(ctx context.Context, organization string, options *WorkspaceListOptions) (*WorkspaceList, error)
to retrieve workspaces with specific filters. However, there is currently no way to filter workspaces by the no-code module they are associated with.

Attempted Solutions

I think it would be helpful to expose module or nocdoemodule as an attribute on the Workspace struct:
https://github.com/hashicorp/go-tfe/blob/45476cfe5c7b5e75e7398939acf49eadf86291de/workspace.go#L186C6-L186C15
This would allow clients to filter workspaces based on the specific module they are using.

Proposal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions